/**
 * Wcommero Pro — Elementor checkout widgets
 * Scoped to .szp-checkout-skin / .szp-checkout-form (matches plugin theme + main.css variables).
 */

.szp-checkout-skin {
	--szp-chk-accent: var(--storzen-theme, #FF3636);
	--szp-chk-accent-hover: #000;
	--szp-chk-radius: 10px;
	--szp-chk-radius-sm: 8px;
	--szp-chk-border: #e4e6ed;
	--szp-chk-border-strong: #d8dbe8;
	--szp-chk-muted: #5a5f6e;
	--szp-chk-bg-soft: #f5f6f9;
	--szp-chk-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
	--szp-chk-text: var(--storzen-text, #1a1d26);
}

/* ── Coupon / login strip (before form) ───────────────────────────── */
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-login-toggle .woocommerce-info,
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-coupon-toggle .woocommerce-info {
	border-radius: var(--szp-chk-radius-sm);
	border: 1px solid var(--szp-chk-border);
	background: linear-gradient(135deg, var(--szp-chk-bg-soft) 0%, #fff 100%);
	color: var(--szp-chk-text);
	padding: 14px 18px 14px 48px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--szp-chk-shadow);
	margin-bottom: 20px;
}

.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-login-toggle .woocommerce-info a,
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-coupon-toggle .woocommerce-info a {
	color: var(--szp-chk-accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-login-toggle .woocommerce-info a:hover,
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-coupon-toggle .woocommerce-info a:hover {
	color: var(--szp-chk-accent-hover);
	border-bottom-color: currentColor;
}

.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-login-toggle .woocommerce-info:before,
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-coupon-toggle .woocommerce-info:before {
	color: var(--szp-chk-accent);
	pointer-events: none;
}

/* Icon pseudo-element can sit above text in some themes; keep the toggle link clickable. */
.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
	position: relative;
	z-index: 1;
}

.szp-checkout-before-form.szp-checkout-skin .woocommerce-form-login,
.szp-checkout-before-form.szp-checkout-skin .checkout_coupon {
	border-radius: var(--szp-chk-radius);
	border: 1px solid var(--szp-chk-border);
	box-shadow: var(--szp-chk-shadow);
	padding: 24px 28px;
	margin-bottom: 24px;
	background: #fff;
}

/*
 * Coupon row: flex lives on .szp-checkout-coupon-row (inner wrapper). WooCommerce’s
 * slideToggle sets inline display:block on the <form>, which overrides flex on the form itself.
 */
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	/* flex-end pinned the button to the bottom when WC injects .coupon-error-notice under the input — looked “small” vs the field */
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

/* Themes often set .form-row to width:100%, which forces the button below the input. */
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row > p.form-row {
	float: none !important;
	clear: none !important;
	margin: 0;
	padding: 0;
	width: auto !important;
	max-width: none !important;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row .form-row.form-row-first,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row .form-row.form-row-last {
	float: none !important;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row .form-row-first {
	flex: 1 1 0;
	min-width: 0;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row .form-row-last {
	flex: 0 0 auto;
	align-self: flex-start;
	display: flex;
	align-items: stretch;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .form-row-first .input-text {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--szp-chk-border);
	border-radius: var(--szp-chk-radius-sm);
	padding: 12px 14px;
	min-height: 48px;
	max-height: 48px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.45;
	color: var(--szp-chk-text);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .form-row-first .input-text:hover {
	border-color: var(--szp-chk-border-strong);
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .form-row-first .input-text:focus {
	outline: none;
	border-color: var(--szp-chk-accent);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button.button,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button[name="apply_coupon"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 24px;
	min-height: 48px;
	height: 48px;
	box-sizing: border-box;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	line-height: 1.2;
	border: none;
	border-radius: var(--szp-chk-radius-sm);
	background: var(--szp-chk-accent);
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button.button:hover,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button.button:focus,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button[name="apply_coupon"]:hover,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button[name="apply_coupon"]:focus {
	background: var(--szp-chk-accent-hover);
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
	outline: none;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button.button:focus-visible,
.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button[name="apply_coupon"]:focus-visible {
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .form-row-first .coupon-error-notice {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	width: 100%;
}

.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .clear {
	display: none;
}

@media (max-width: 600px) {
	.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row {
		flex-direction: column;
		align-items: stretch;
	}

	.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon .szp-checkout-coupon-row .form-row-last {
		width: 100%;
	}

	.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button.button,
	.szp-checkout-before-form.szp-checkout-skin form.checkout_coupon.woocommerce-form-coupon button[name="apply_coupon"] {
		width: 100%;
		text-align: center;
	}
}

/* ── Checkout form (billing / shipping / additional) ─────────────── */
form.checkout.szp-checkout-skin {
	display: block;
}

form.checkout.szp-checkout-skin #customer_details {
	padding: 0;
}

form.checkout.szp-checkout-skin .woocommerce-billing-fields > h3,
form.checkout.szp-checkout-skin .woocommerce-shipping-fields > h3,
form.checkout.szp-checkout-skin .woocommerce-additional-fields > h3 {
	font-family: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--szp-chk-text);
	margin: 0 0 22px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--szp-chk-bg-soft);
}

form.checkout.szp-checkout-skin .woocommerce-billing-fields__field-wrapper,
form.checkout.szp-checkout-skin .woocommerce-shipping-fields__field-wrapper,
form.checkout.szp-checkout-skin .woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

form.checkout.szp-checkout-skin .form-row {
	margin-bottom: 18px;
	padding: 0;
	width: 100%;
}

form.checkout.szp-checkout-skin .form-row.form-row-first,
form.checkout.szp-checkout-skin .form-row.form-row-last {
	width: calc(50% - 10px);
}

@media (max-width: 600px) {
	form.checkout.szp-checkout-skin .form-row.form-row-first,
	form.checkout.szp-checkout-skin .form-row.form-row-last {
		width: 100%;
	}
}

form.checkout.szp-checkout-skin label {
	font-size: 14px;
	font-weight: 600;
	color: var(--szp-chk-text);
	margin-bottom: 8px;
	display: block;
}

form.checkout.szp-checkout-skin label .required {
	color: #e11d48;
	font-weight: 700;
	text-decoration: none;
}

form.checkout.szp-checkout-skin .input-text,
form.checkout.szp-checkout-skin select,
form.checkout.szp-checkout-skin textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--szp-chk-border);
	border-radius: var(--szp-chk-radius-sm);
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--szp-chk-text);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.checkout.szp-checkout-skin textarea {
	min-height: 120px;
	resize: vertical;
}

form.checkout.szp-checkout-skin .input-text:hover,
form.checkout.szp-checkout-skin select:hover,
form.checkout.szp-checkout-skin textarea:hover {
	border-color: var(--szp-chk-border-strong);
}

form.checkout.szp-checkout-skin .input-text:focus,
form.checkout.szp-checkout-skin select:focus,
form.checkout.szp-checkout-skin textarea:focus {
	outline: none;
	border-color: var(--szp-chk-accent);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

form.checkout.szp-checkout-skin .select2-container--default .select2-selection--single {
	border: 1px solid var(--szp-chk-border);
	border-radius: var(--szp-chk-radius-sm);
	min-height: 46px;
	padding: 6px 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.checkout.szp-checkout-skin .select2-container--default.select2-container--open .select2-selection--single,
form.checkout.szp-checkout-skin .select2-container--default .select2-selection--single:focus {
	border-color: var(--szp-chk-accent);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

form.checkout.szp-checkout-skin .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 28px;
	padding-left: 4px;
	color: var(--szp-chk-text);
}

/* ── “Your order” heading ─────────────────────────────────────────── */
h3#order_review_heading.szp-checkout-section-title {
	font-family: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--szp-chk-text);
	margin: 28px 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--szp-chk-bg-soft);
	margin-top: 0;
}

/* ── Order review table ─────────────────────────────────────────────── */
#order_review.szp-checkout-skin.woocommerce-checkout-review-order {
	background: #fff;
	border: 1px solid var(--szp-chk-border);
	border-radius: var(--szp-chk-radius);
	box-shadow: var(--szp-chk-shadow);
	padding: 8px 0 0;
	overflow: hidden;
	margin-bottom: 8px;
}

#order_review.szp-checkout-skin .shop_table.woocommerce-checkout-review-order-table {
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	width: 100%;
	border-radius: 0;
}

#order_review.szp-checkout-skin .shop_table thead th {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--szp-chk-muted);
	padding: 16px 20px;
	border: none;
	border-bottom: 1px solid var(--szp-chk-border);
	background: var(--szp-chk-bg-soft);
}

#order_review.szp-checkout-skin .shop_table tbody td,
#order_review.szp-checkout-skin .shop_table tbody th {
	padding: 14px 20px;
	border: none;
	border-bottom: 1px solid #f0f1f5;
	font-size: 15px;
	vertical-align: middle;
}

#order_review.szp-checkout-skin .shop_table tbody tr:last-child td,
#order_review.szp-checkout-skin .shop_table tbody tr:last-child th {
	border-bottom: none;
}

#order_review.szp-checkout-skin .shop_table tfoot th,
#order_review.szp-checkout-skin .shop_table tfoot td {
	padding: 12px 20px;
	border: none;
	border-top: 1px solid var(--szp-chk-border);
	font-size: 15px;
}

