/*
 * Damavand Storefront 0.3.4 (R12-B) — cart, checkout steps, checkout sign-in card, account panel bits.
 * Dark palette from tokens.css / design.css; the sign-in card mirrors the account sign-in screen
 * (elementor-layout.css «C3») but is scoped to .dmv-ck-auth so it works on the checkout page.
 */

/* ---------------------------------------------------------------- *
 * Step header
 * ---------------------------------------------------------------- */
.dmv-ck-steps {
	display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none;
	font-family: var(--dmv-font, inherit); direction: rtl;
}
.dmv-ck-steps__item {
	flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
	border-radius: 14px; border: 1px solid var(--dmv-border, #2E3238); background: rgba(255, 255, 255, .02);
	color: var(--dmv-muted, #A9AEB5); font-size: 13.5px; line-height: 1.5;
}
.dmv-ck-steps__n {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
	border-radius: 50%; border: 1px solid var(--dmv-border-2, #3A3F46); font-weight: 700; font-size: 13px;
}
.dmv-ck-steps__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
a.dmv-ck-steps__t:hover { color: var(--dmv-accent-hover, #D9B48C); }
.dmv-ck-steps__item.is-done { color: var(--dmv-text, #E8E8EA); }
.dmv-ck-steps__item.is-done .dmv-ck-steps__n { background: rgba(52, 199, 123, .14); border-color: rgba(52, 199, 123, .5); color: #34C77B; }
.dmv-ck-steps__item.is-current { color: var(--dmv-white, #FFFFFF); border-color: var(--dmv-accent, #C89B6B); background: rgba(200, 155, 107, .08); }
.dmv-ck-steps__item.is-current .dmv-ck-steps__n { background: var(--dmv-accent, #C89B6B); border-color: transparent; color: var(--dmv-accent-ink, #0B0B0D); }
@media (max-width: 640px) {
	.dmv-ck-steps { gap: 4px; }
	.dmv-ck-steps__item { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
	.dmv-ck-steps__t { white-space: normal; }
}

/* ---------------------------------------------------------------- *
 * Guest checkout: sign-in card + summary
 * ---------------------------------------------------------------- */
.dmv-ck-auth {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: start; margin: 0 0 28px;
	font-family: var(--dmv-font, inherit); direction: rtl;
}
@media (max-width: 860px) { .dmv-ck-auth { grid-template-columns: 1fr; } }
.dmv-ck-auth__card, .dmv-ck-sum {
	border-radius: 22px; border: 1px solid #23262B; background: #0F1012; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	padding: clamp(20px, 3vw, 36px); color: #E8E8EA;
}
.dmv-ck-auth__title { margin: 0 0 4px; color: #FFFFFF; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.5; }
.dmv-ck-auth__sub { margin: 0 0 8px; color: #A9AEB5; font-size: 14px; line-height: 1.9; }
.dmv-ck-auth__alt { margin: 16px 0 0; }
/* LWP form inside the card (same look as the account sign-in screen). */
.dmv-ck-auth .lwp_forms_login { position: static !important; padding: 0 !important; background: transparent !important; }
.dmv-ck-auth #show_login, .dmv-ck-auth a.close { display: none !important; }
.dmv-ck-auth form.ajax-auth {
	position: relative !important; inset: auto !important; transform: none !important; margin: 0 !important;
	width: 100% !important; max-width: 440px !important; padding: 0 !important;
	background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
	color: #E8E8EA; text-align: start; direction: rtl; font-family: var(--dmv-font, inherit);
}
.dmv-ck-auth form.ajax-auth .lh1 { display: none !important; } /* our card has the title */
.dmv-ck-auth #lwp_activate .lh1, .dmv-ck-auth #lwp_update_password .lh1, .dmv-ck-auth #lwp_update_extra_fields .lh1 {
	display: block !important; margin: 4px 0 0 !important; padding: 0 !important; color: #FFFFFF !important; font-size: 18px !important; font-weight: 800 !important; text-align: start !important;
}
.dmv-ck-auth form.ajax-auth .status { min-height: 0; margin: 8px 0 !important; font-size: 13.5px; color: #E2BE93 !important; text-align: start !important; }
.dmv-ck-auth form.ajax-auth .lwp_labels, .dmv-ck-auth form.ajax-auth label {
	display: block; margin: 16px 0 8px !important; color: #C9CCD1 !important; font-size: 13.5px !important; font-weight: 600 !important; text-align: start !important; float: none !important; opacity: 1 !important;
}
.dmv-ck-auth form.ajax-auth input[type="tel"], .dmv-ck-auth form.ajax-auth input[type="text"], .dmv-ck-auth form.ajax-auth input[type="email"],
.dmv-ck-auth form.ajax-auth input[type="password"], .dmv-ck-auth form.ajax-auth input[type="number"] {
	width: 100% !important; height: 52px !important; margin: 0 !important; padding: 0 16px !important; border-radius: 14px !important;
	border: 1px solid #2E3238 !important; background: #15171A !important; color: #FFFFFF !important;
	font-size: 17px !important; letter-spacing: .5px; box-shadow: none !important; direction: ltr; text-align: left;
	font-family: var(--dmv-font, inherit) !important;
}
.dmv-ck-auth form.ajax-auth input:focus { outline: none !important; border-color: #C89B6B !important; box-shadow: 0 0 0 3px rgba(200, 155, 107, .2) !important; }
.dmv-ck-auth .iti { width: 100%; direction: ltr; }
.dmv-ck-auth .iti__country-list { background: #15171A; color: #E8E8EA; border-color: #2E3238; }
.dmv-ck-auth form.ajax-auth .accept_terms_and_conditions {
	display: flex !important; align-items: flex-start; gap: 10px; margin: 14px 0 4px !important; padding: 0 !important; text-align: start !important;
	direction: rtl; font-size: 12.5px !important; color: #9AA0A6 !important; line-height: 1.9;
}
.dmv-ck-auth form.ajax-auth .accept_terms_and_conditions input { flex: none; width: 18px !important; height: 18px !important; margin: 4px 0 0 !important; accent-color: #C89B6B; }
.dmv-ck-auth form.ajax-auth .accept_terms_and_conditions a { color: #E2BE93 !important; }
.dmv-ck-auth form.ajax-auth .submit_button, .dmv-ck-auth form.ajax-auth button[type="submit"] {
	display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 52px !important;
	margin: 16px 0 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 14px !important;
	background: linear-gradient(135deg, #D7AE7F 0%, #C89B6B 55%, #B5875A 100%) !important; color: #141414 !important;
	font-family: var(--dmv-font, inherit) !important; font-size: 16px !important; font-weight: 800 !important; cursor: pointer;
	box-shadow: 0 10px 26px rgba(200, 155, 107, .25) !important;
}
.dmv-ck-auth form.ajax-auth .submit_button.secondaryccolor, .dmv-ck-auth form.ajax-auth .submit_button.lwp_didnt_r_c,
.dmv-ck-auth form.ajax-auth .submit_button.forgot_password, .dmv-ck-auth form.ajax-auth .auth_with_email, .dmv-ck-auth form.ajax-auth .auth_with_phoneNumber {
	margin-top: 10px !important; height: 46px !important; background: transparent !important; color: #E8E8EA !important;
	border: 1px solid #34383F !important; box-shadow: none !important; font-weight: 600 !important; font-size: 14.5px !important;
}
.dmv-ck-auth form.ajax-auth .submit_button.lwp_didnt_r_c.lwp_disable { color: #7D838A !important; border-color: #2A2E33 !important; cursor: not-allowed; }
.dmv-ck-auth form.ajax-auth .submit_button:focus-visible { outline: 2px solid rgba(200, 155, 107, .7) !important; outline-offset: 2px; }
.dmv-ck-auth form.ajax-auth .lwp_timer, .dmv-ck-auth form.ajax-auth .lwp_top_activation, .dmv-ck-auth form.ajax-auth .lwp_bottom_activation { color: #A9AEB5 !important; font-size: 13px !important; text-align: start !important; }
.dmv-ck-auth #lwp_activate.dmv-otp .lwp_top_activation { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dmv-ck-auth form.ajax-auth .lwp_line { border-color: #23262B !important; background: #23262B !important; height: 1px; margin: 16px 0 !important; }
.dmv-ck-auth form.ajax-auth .lwp_change_pn, .dmv-ck-auth form.ajax-auth .lwp_change_el { color: #E2BE93 !important; font-size: 13.5px !important; }
.dmv-ck-auth form.ajax-auth #lwp_scode { height: 56px !important; font-size: 24px !important; font-weight: 700; letter-spacing: 12px !important; text-indent: 12px; text-align: center !important; }
.dmv-ck-auth .dmv-otp-hint { display: flex; width: 100%; gap: 8px; margin: 8px 0 0 !important; /* R12 integration: without a width it collapsed to 0 (one word per line over the code field) */ font-size: 13px; color: #C9CCD1 !important; line-height: 1.9; }
.dmv-ck-auth .dmv-otp-hint::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: #34C77B; box-shadow: 0 0 0 3px rgba(52, 199, 123, .18); }
.dmv-ck-auth .dmv-otp-hint.is-voice { color: #E9D3B6 !important; }
.dmv-ck-auth .dmv-otp-timer { margin: 8px 0 0 !important; text-align: center; font-size: 12.5px; color: #8E949B; font-variant-numeric: tabular-nums; }
.dmv-ck-auth .dmv-otp-timer[hidden] { display: none !important; }

/* Summary */
.dmv-ck-sum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dmv-ck-sum__title { margin: 0; font-size: 17px; font-weight: 800; color: #FFFFFF; }
.dmv-ck-sum__edit { font-size: 13px; color: #E2BE93; }
.dmv-ck-sum__list { margin: 0; padding: 0; list-style: none; }
.dmv-ck-sum__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #1E2125; font-size: 13.5px; }
.dmv-ck-sum__name { overflow: hidden; text-overflow: ellipsis; }
.dmv-ck-sum__qty { color: #A9AEB5; white-space: nowrap; }
.dmv-ck-sum__price { white-space: nowrap; }
.dmv-ck-sum__total { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 15px; }
.dmv-ck-sum__note { margin: 8px 0 0; font-size: 12.5px; color: #8E949B; }

/* Checkout (signed in): calmer field grid, method descriptions. */
body.dmv-ck .woocommerce-billing-fields h3, body.dmv-ck .woocommerce-additional-fields h3 { font-size: 18px; }
body.dmv-ck #billing_phone, body.dmv-ck #billing_postcode, body.dmv-ck #shipping_postcode { direction: ltr; text-align: left; }
.dmv-ship-desc { display: block; margin: 2px 26px 6px 0; font-size: 12.5px; line-height: 1.8; color: var(--dmv-muted, #A9AEB5); }
#shipping_method li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- *
 * Cart (CK8): compact rows, qty stepper, one big button
 * ---------------------------------------------------------------- */
body.dmv-cart .woocommerce-cart-form .shop_table td, body.dmv-cart .woocommerce-cart-form .shop_table th { padding: 10px 8px; vertical-align: middle; }
body.dmv-cart .woocommerce-cart-form .product-thumbnail img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
body.dmv-cart .woocommerce-cart-form .product-name { font-size: 14.5px; line-height: 1.7; }
body.dmv-cart .woocommerce-cart-form .product-name .variation { font-size: 12.5px; color: var(--dmv-muted, #A9AEB5); margin: 4px 0 0; }
.dmv-ck-qty { display: inline-flex !important; align-items: stretch; position: relative; width: auto !important; border: 1px solid var(--dmv-border-2, #3A3F46); border-radius: 999px; overflow: hidden; }
.dmv-ck-qty .ct-increase, .dmv-ck-qty .ct-decrease { display: none !important; }
.dmv-ck-qty input.qty {
	width: 52px !important; min-width: 0; min-height: 40px; height: auto !important; margin: 0 !important; padding: 0 2px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
	color: var(--dmv-text, #E8E8EA) !important; text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; box-shadow: none !important;
}
.dmv-ck-qty input.qty::-webkit-outer-spin-button, .dmv-ck-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dmv-ck-qty__btn {
	flex: none; width: 40px; min-height: 40px; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: rgba(255, 255, 255, .04) !important; color: var(--dmv-text, #E8E8EA) !important; font-size: 20px; line-height: 1; cursor: pointer;
}
.dmv-ck-qty__btn:hover, .dmv-ck-qty__btn:focus-visible { background: rgba(200, 155, 107, .16) !important; color: #FFFFFF !important; }
.dmv-ck-qty__btn:focus-visible { outline: 2px solid rgba(200, 155, 107, .7); outline-offset: -2px; }
body.dmv-cart .dmv-ship-later td { color: var(--dmv-muted, #A9AEB5); font-size: 13.5px; }
body.dmv-cart .woocommerce-shipping-calculator, body.dmv-cart .woocommerce-shipping-destination { display: none !important; }
.wc-proceed-to-checkout a.dmv-ck-go, a.dmv-ck-go {
	display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 20px !important;
	font-size: 17px !important; font-weight: 800 !important; border-radius: 999px !important;
	background: linear-gradient(135deg, #D7AE7F 0%, #C89B6B 55%, #B5875A 100%) !important; color: #141414 !important;
	box-shadow: 0 10px 26px rgba(200, 155, 107, .25); text-decoration: none !important;
}
a.dmv-ck-go:hover { filter: brightness(1.06); }
@media (max-width: 768px) {
	body.dmv-cart .woocommerce-cart-form .shop_table_responsive tr td { padding: 6px 10px; }
	body.dmv-cart .woocommerce-cart-form .product-thumbnail { display: none; }
}

/* ---------------------------------------------------------------- *
 * Account panel
 * ---------------------------------------------------------------- */
.dmv-cart-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px;
	border-radius: 16px; border: 1px solid rgba(200, 155, 107, .45); background: rgba(200, 155, 107, .08); color: var(--dmv-text, #E8E8EA);
}
.dmv-cart-banner__t { font-weight: 700; }
.dmv-cart-banner__go { font-weight: 800; color: var(--dmv-accent-hover, #D9B48C); text-decoration: none; }
.dmv-orders-empty { padding: clamp(20px, 4vw, 40px); border-radius: 18px; border: 1px dashed var(--dmv-border-2, #3A3F46); text-align: center; }
.dmv-orders-empty__t { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--dmv-white, #FFFFFF); }
.dmv-orders-empty__a { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0; }
body.dmv-phone-only .woocommerce-EditAccountForm label[for="account_email"] .required { display: none; }
