/**
 * WooSon Waitlist - Frontend Styles
 */

:root {
	--wooson-waitlist-bg: #f8fafc;
	--wooson-waitlist-border: #e2e8f0;
	--wooson-waitlist-text: #1e293b;
	--wooson-waitlist-radius: 6px;
	--wooson-waitlist-btn-bg: #7f54b3;
	--wooson-waitlist-btn-color: #ffffff;
	--wooson-waitlist-success: #16a34a;
	--wooson-waitlist-error: #dc2626;
}

.wooson-waitlist-container {
	background: var(--wooson-waitlist-bg);
	border: 1px solid var(--wooson-waitlist-border);
	border-radius: var(--wooson-waitlist-radius);
	padding: 20px;
	margin: 20px 0;
	box-sizing: border-box;
	clear: both;
}

.wooson-waitlist-heading {
	margin: 0 0 8px 0;
	font-size: 1.1em;
	font-weight: 600;
	color: var(--wooson-waitlist-text);
}

.wooson-waitlist-intro {
	margin: 0 0 15px 0;
	font-size: 0.95em;
	color: #64748b;
	line-height: 1.4;
}

.wooson-waitlist-field-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.wooson-waitlist-input {
	flex: 1 1 200px;
	min-width: 180px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	background: #ffffff;
}

.wooson-waitlist-input:focus {
	outline: none;
	border-color: var(--wooson-waitlist-btn-bg);
	box-shadow: 0 0 0 2px rgba(127, 84, 179, 0.2);
}

.wooson-waitlist-submit {
	position: relative;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.wooson-waitlist-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.wooson-waitlist-consent-row {
	margin-top: 10px;
	font-size: 0.88em;
	color: #475569;
}

.wooson-waitlist-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.wooson-waitlist-consent-checkbox {
	margin-top: 3px;
	cursor: pointer;
}

.wooson-waitlist-message {
	margin-top: 15px;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 0.9em;
	line-height: 1.4;
}

.wooson-waitlist-message.is-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: var(--wooson-waitlist-success);
}

.wooson-waitlist-message.is-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--wooson-waitlist-error);
}

.wooson-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: wooson-spin 0.8s linear infinite;
	margin-left: 8px;
}

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