#order_review.szp-checkout-skin .shop_table tfoot tr.order-total th,
#order_review.szp-checkout-skin .shop_table tfoot tr.order-total td {
	font-size: 1.1rem;
	font-weight: 800;
	padding-top: 16px;
	padding-bottom: 16px;
	color: var(--szp-chk-text);
}

/* ── Payment box ───────────────────────────────────────────────────── */
#order_review.szp-checkout-skin #payment.woocommerce-checkout-payment,
.szp-checkout-payment.szp-checkout-skin #payment.woocommerce-checkout-payment {
	background: var(--szp-chk-bg-soft);
	border: 1px solid var(--szp-chk-border);
	border-radius: 0 0 var(--szp-chk-radius) var(--szp-chk-radius);
	padding: 20px 20px 8px;
	margin: 0;
}

#order_review.szp-checkout-skin #payment ul.payment_methods,
.szp-checkout-payment.szp-checkout-skin #payment ul.payment_methods {
	border: none;
	padding: 0;
	margin: 0 0 12px;
}

#order_review.szp-checkout-skin #payment ul.payment_methods li,
.szp-checkout-payment.szp-checkout-skin #payment ul.payment_methods li {
	background: #fff;
	border: 1px solid var(--szp-chk-border);
	border-radius: var(--szp-chk-radius-sm);
	padding: 14px 16px;
	margin-bottom: 10px;
	list-style: none;
}

