/**
 * Amazon Order Sync — Connect Landing Page styles.
 *
 * Standalone styling — does NOT depend on the theme's Tailwind utility classes.
 * Provides:
 *  - Form max-width + centering
 *  - Spacing between rows
 *  - Phone code + phone number side-by-side on one row
 *  - Submit button styling
 *  - Status message error/success boxes
 */

/* =========================================================
   Hero — "Thank you for your purchase!" badge + heading + subtitle
   Centered, blue background, full-width above the form.
   ========================================================= */
.amazon-linking-hero {
	background: var(--surface-brand);
	color: #ffffff;
	text-align: center;
	padding: 2.5rem 1.25rem 2.75rem;
	box-sizing: border-box;
}

.amazon-linking-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
	margin-bottom: 1.25rem;
}

.amazon-linking-hero-badge-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #22c55e;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.amazon-linking-hero-title {
	margin: 0 auto 0.85rem;
	max-width: 18ch;
	font-size: 2.25rem;
	line-height: 1.15;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.amazon-linking-hero-subtitle {
	margin: 0 auto;
	max-width: 36ch;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
	.amazon-linking-hero {
		padding: 1.75rem 1rem 2rem;
	}
	.amazon-linking-hero-badge {
		font-size: 13px;
		padding: 7px 14px;
	}
	.amazon-linking-hero-title {
		font-size: 1.75rem;
	}
	.amazon-linking-hero-subtitle {
		font-size: 0.95rem;
	}
}

/* =========================================================
   Form wrapper — constrained width, centered on the page
   ========================================================= */

.amazon-linking-form-wrap {
	max-width: 520px;
	margin: 2rem auto;
	padding: 1rem 1.25rem;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.amazon-linking-form-wrap {
		margin: 1rem auto;
		padding: 0.75rem;
	}
}

/* =========================================================
   Each form row — vertical spacing between fields
   ========================================================= */
.amazon-linking-form-wrap .input-wrap {
	margin-bottom: 1rem;
}

.amazon-linking-form-wrap .input-wrap.\!mb-0,
.amazon-linking-form-wrap .input-wrap.phone-code-wrap,
.amazon-linking-form-wrap .phone-wrap > div > .input-wrap {
	margin-bottom: 0;
}

/* =========================================================
   Inputs — consistent sizing and look
   ========================================================= */
.amazon-linking-form-wrap input[type="text"],
.amazon-linking-form-wrap input[type="email"],
.amazon-linking-form-wrap input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background-color: #fff;
	box-sizing: border-box;
}

.amazon-linking-form-wrap input[type="text"]:focus,
.amazon-linking-form-wrap input[type="email"]:focus,
.amazon-linking-form-wrap input[type="tel"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.amazon-linking-form-wrap input[readonly] {
	background-color: #f9fafb;
	cursor: pointer;
}

/* =========================================================
   Phone row — code + number side-by-side
   ========================================================= */
.amazon-linking-form-wrap .phone-wrap {
	margin-bottom: 1rem;
}

.amazon-linking-form-wrap .phone-wrap > div {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.amazon-linking-form-wrap .phone-code-wrap {
	flex: 0 0 110px;
	cursor: pointer;
	position: relative;
}

.amazon-linking-form-wrap .phone-code-wrap input {
	cursor: pointer;
	padding-right: 24px; /* room for the chevron */
}

/* Chevron indicator inside the code field */
.amazon-linking-form-wrap .phone-code-wrap::after {
	/* content: "▾"; */
	position: absolute;
	/* right: 10px; */
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #6b7280;
	font-size: 12px;
}

.amazon-linking-form-wrap .phone-wrap > div > .input-wrap:last-child {
	flex: 1 1 auto;
}

/* Flag icon next to phone code */
.amazon-linking-form-wrap .phone-code-wrap .fflag {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
}

.amazon-linking-form-wrap .phone-code-wrap:has(.fflag) input {
	padding-left: 36px;
}

/* =========================================================
   WhatsApp upsell hint (between phone row and submit button)
   ========================================================= */
.amazon-linking-form-wrap .amazon-linking-whatsapp-note {
	margin: 0.5rem 0 0;
	font-size: 13px;
	/* color: #6b7280; */
	line-height: 1.4;
}

/* =========================================================
   Submit button
   ========================================================= */
.amazon-linking-form-wrap .submit-wrap {
	margin-top: 1.5rem;
}

.amazon-linking-form-wrap .aos-submit-btn {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	height: 55px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.amazon-linking-form-wrap .aos-submit-btn:active {
	background-color: #1e40af;
}

/* =========================================================
   Status messages — error / success boxes
   ========================================================= */
.amazon-linking-form-wrap .amazon-linking-error {
	color: #b91c1c;
	padding: 10px 12px;
	background: #fee2e2;
	border-left: 4px solid #dc2626;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 14px;
}

.amazon-linking-form-wrap .amazon-linking-success {
	color: #166534;
	padding: 10px 12px;
	background: #dcfce7;
	border-left: 4px solid #16a34a;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 14px;
}

.amazon-linking-form-wrap .amazon-linking-countdown {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.9em;
	opacity: 0.85;
}
