/* ==========================================================================
   WALoops Express Checkout for WooCommerce — Unified 3-Step Checkout Styling
   ========================================================================== */

/* Crucial step visibility rules */
.wlec-step[hidden],
[hidden] {
	display: none !important;
}

.wlec-step {
	display: block;
	width: 100%;
}

.wlec-step.wlec-step-unified {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Popup & Sidebar Container Geometry */
.wlec-checkout.wlec-mode-popup .wlec-panel {
	top: 50%;
	right: auto;
	left: 50%;
	width: 480px;
	max-width: 94vw;
	height: auto;
	max-height: 92vh;
	border-radius: 16px;
	transform: translate(-50%, -48%) scale(0.98);
	opacity: 0;
	transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.wlec-checkout.wlec-mode-popup[aria-hidden="false"] .wlec-panel {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.wlec-checkout.wlec-mode-sidebar .wlec-panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Header */
.wlec-checkout-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #ffffff;
	border-bottom: 1px solid var(--wlec-border, #f0f0f0);
	gap: 8px;
	flex-shrink: 0;
}

.wlec-checkout-header .wlec-back {
	background: #f4f4f5;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: #333333;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.wlec-checkout-header .wlec-back:hover {
	background: #e4e4e7;
}

.wlec-brand-area {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	max-width: 120px;
}

.wlec-brand-logo {
	max-height: 26px;
	max-width: 100px;
	object-fit: contain;
}

.wlec-brand-name {
	font-weight: 700;
	font-size: 14.5px;
	color: var(--wlec-ink, #18181b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Header Top Summary Chip */
.wlec-top-summary-chip {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 8px;
	transition: background 0.15s ease;
	user-select: none;
	overflow: hidden; /* a wide savings badge shrinks instead of spilling over the store name */
}

.wlec-top-summary-chip:hover {
	background: #f8fafc;
}

.wlec-top-summary-chip-left {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.25;
	min-width: 0;
	overflow: hidden;
}

.wlec-top-savings-badge {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 10.5px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 7px;
	border-radius: 9999px;
	white-space: nowrap;
}

.wlec-top-item-count {
	font-size: 11px;
	font-weight: 500;
	color: #71717a;
	margin-top: 1px;
}

.wlec-top-summary-chip-right {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-shrink: 0;
}

.wlec-top-mrp-price {
	font-size: 11.5px;
	color: #a1a1aa;
	text-decoration: line-through;
}

.wlec-top-final-price {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--wlec-ink, #18181b);
}

.wlec-top-chevron {
	font-size: 11px;
	color: #71717a;
	transition: transform 0.15s ease;
	margin-left: 1px;
}

.wlec-checkout-header .wlec-close {
	background: #f4f4f5;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	color: #52525b;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.wlec-checkout-header .wlec-close:hover {
	background: #e4e4e7;
}

/* Dropdown Order Summary Drawer */
.wlec-top-summary-dropdown {
	background: #fafafa;
	border-bottom: 1px solid var(--wlec-border, #e4e4e7);
	max-height: 45vh;
	overflow-y: auto;
	animation: wlecSlideDown 0.2s ease;
}

@keyframes wlecSlideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.wlec-top-summary-dropdown-inner {
	padding: 12px 18px;
}

.wlec-top-totals-breakdown {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e4e4e7;
}

/* Line items in the order-summary dropdown — both the header chip's dropdown
   (checkout-container.php) and the unified step's mini-summary dropdown
   (step-unified.php) render into a shared .wlec-order-summary-items via the
   same renderSummary() code (checkout-flow.js), but had no styling at all:
   the <img> and info block just stacked full-width as plain block elements.
   This mirrors .wlec-cart-item in the cart drawer (cart-drawer.css) so an
   item looks the same wherever it's shown. */
.wlec-order-summary-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wlec-border, #e4e4e7);
}

.wlec-order-summary-item:last-child {
	border-bottom: none;
}

.wlec-order-summary-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--wlec-radius, 8px);
	background: var(--wlec-bg-muted, #f4f4f5);
	flex-shrink: 0;
}

.wlec-order-summary-item-info {
	flex: 1;
	min-width: 0;
}

.wlec-order-summary-item-name {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wlec-ink, #18181b);
	line-height: 1.35;
}

.wlec-order-summary-item-qty {
	font-size: 12px;
	color: var(--wlec-ink-soft, #71717a);
}

.wlec-order-summary-item-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--wlec-ink, #18181b);
	white-space: nowrap;
	flex-shrink: 0;
}

/* Prepaid Highlight / Incentive Strip */
.wlec-prepaid-alert-strip {
	background: linear-gradient(90deg, #b45309, #d97706);
	color: #ffffff;
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	letter-spacing: 0.01em;
}

.wlec-alert-bolt {
	font-size: 13px;
}

/* Main Panel Body */
.wlec-checkout .wlec-panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #ffffff;
}

/* ==========================================================================
   Step 1: Phone / WhatsApp OTP Login Card
   ========================================================================== */
.wlec-step-login {
	padding: 8px 0;
}

.wlec-login-card {
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	padding: 24px 20px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.wlec-login-header {
	margin-bottom: 20px;
}

.wlec-login-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 3px 10px;
	border-radius: 9999px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wlec-login-title {
	font-size: 17px;
	font-weight: 800;
	color: #18181b;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

.wlec-login-desc {
	font-size: 12.5px;
	color: #71717a;
	margin: 0;
	line-height: 1.45;
}

/* Phone Input Container */
.wlec-phone-input-group {
	margin-top: 14px;
}

.wlec-phone-field {
	display: flex;
	align-items: center;
	border: 1.5px solid #d4d4d8;
	border-radius: 12px;
	background: #ffffff;
	padding: 4px;
	transition: all 0.15s ease;
	position: relative;
}

.wlec-phone-field:focus-within {
	border-color: var(--wlec-accent, #b45309);
	box-shadow: 0 0 0 3px var(--wlec-accent-soft, #fefce8);
}

.wlec-country-wrap {
	display: flex;
	align-items: center;
	position: relative;
	/* Option text is now the short "+dial ISO" form (e.g. "+1868 TT", the
	   widest real entry) — sized to fit that in full, never clipped. */
	width: 88px;
	max-width: 92px;
	flex-shrink: 0;
	border-right: 1.5px solid #e4e4e7;
	margin-right: 8px;
}

.wlec-country-code {
	width: 100% !important;
	border: none !important;
	background: transparent !important;
	padding: 10px 16px 10px 6px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #18181b !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	outline: none !important;
}

.wlec-country-arrow {
	position: absolute;
	right: 4px;
	font-size: 10px;
	color: #71717a;
	pointer-events: none;
}

.wlec-otp-phone {
	flex: 1;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	padding: 10px 4px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #18181b !important;
	letter-spacing: 0.02em;
	outline: none !important;
	box-shadow: none !important;
}

.wlec-otp-phone::placeholder {
	font-weight: 400;
	color: #a1a1aa;
	font-size: 14px;
}

.wlec-otp-send-btn,
.wlec-eotp-send-btn,
.wlec-guest-email-continue,
.wlec-epw-login-btn {
	background: var(--wlec-cta-bg, var(--wlec-accent, #b45309)) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 8px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.wlec-otp-send-btn:hover,
.wlec-eotp-send-btn:hover,
.wlec-guest-email-continue:hover,
.wlec-epw-login-btn:hover {
	filter: brightness(1.08);
}

.wlec-otp-send-btn:disabled,
.wlec-eotp-send-btn:disabled,
.wlec-guest-email-continue:disabled,
.wlec-epw-login-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.wlec-otp-status {
	font-size: 12px;
	color: #15803d;
	font-weight: 600;
	margin: 6px 4px 0;
	min-height: 1.2em;
}

/* OTP Verify Section */
.wlec-otp-verify-section {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed #e4e4e7;
	animation: wlecSlideDown 0.2s ease;
}

.wlec-sent-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 12.5px;
	color: #52525b;
}

.wlec-sent-info strong {
	color: #18181b;
}

.wlec-otp-change-number {
	color: var(--wlec-accent, #b45309);
	font-size: 12px;
	font-weight: 600;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
}

.wlec-otp-code-box {
	margin-bottom: 12px;
}

.wlec-otp-code {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #d4d4d8;
	border-radius: 12px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.4em;
	text-align: center;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.wlec-otp-code:focus {
	outline: none;
	border-color: var(--wlec-accent, #b45309);
	box-shadow: 0 0 0 3px var(--wlec-accent-soft, #fefce8);
}

.wlec-otp-resend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #71717a;
}

.wlec-otp-resend-btn {
	background: none;
	border: none;
	color: var(--wlec-accent, #b45309);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.wlec-otp-resend-btn:disabled {
	color: #a1a1aa;
	cursor: default;
}

.wlec-login-footer-trust {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #f4f4f5;
	text-align: center;
	font-size: 11.5px;
	font-weight: 500;
	color: #71717a;
}

/* Switch between the phone/OTP and email (guest checkout) login cards —
   only rendered when both methods are enabled in settings. */
.wlec-switch-login-method {
	display: block;
	width: 100%;
	margin-top: 12px;
	background: none;
	border: none;
	color: var(--wlec-accent, #b45309);
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	text-decoration: underline;
}

/* Guest email card's input + Continue button reuses .wlec-phone-field's
   pill-shaped container styling for visual consistency with the phone card. */
.wlec-guest-email-field .wlec-guest-email {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 10px 8px;
	font-size: 14px;
	outline: none;
}

.wlec-guest-email-field .wlec-guest-email-continue {
	flex-shrink: 0;
}

.wlec-login-cart-preview {
	margin-top: 14px;
}

/* Same Subtotal/Tax/Total breakdown as the cart drawer and the rest of
   checkout — .wlec-totals-row/-tax/-total are the shared, already-styled
   classes (see cart-drawer.css), this just separates the block from the
   thumbs strip above it. */
.wlec-login-totals-breakdown {
	padding: 10px 14px 12px;
	border-top: 1px solid #f4f4f5;
}

.wlec-login-checkout-btn {
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-radius: 12px;
	background: #d4d4d8;
	color: #71717a;
	font-size: 14px;
	font-weight: 700;
	cursor: not-allowed;
}

.wlec-login-checkout-hint {
	margin: 6px 0 0;
	text-align: center;
	font-size: 11px;
	color: #a1a1aa;
}

/* ==========================================================================
   Step 2: Address Form & Address List
   ========================================================================== */
.wlec-step[data-step="address-form"] label,
.wlec-step[data-step="address-list"] label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #3f3f46;
	margin-bottom: 12px;
}

.wlec-step[data-step="address-form"] input[type="text"],
.wlec-step[data-step="address-form"] input[type="tel"],
.wlec-step[data-step="address-form"] input[type="email"],
.wlec-step[data-step="address-form"] select {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1.5px solid #d4d4d8;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	box-sizing: border-box;
	background-color: #fff;
	transition: border-color 0.15s ease;
}

.wlec-step[data-step="address-form"] input:focus,
.wlec-step[data-step="address-form"] select:focus {
	outline: none;
	border-color: var(--wlec-accent, #b45309);
	box-shadow: 0 0 0 3px var(--wlec-accent-soft, #fefce8);
}

.wlec-field-row {
	display: flex;
	gap: 12px;
}

.wlec-field-half {
	flex: 1;
}

.wlec-save-address,
.wlec-address-continue {
	width: 100% !important;
	padding: 12px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	background: var(--wlec-cta-bg, var(--wlec-accent, #b45309)) !important;
	color: #ffffff !important;
	border: none !important;
	margin-top: 10px;
	cursor: pointer;
}

.wlec-address-card {
	border: 1.5px solid #e4e4e7;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	cursor: pointer;
	position: relative;
	transition: all 0.15s ease;
}

.wlec-address-card.is-selected {
	border-color: var(--wlec-accent, #b45309);
	background: var(--wlec-accent-soft, #fffbeb);
	box-shadow: 0 0 0 1px var(--wlec-accent, #b45309);
}

.wlec-address-card .wlec-address-label {
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--wlec-accent, #b45309);
}

.wlec-address-card .wlec-address-text {
	font-size: 13px;
	color: #27272a;
	margin-top: 3px;
	padding-right: 24px;
}

.wlec-address-delete {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	color: #a1a1aa;
	cursor: pointer;
	font-size: 20px;
}

.wlec-address-delete:hover {
	color: #dc2626;
}

.wlec-add-address {
	width: 100% !important;
	padding: 10px !important;
	background: #f8fafc !important;
	border: 1.5px dashed #cbd5e1 !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	cursor: pointer;
	margin-bottom: 12px;
}

/* ==========================================================================
   Step 3: Unified 1-Page Checkout
   ========================================================================== */
.wlec-section-card {
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	padding: 12px 14px;
}

.wlec-deliver-to-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wlec-deliver-to-left {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.wlec-pin-icon {
	font-size: 16px;
	flex-shrink: 0;
	margin-top: 2px;
}

.wlec-deliver-to-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wlec-deliver-to-header {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wlec-deliver-to-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
}

.wlec-deliver-to-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
}

.wlec-deliver-to-address {
	font-size: 12px;
	color: #71717a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wlec-edit-addr-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.wlec-edit-addr-btn:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

/* Section Headings */
.wlec-section-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.wlec-section-icon {
	font-size: 16px;
}

.wlec-section-heading h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
}

/* Delivery Options Grid */
.wlec-delivery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.wlec-delivery-card {
	position: relative;
	border: 1.5px solid #e4e4e7;
	border-radius: 12px;
	padding: 12px 14px;
	background: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.15s ease;
}

.wlec-delivery-card:hover {
	border-color: #cbd5e1;
}

.wlec-delivery-card.is-selected {
	border-color: var(--wlec-accent, #b45309);
	background: var(--wlec-accent-soft, #fefce8);
	box-shadow: 0 0 0 1px var(--wlec-accent, #b45309);
}

/* Shown on the card the shopper just clicked while
   WLEC_Delivery::ajax_set_shipping_method() confirms the choice server-side
   and recalculates totals — every other card is dimmed/unclickable at the
   same time (see .wlec-delivery-options.is-busy below) so a second click
   can't race the first one's request. */
.wlec-delivery-card.is-loading {
	cursor: default;
}

.wlec-delivery-card-spinner {
	display: none;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: var(--wlec-accent, #b45309);
	border-radius: 50%;
	animation: wlec-spin 0.6s linear infinite;
}

.wlec-delivery-card.is-loading .wlec-delivery-card-spinner {
	display: block;
}

.wlec-delivery-list.is-busy .wlec-delivery-card:not(.is-loading) {
	opacity: 0.5;
	pointer-events: none;
}

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

.wlec-delivery-card-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.wlec-delivery-card-body {
	flex: 1;
	min-width: 0;
}

.wlec-delivery-card-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
	margin-bottom: 3px;
}

.wlec-delivery-card-badges {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wlec-rate-cost-pill {
	font-size: 11.5px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 1px 6px;
	border-radius: 4px;
}

.wlec-badge-fastest {
	font-size: 10.5px;
	font-weight: 700;
	color: #b45309;
	background: #fef3c7;
	padding: 1px 6px;
	border-radius: 4px;
}

/* Payment Methods List */
.wlec-payment-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Persistent mount for a gateway's own inline fields (see mountPaymentFields()
   in checkout-flow.js) — kept visually attached to the payment list even
   though it lives in a separate, never-rebuilt container. */
.wlec-payment-fields-mount:not(:empty) {
	margin-top: 10px;
}

.wlec-pay-fields-block {
	border: 1.5px solid var(--wlec-accent, #b45309);
	border-radius: 12px;
	background: #ffffff;
	padding: 14px;
}

.wlec-pay-card {
	border: 1.5px solid #e4e4e7;
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.15s ease;
	overflow: hidden;
}

.wlec-pay-card:hover {
	border-color: #cbd5e1;
}

.wlec-pay-card.is-selected {
	border-color: var(--wlec-accent, #b45309);
	background: #ffffff;
	box-shadow: 0 0 0 1px var(--wlec-accent, #b45309);
}

.wlec-pay-card-header {
	padding: 13px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.wlec-pay-card.is-selected .wlec-pay-card-header {
	background: var(--wlec-accent-soft, #fffbeb);
}

.wlec-pay-card-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.wlec-pay-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #ffffff;
	transition: border-color 0.15s ease;
}

.wlec-pay-card.is-selected .wlec-pay-radio {
	border-color: var(--wlec-accent, #0f172a);
}

.wlec-pay-radio::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: transparent;
	transition: background 0.15s ease;
}

.wlec-pay-card.is-selected .wlec-pay-radio::after {
	background: var(--wlec-accent, #0f172a);
}

.wlec-pay-icons {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

.wlec-pay-icons img {
	max-height: 20px;
	max-width: 50px;
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
	display: inline-block;
	box-shadow: none;
	border: none;
	border-radius: 2px;
}

.wlec-pay-icon-emoji {
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
}

.wlec-pay-card-titles {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.wlec-pay-title-line {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.wlec-pay-card-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
	line-height: 1.3;
	white-space: normal;
}

.wlec-badge-rec {
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #ffffff;
	background: var(--wlec-accent, #b45309);
	padding: 1px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.wlec-pay-card-desc {
	font-size: 11.5px;
	color: #71717a;
	line-height: 1.35;
	white-space: normal;
	word-break: break-word;
}

.wlec-pay-card-right {
	flex-shrink: 0;
	text-align: right;
}

.wlec-pay-prices-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.wlec-pay-orig-price {
	font-size: 11px;
	color: #a1a1aa;
	text-decoration: line-through;
}

.wlec-pay-final-price {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--wlec-ink, #18181b);
}

.wlec-badge-discount {
	font-size: 10.5px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.wlec-badge-surcharge {
	font-size: 10.5px;
	font-weight: 700;
	color: #c2410c;
	background: #ffedd5;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.wlec-partial-options-box {
	padding: 10px 16px 14px;
	background: #ffffff;
	border-top: 1px solid #f0f0f0;
}

.wlec-sub-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #52525b;
	margin: 0 0 6px;
}

.wlec-sub-gateway-label {
	display: block;
	font-size: 12.5px;
	color: #27272a;
	margin-bottom: 4px;
	cursor: pointer;
}

/* Trust Section */
.wlec-trust-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.wlec-trust-ssl {
	font-size: 11.5px;
	font-weight: 600;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.wlec-trust-badges-grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
}

.wlec-trust-badge-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wlec-badge-check {
	color: #059669;
	font-weight: 700;
}

/* Reference & Savings Section (Below Payment) */
.wlec-reference-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wlec-mini-summary-card {
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.wlec-mini-summary-header {
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.wlec-mini-summary-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wlec-mini-summary-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
}

.wlec-mini-summary-count {
	font-size: 12px;
	color: #71717a;
}

.wlec-mini-savings-pill {
	font-size: 10.5px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 1px 6px;
	border-radius: 9999px;
}

.wlec-mini-summary-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wlec-mini-summary-total {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wlec-ink, #18181b);
}

.wlec-chevron-icon {
	font-size: 14px;
	color: #71717a;
}

.wlec-mini-thumbs-strip {
	padding: 0 14px 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
}

.wlec-mini-thumb {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #e4e4e7;
	background: #ffffff;
	flex-shrink: 0;
}

.wlec-mini-thumb-more {
	font-size: 11px;
	font-weight: 600;
	color: #71717a;
	padding: 0 4px;
}

.wlec-mini-items-dropdown {
	padding: 0 14px 14px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.wlec-mini-totals-breakdown {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e4e4e7;
}

/* Compact Bundle Progress */
.wlec-bundle-compact {
	margin: 0;
	border-radius: 10px;
	padding: 10px 14px;
}

/* Active Coupon Box */
.wlec-coupon-active-box {
	border: 1.5px solid #86efac;
	background: #f0fdf4;
	border-radius: 12px;
	padding: 10px 14px;
}

.wlec-coupon-active-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.wlec-coupon-active-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wlec-coupon-check-badge {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #16a34a;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.wlec-coupon-active-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.wlec-active-code {
	font-size: 13px;
	font-weight: 700;
	color: #15803d;
	letter-spacing: 0.02em;
}

.wlec-active-save-text {
	font-size: 11.5px;
	color: #166534;
}

.wlec-coupon-active-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wlec-remove-coupon-btn {
	background: none;
	border: none;
	font-size: 18px;
	color: #166534;
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
}

.wlec-has-coupon-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fafafa !important;
	border: 1px dashed #d4d4d8 !important;
	border-radius: 10px;
	padding: 10px 14px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #3f3f46 !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wlec-has-coupon-btn:hover {
	background: #f4f4f5 !important;
}

.wlec-offers-arrow {
	color: var(--wlec-accent, #b45309);
	font-weight: 700;
}

/* Sticky Pay CTA Bar */
.wlec-sticky-cta-wrap {
	position: sticky;
	bottom: -16px;
	margin: 10px -16px -16px;
	background: #ffffff;
	padding: 12px 16px 10px;
	border-top: 1px solid #e4e4e7;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
	z-index: 20;
}

.wlec-main-pay-btn {
	width: 100% !important;
	background: var(--wlec-cta-bg, var(--wlec-accent, #b45309)) !important;
	color: var(--wlec-cta-color, #ffffff) !important;
	border: none !important;
	border-radius: 12px !important;
	padding: 12px 16px !important;
	cursor: pointer;
	transition: transform 0.1s ease, filter 0.15s ease;
}

.wlec-main-pay-btn:hover {
	filter: brightness(1.06);
}

.wlec-main-pay-btn:active {
	transform: scale(0.99);
}

.wlec-pay-btn-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
}

.wlec-pay-btn-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	line-height: 1.25;
	min-width: 0;
	flex: 1;
}

.wlec-pay-btn-label {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.wlec-pay-btn-sub {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.92;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.wlec-pay-btn-right {
	display: flex;
	align-items: center;
	padding-left: 12px;
	border-left: 1px solid rgba(255,255,255,0.25);
	flex-shrink: 0;
}

.wlec-pay-btn-amount {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	white-space: nowrap;
}

.wlec-footer-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 11px;
	color: #a1a1aa;
}

.wlec-legal-links span {
	cursor: pointer;
}

/* Step Errors */
.wlec-step-error {
	font-size: 12px;
	color: #dc2626;
	margin: 6px 0;
	font-weight: 600;
}

.wlec-input-error {
	border-color: #dc2626 !important;
}

/* Responsiveness */
@media (max-width: 480px) {
	.wlec-drawer .wlec-panel {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}
	.wlec-checkout.wlec-mode-popup .wlec-panel {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
		transform: none;
		top: 0;
		left: 0;
	}
	.wlec-delivery-grid {
		grid-template-columns: 1fr;
	}
}

/* Exit Confirmation Modal */
.wlec-exit-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 10000005;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.wlec-exit-modal-backdrop[hidden] {
	display: none !important;
}

.wlec-exit-modal {
	background: #ffffff;
	border-radius: 20px;
	padding: 28px 24px 22px;
	max-width: 380px;
	width: 100%;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: wlecModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

@keyframes wlecModalPop {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wlec-exit-title {
	font-size: 20px;
	font-weight: 800;
	color: #18181b;
	margin: 0 0 8px;
	line-height: 1.25;
}

.wlec-exit-subtitle {
	font-size: 13.5px;
	color: #52525b;
	line-height: 1.45;
	margin: 0 0 16px;
}

.wlec-exit-savings-box {
	background: #fffbf0;
	border: 1.5px solid #fed7aa;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 20px;
}

.wlec-exit-savings-box[hidden] {
	display: none !important;
}

.wlec-exit-savings-text {
	font-size: 13.5px;
	font-weight: 700;
	color: #c2410c;
	line-height: 1.35;
	display: block;
}

.wlec-exit-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

.wlec-exit-btn-stay {
	flex: 1;
	height: 44px;
	background: var(--wlec-accent, #b47d32);
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.wlec-exit-btn-stay:hover {
	opacity: 0.92;
}

.wlec-exit-btn-stay:active {
	transform: scale(0.98);
}

.wlec-exit-btn-continue {
	flex: 1.25;
	height: 44px;
	background: #f4f4f5;
	color: #18181b;
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
}

.wlec-exit-btn-continue:hover {
	background: #e4e4e7;
}

.wlec-exit-btn-continue:active {
	transform: scale(0.98);
}

.wlec-required {
	color: #dc2626;
	font-weight: 700;
}

.wlec-addr-extra-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: -4px 0 4px;
	color: #2563eb;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.wlec-addr-extra-toggle:hover {
	text-decoration: underline;
}

.wlec-delivery-group-heading {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #71717a;
	margin: 14px 0 6px;
}

.wlec-delivery-group-heading:first-child {
	margin-top: 0;
}

/* Delivery tabs (Ship | Local Pickup): a segmented control across the whole
   grid, so the cards below start in the first column. */
.wlec-delivery-tabs {
	grid-column: 1 / -1;
	display: flex;
	gap: 4px;
	padding: 4px;
	background: #f4f4f5;
	border-radius: 12px;
}

.wlec-delivery-tab {
	flex: 1;
	padding: 10px 12px;
	border: 1.5px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: #52525b;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.wlec-delivery-tab.is-active {
	background: #ffffff;
	border-color: var(--wlec-ink, #18181b);
	color: var(--wlec-ink, #18181b);
}

.wlec-delivery-list.is-busy .wlec-delivery-tab {
	pointer-events: none;
}

/* With tabs, options are full-width rows (one per line) instead of grid
   columns: name on the left, price on the right. */
.wlec-delivery-list.is-tabbed {
	grid-template-columns: 1fr;
}

.wlec-delivery-list.is-tabbed .wlec-delivery-card-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wlec-delivery-list.is-tabbed .wlec-delivery-card-title {
	margin-bottom: 0;
}

/* Loading state while the first step's data is fetched */
.wlec-checkout .wlec-loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
}

.wlec-checkout .wlec-loader[hidden] {
	display: none;
}

.wlec-checkout .wlec-loader-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #e5e7eb;
	border-top-color: #111827;
	border-radius: 50%;
	animation: wlec-spin 0.7s linear infinite;
}

/* Free tier: inline coupon code entry (no offers popup) */
.wlec-coupon-inline {
	margin-top: 8px;
}

.wlec-coupon-inline[hidden] {
	display: none;
}

.wlec-coupon-inline-error {
	margin: 6px 2px 0;
	font-size: 12px;
	color: #b91c1c;
}

.wlec-coupon-inline-error:empty {
	display: none;
}

/* Login method tabs — only rendered when more than one method is enabled */
.wlec-login-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	padding: 4px;
	border-radius: 12px;
	background: #f4f4f5;
}

.wlec-login-tab {
	flex: 1;
	padding: 8px 6px !important;
	border: none !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: #52525b !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wlec-login-tab.is-active {
	background: #ffffff !important;
	color: #18181b !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Email + password card */
.wlec-login-fields {
	display: grid;
	gap: 10px;
}

.wlec-login-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px !important;
	border: 1.5px solid #d4d4d8 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	font-size: 14px !important;
	outline: none;
}

.wlec-login-input:focus {
	border-color: var(--wlec-accent, #b45309) !important;
	box-shadow: 0 0 0 3px var(--wlec-accent-soft, #fefce8);
}

.wlec-login-forgot {
	margin: 10px 0 0;
	text-align: center;
	font-size: 12.5px;
}

.wlec-login-forgot a {
	color: var(--wlec-accent, #b45309);
	font-weight: 600;
}

/* Email-code card's input reuses the guest email field's pill styling */
.wlec-guest-email-field .wlec-eotp-email {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 10px 8px;
	font-size: 14px;
	outline: none;
}

.wlec-epw-login-btn {
	width: 100%;
	padding: 12px 16px !important;
	font-size: 14px !important;
	border-radius: 12px !important;
}