#order_review.szp-checkout-skin #payment ul.payment_methods li label,
.szp-checkout-payment.szp-checkout-skin #payment ul.payment_methods li label {
	color: var(--szp-chk-text);
	font-weight: 600;
	font-size: 15px;
}

#order_review.szp-checkout-skin #payment .payment_box,
.szp-checkout-payment.szp-checkout-skin #payment .payment_box {
	background: var(--szp-chk-bg-soft);
	border-radius: var(--szp-chk-radius-sm);
	border: 1px solid var(--szp-chk-border);
	color: var(--szp-chk-muted);
	font-size: 14px;
	margin-top: 10px;
	padding: 12px 14px;
}

#order_review.szp-checkout-skin #payment .woocommerce-privacy-policy-text,
.szp-checkout-payment.szp-checkout-skin #payment .woocommerce-privacy-policy-text {
	font-size: 13px;
	line-height: 1.6;
	color: var(--szp-chk-muted);
	margin-bottom: 16px;
}

#order_review.szp-checkout-skin #payment .woocommerce-privacy-policy-text a,
.szp-checkout-payment.szp-checkout-skin #payment .woocommerce-privacy-policy-text a {
	color: var(--szp-chk-accent);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

#order_review.szp-checkout-skin #payment .woocommerce-privacy-policy-text a:hover,
.szp-checkout-payment.szp-checkout-skin #payment .woocommerce-privacy-policy-text a:hover {
	border-bottom-color: currentColor;
}

#order_review.szp-checkout-skin #payment div.form-row.place-order,
.szp-checkout-payment.szp-checkout-skin #payment div.form-row.place-order {
	padding: 8px 0 16px;
	margin: 0;
	float: none;
	display: block;
}

#order_review.szp-checkout-skin #payment #place_order,
.szp-checkout-payment.szp-checkout-skin #payment #place_order {
	width: 100%;
	display: block;
	float: none;
	margin: 0;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	border: none;
	border-radius: var(--szp-chk-radius-sm);
	background: var(--szp-chk-accent);
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#order_review.szp-checkout-skin #payment #place_order:hover,
.szp-checkout-payment.szp-checkout-skin #payment #place_order:hover {
	background: var(--szp-chk-accent-hover);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

#order_review.szp-checkout-skin #payment #place_order:focus,
.szp-checkout-payment.szp-checkout-skin #payment #place_order:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
}
