.qsl-wrap {
	max-width: 400px;
	margin: 30px auto;
	padding: 20px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qsl-wrap *,
.qsl-wrap *::before,
.qsl-wrap *::after {
	box-sizing: border-box;
}

.qsl-heading {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

.qsl-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.qsl-layout-row .qsl-buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

.qsl-btn {
	width: 100%;
	padding: 12px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.qsl-layout-row .qsl-btn {
	width: auto;
	flex: 1 1 160px;
}

.qsl-btn[hidden] {
	display: none;
}

.qsl-btn:hover {
	background: #f8f9fa;
	border-color: #d0d0d0;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qsl-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.qsl-btn:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

.qsl-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.qsl-apple {
	color: #fff;
	background: #000;
	border-color: #000;
}

.qsl-apple:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
}

/* Loading state */
.qsl-btn.qsl-loading {
	pointer-events: none;
	opacity: 0.7;
}

.qsl-btn.qsl-loading::after {
	content: '';
	position: absolute;
	right: 16px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(128, 128, 128, 0.3);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: qsl-spin 0.6s linear infinite;
}

@keyframes qsl-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Messages */
.qsl-notice {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 6px;
	background: #fdecea;
	color: #8a1f17;
	font-size: 14px;
	line-height: 1.4;
}

.qsl-notice[hidden] {
	display: none;
}

.qsl-admin-notice {
	background: #fff8e5;
	color: #6b4e00;
}

.qsl-logged-in {
	text-align: center;
}

@media (max-width: 480px) {
	.qsl-wrap {
		padding: 15px;
	}

	.qsl-btn {
		padding: 14px 16px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qsl-btn {
		transition: none;
	}

	.qsl-btn.qsl-loading::after {
		animation-duration: 1.5s;
	}
}
