/* ═══════════════════════════════════════════
   Solid Addons — Woo Checkout Widget
   FunnelKit checkout — pixel-match
   ═══════════════════════════════════════════ */

.solidae-wc-checkout {
	--solidae-co-primary: #1a1a1a;
	--solidae-co-primary-hover: #333333;
	--solidae-co-text: #333333;
	--solidae-co-text-muted: #737373;
	--solidae-co-heading: #1a1a1a;
	--solidae-co-border: #d9d9d9;
	--solidae-co-border-focus: #1a1a1a;
	--solidae-co-bg: #ffffff;
	--solidae-co-field-bg: #ffffff;
	--solidae-co-field-radius: 4px;
	--solidae-co-section-bg: #ffffff;
	--solidae-co-section-border: #e5e5e5;
	--solidae-co-section-radius: 6px;
	--solidae-co-section-gap: 16px;
	--solidae-co-aside-bg: #fafafa;
	--solidae-co-btn-bg: #1a1a1a;
	--solidae-co-btn-color: #ffffff;
	--solidae-co-btn-radius: 4px;
	--solidae-co-progress-active: #1a1a1a;
	--solidae-co-progress-completed: #1a1a1a;
	--solidae-co-progress-inactive: #d9d9d9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--solidae-co-text);
	line-height: 1.5;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
}

.solidae-wc-checkout *,
.solidae-wc-checkout *::before,
.solidae-wc-checkout *::after {
	box-sizing: border-box;
}

/* ─── Layout ─── */

.solidae-wc-checkout__layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.solidae-wc-checkout--sidebar .solidae-wc-checkout__main {
	flex: 1;
	min-width: 0;
}

.solidae-wc-checkout--sidebar .solidae-wc-checkout__aside-col {
	width: 38%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: var(--solidae-co-section-gap, 16px);
}

.solidae-wc-checkout--sidebar .solidae-wc-checkout__aside {
	width: 100%;
}

.solidae-wc-checkout:not(.solidae-wc-checkout--sidebar) .solidae-wc-checkout__layout {
	flex-direction: column;
}

/* ─── Mobile order bar (hidden on desktop) ─── */

.solidae-wc-checkout__order-bar {
	display: none !important;
	border: 1px solid var(--solidae-co-section-border);
	border-radius: var(--solidae-co-section-radius);
	background: var(--solidae-co-section-bg);
	margin-bottom: var(--solidae-co-section-gap);
	overflow: hidden;
}

.solidae-wc-checkout__order-bar-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--solidae-co-text);
}

.solidae-wc-checkout__order-bar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.solidae-wc-checkout__order-bar-left > svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.solidae-wc-checkout__order-bar-chevron {
	width: 12px !important;
	height: 12px !important;
	transition: transform 200ms ease;
}

.solidae-wc-checkout__order-bar.is-open .solidae-wc-checkout__order-bar-chevron {
	transform: rotate(180deg);
}

.solidae-wc-checkout__order-bar-total {
	font-weight: 700;
	color: var(--solidae-co-heading);
}

.solidae-wc-checkout__order-bar-body {
	display: none;
	padding: 0 20px 16px;
}

.solidae-wc-checkout__order-bar.is-open .solidae-wc-checkout__order-bar-body {
	display: block;
}

/* ─── Section cards ─── */

.solidae-wc-checkout__section {
	background: var(--solidae-co-section-bg);
	border: 1px solid var(--solidae-co-section-border);
	border-radius: var(--solidae-co-section-radius);
	padding: 24px 24px 20px;
}

.solidae-wc-checkout__section + .solidae-wc-checkout__section {
	margin-top: var(--solidae-co-section-gap);
}

.solidae-wc-checkout__section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--solidae-co-heading);
	margin: 0 0 18px 0;
	padding: 0;
	line-height: 1.3;
}

.solidae-wc-checkout__payment-note {
	font-size: 13px;
	color: var(--solidae-co-text-muted);
	margin: -10px 0 16px 0;
	font-weight: 600;
}

/* Contact section (JS-created split from billing) */
.solidae-wc-checkout__section--contact + .solidae-wc-checkout__section--billing {
	margin-top: var(--solidae-co-section-gap);
}

.solidae-wc-checkout__contact-fields-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Email = full width, first/last name = half */
.solidae-wc-checkout__contact-fields-wrap #billing_email_field {
	width: 100%;
}

.solidae-wc-checkout__contact-fields-wrap #billing_first_name_field,
.solidae-wc-checkout__contact-fields-wrap #billing_last_name_field {
	width: calc(50% - 6px);
}

/* ═══════════════════════════════════════════
   FLOATING INSIDE-LABELS
   FunnelKit style: label sits inside the field,
   floats to top-left when focused or has value.
   ═══════════════════════════════════════════ */

.solidae-wc-checkout .form-row {
	position: relative;
	margin: 0;
	padding: 0;
	float: none;
	width: 100%;
}

.solidae-wc-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper .form-row {
	margin: 0;
}

.solidae-wc-checkout .form-row-first,
.solidae-wc-checkout .form-row-last {
	width: calc(50% - 6px);
	float: none;
}

.solidae-wc-checkout .form-row-wide {
	width: 100%;
}

/* ── FunnelKit address field widths ── */

.solidae-wc-checkout #billing_address_1_field,
.solidae-wc-checkout #shipping_address_1_field,
.solidae-wc-checkout #billing_address_2_field,
.solidae-wc-checkout #shipping_address_2_field {
	width: 100% !important;
}

.solidae-wc-checkout #billing_city_field,
.solidae-wc-checkout #shipping_city_field,
.solidae-wc-checkout #billing_postcode_field,
.solidae-wc-checkout #shipping_postcode_field,
.solidae-wc-checkout #billing_country_field,
.solidae-wc-checkout #shipping_country_field,
.solidae-wc-checkout #billing_state_field,
.solidae-wc-checkout #shipping_state_field,
.solidae-wc-checkout #billing_phone_field,
.solidae-wc-checkout #shipping_phone_field {
	width: calc(50% - 6px) !important;
	float: none !important;
}

/* ── FunnelKit address field ORDER (CSS fallback) ──
   Forces visual order even if JS reorder hasn't run yet */

.solidae-wc-checkout .woocommerce-billing-fields__field-wrapper,
.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.solidae-wc-checkout #billing_email_field,
.solidae-wc-checkout #shipping_email_field { order: 1; }
.solidae-wc-checkout #billing_first_name_field,
.solidae-wc-checkout #shipping_first_name_field { order: 2; }
.solidae-wc-checkout #billing_last_name_field,
.solidae-wc-checkout #shipping_last_name_field { order: 3; }
.solidae-wc-checkout #billing_address_1_field,
.solidae-wc-checkout #shipping_address_1_field { order: 10; }
.solidae-wc-checkout #billing_address_2_field,
.solidae-wc-checkout #shipping_address_2_field { order: 11; }
.solidae-wc-checkout #billing_city_field,
.solidae-wc-checkout #shipping_city_field { order: 12; }
.solidae-wc-checkout #billing_postcode_field,
.solidae-wc-checkout #shipping_postcode_field { order: 13; }
.solidae-wc-checkout #billing_country_field,
.solidae-wc-checkout #shipping_country_field { order: 14; }
.solidae-wc-checkout #billing_state_field,
.solidae-wc-checkout #shipping_state_field { order: 15; }
.solidae-wc-checkout #billing_phone_field,
.solidae-wc-checkout #shipping_phone_field { order: 16; }

/* ── Order notes — own card after billing ── */

/* Additional fields sits between billing and shipping sections after JS move */
.solidae-wc-checkout .woocommerce-additional-fields {
	margin-top: var(--solidae-co-section-gap);
	margin-bottom: 0;
	background: var(--solidae-co-section-bg);
	border: 1px solid var(--solidae-co-section-border);
	border-radius: var(--solidae-co-section-radius);
	padding: 24px 24px 20px;
}

/* Ensure sections after additional-fields also get spacing */
.solidae-wc-checkout .woocommerce-additional-fields + .solidae-wc-checkout__section {
	margin-top: var(--solidae-co-section-gap);
}

.solidae-wc-checkout .woocommerce-additional-fields > h3 {
	display: block !important;
	font-size: 18px;
	font-weight: 700;
	color: var(--solidae-co-heading);
	margin: 0 0 14px 0;
	line-height: 1.3;
}

/* ── Default label: inside the field, acting as placeholder ── */

.solidae-wc-checkout .form-row.solidae-floating-row label {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 400;
	color: var(--solidae-co-text-muted);
	pointer-events: none;
	transition: top 150ms ease, transform 150ms ease, font-size 150ms ease, font-weight 150ms ease;
	margin: 0;
	padding: 0;
	line-height: 1;
	z-index: 1;
	background: transparent;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 28px);
}

/* ── Floated state: label shrinks to top ── */

.solidae-wc-checkout .form-row.solidae-floating-row.solidae-float label {
	top: 8px;
	transform: none;
	font-size: 11px;
	font-weight: 500;
	color: var(--solidae-co-text-muted);
}

/* ── Non-floating rows (textarea, checkbox): standard label above ── */

.solidae-wc-checkout .form-row:not(.solidae-floating-row) label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--solidae-co-text);
	margin-bottom: 6px;
	line-height: 1.3;
}

.solidae-wc-checkout .form-row label .optional {
	font-weight: 400;
	color: var(--solidae-co-text-muted);
	font-size: inherit;
}

.solidae-wc-checkout .form-row label .required {
	color: inherit;
	text-decoration: none;
	border: 0;
}

/* ── Fields — taller to fit floating label + value ── */

.solidae-wc-checkout .form-row input.input-text,
.solidae-wc-checkout .form-row select {
	width: 100%;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	padding: 20px 14px 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--solidae-co-text);
	background-color: var(--solidae-co-field-bg);
	transition: border-color 200ms ease, box-shadow 200ms ease;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	height: 50px;
}

.solidae-wc-checkout .form-row textarea {
	width: 100%;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--solidae-co-text);
	background-color: var(--solidae-co-field-bg);
	transition: border-color 200ms ease, box-shadow 200ms ease;
	outline: none;
	min-height: 80px;
	resize: vertical;
}

.solidae-wc-checkout .form-row select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.solidae-wc-checkout .form-row input.input-text:focus,
.solidae-wc-checkout .form-row select:focus,
.solidae-wc-checkout .form-row textarea:focus {
	border-color: var(--solidae-co-border-focus);
	box-shadow: 0 0 0 1px var(--solidae-co-border-focus);
}

/* Hide native placeholder — floating label IS the placeholder */
.solidae-wc-checkout .form-row.solidae-floating-row input.input-text::placeholder {
	color: transparent;
}

/* Address 2 (apartment) — uses placeholder, not floating label.
   WC hides its label with screen-reader-text. Show placeholder instead. */
.solidae-wc-checkout #billing_address_2_field input.input-text,
.solidae-wc-checkout #shipping_address_2_field input.input-text {
	padding: 10px 14px;
	height: 44px;
}

.solidae-wc-checkout #billing_address_2_field input.input-text::placeholder,
.solidae-wc-checkout #shipping_address_2_field input.input-text::placeholder {
	color: var(--solidae-co-text-muted) !important;
	opacity: 1;
}

/* Hide the screen-reader-only label WC adds to address_2 */
.solidae-wc-checkout #billing_address_2_field label,
.solidae-wc-checkout #shipping_address_2_field label {
	position: static;
	display: none;
}

/* Non-floating textarea keeps placeholder visible */
.solidae-wc-checkout .form-row:not(.solidae-floating-row) input.input-text::placeholder,
.solidae-wc-checkout .form-row textarea::placeholder {
	color: var(--solidae-co-text-muted);
	opacity: 1;
}

/* Validation */
.solidae-wc-checkout .form-row.woocommerce-invalid input.input-text,
.solidae-wc-checkout .form-row.woocommerce-invalid select {
	border-color: #e74c3c;
}

.solidae-wc-checkout .form-row.woocommerce-validated input.input-text,
.solidae-wc-checkout .form-row.woocommerce-validated select {
	border-color: #2ecc71;
}

/* Select2 — match floating label height */
.solidae-wc-checkout .select2-container--default .select2-selection--single {
	height: 50px;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	padding: 20px 14px 8px;
	display: flex;
	align-items: flex-end;
}

.solidae-wc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1;
	padding: 0 0 2px 0;
	color: var(--solidae-co-text);
	font-size: 14px;
}

.solidae-wc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 10px;
	top: 0;
}

.solidae-wc-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.solidae-wc-checkout .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--solidae-co-border-focus);
	box-shadow: 0 0 0 1px var(--solidae-co-border-focus);
}

/* ─── Hide default WC headings ─── */

/* Hide WC default headings inside billing/shipping — we render our own section titles */
.solidae-wc-checkout .woocommerce-checkout #customer_details h3,
.solidae-wc-checkout .woocommerce-checkout .woocommerce-billing-fields > h3,
.solidae-wc-checkout .woocommerce-checkout .woocommerce-shipping-fields > h3,
.solidae-wc-checkout .woocommerce-checkout #order_review_heading {
	display: none;
}

/* Do NOT hide additional-fields h3 — it's in its own card now */

/* ─── #customer_details layout reset ─── */

.solidae-wc-checkout #customer_details {
	display: block;
}

.solidae-wc-checkout #customer_details .col-1,
.solidae-wc-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

/* ── Shipping address — inside billing card (FunnelKit style) ── */

/* Shipping fields block sits at bottom of billing card with a top border */
.solidae-wc-checkout__section--billing > .woocommerce-shipping-fields {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--solidae-co-section-border);
}

/* Checkbox label */
.solidae-wc-checkout #ship-to-different-address {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	color: var(--solidae-co-text);
}

.solidae-wc-checkout #ship-to-different-address input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: var(--solidae-co-primary);
}

/* Shipping fields that appear when checkbox is checked */
.solidae-wc-checkout .shipping_address {
	margin-top: 16px;
}

.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper .form-row {
	margin: 0;
}

/* Separate section card for always-visible shipping mode */
.solidae-wc-checkout__section--shipping-address {
	margin-top: var(--solidae-co-section-gap);
}

/* Hide col-2 after JS moves shipping out */
.solidae-wc-checkout #customer_details .col-2[style*="display: none"] {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.solidae-wc-checkout .woocommerce-additional-fields__field-wrapper .form-row {
	margin: 0;
}

/* ─── Shipping methods ─── */

.solidae-wc-checkout .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	overflow: hidden;
}

.solidae-wc-checkout .woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid var(--solidae-co-border);
	cursor: pointer;
	transition: background-color 150ms ease;
	gap: 10px;
	margin: 0;
	border-radius: 0;
	background: var(--solidae-co-section-bg);
}

.solidae-wc-checkout .woocommerce-shipping-methods li:last-child {
	border-bottom: 0;
}

.solidae-wc-checkout .woocommerce-shipping-methods li:hover {
	background-color: #fafafa;
}

.solidae-wc-checkout .woocommerce-shipping-methods li label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--solidae-co-text);
}

.solidae-wc-checkout .woocommerce-shipping-methods li input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: var(--solidae-co-primary);
}

/* ─── Payment methods ─── */

.solidae-wc-checkout .wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	overflow: visible;
}

/* Each payment method row: radio + label inline */
.solidae-wc-checkout .wc_payment_method {
	border-bottom: 1px solid var(--solidae-co-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 0;
}

.solidae-wc-checkout .wc_payment_method:last-of-type {
	border-bottom: 0;
}

/* Radio sits at the left edge */
.solidae-wc-checkout .wc_payment_method > input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 0 0 16px;
	flex-shrink: 0;
	accent-color: var(--solidae-co-primary);
	cursor: pointer;
}

/* Label fills the rest of the row */
.solidae-wc-checkout .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	padding: 14px 16px 14px 10px;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--solidae-co-text);
}

.solidae-wc-checkout .wc_payment_method > label img {
	max-height: 24px;
	width: auto;
}

/* Payment box — GATEWAY SAFE: outer container only.
   Full width below radio+label. No height/overflow constraints. */
.solidae-wc-checkout .wc_payment_methods .payment_box {
	width: 100%;
	flex-basis: 100%;
	padding: 14px 16px 14px 44px; /* left-indent to align with label text */
	background-color: #f7f7f7;
	border-top: 1px solid var(--solidae-co-section-border);
	font-size: 14px;
	color: var(--solidae-co-text-muted);
	line-height: 1.5;
	margin: 0;
}

/* Remove WC default triangle/arrow */
.solidae-wc-checkout .wc_payment_methods .payment_box::before,
.solidae-wc-checkout .wc_payment_methods .payment_box::after {
	display: none !important;
	content: none !important;
}

/* ─── Place order ─── */

.solidae-wc-checkout #place_order {
	display: block;
	width: 100%;
	padding: 18px 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--solidae-co-btn-color);
	background-color: var(--solidae-co-btn-bg);
	border: 0;
	border-radius: var(--solidae-co-btn-radius);
	cursor: pointer;
	transition: background-color 200ms ease;
	text-align: center;
	margin-top: 16px;
}

.solidae-wc-checkout #place_order:hover {
	background-color: var(--solidae-co-primary-hover);
}

/* ─── Terms ─── */

.solidae-wc-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-top: 14px;
	font-size: 13px;
	color: var(--solidae-co-text-muted);
}

.solidae-wc-checkout .woocommerce-terms-and-conditions-wrapper a {
	color: var(--solidae-co-primary);
	text-decoration: underline;
}

.solidae-wc-checkout .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.solidae-wc-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0 0;
	flex-shrink: 0;
	accent-color: var(--solidae-co-primary);
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */

.solidae-wc-checkout__aside {
	background: var(--solidae-co-aside-bg);
	border: 1px solid var(--solidae-co-section-border);
	border-radius: var(--solidae-co-section-radius);
	padding: 24px;
}

.solidae-wc-checkout__aside-inner {
	position: sticky;
	top: 20px;
}

.solidae-wc-checkout__aside-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--solidae-co-heading);
	margin: 0 0 16px 0;
	padding: 0 0 12px 0;
	line-height: 1.3;
	border-bottom: 1px solid var(--solidae-co-section-border);
}

/* ═══════════════════════════════════════════
   CART ITEMS — FunnelKit layout
   ═══════════════════════════════════════════ */

.solidae-wc-checkout__cart-items {
	margin-bottom: 0;
}

.solidae-wc-checkout__cart-item {
	display: grid;
	grid-template-columns: 56px 1fr auto auto;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 0;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--solidae-co-section-border);
}

.solidae-wc-checkout__cart-item:last-child {
	border-bottom: 0;
}

/* ── Row 1 wrapper — not needed with grid, kept for DOM ── */

.solidae-wc-checkout__cart-item-row {
	display: contents;
}

/* ── Thumb: spans both rows ── */

.solidae-wc-checkout__cart-item-thumb {
	grid-column: 1;
	grid-row: 1 / 3;
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: visible;
	border: 1px solid var(--solidae-co-section-border);
	background: #ffffff;
	align-self: start;
}

.solidae-wc-checkout__cart-item-thumb img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	object-fit: cover;
	display: block;
	border-radius: 5px;
}

.solidae-wc-checkout__cart-item-qty-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	background: var(--solidae-co-text-muted);
	color: #ffffff;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0 4px;
	z-index: 1;
}

/* ── Name: col 2, row 1 ── */

.solidae-wc-checkout__cart-item-info {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	padding-top: 2px;
}

.solidae-wc-checkout__cart-item-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--solidae-co-text);
	line-height: 1.35;
	word-break: break-word;
}

.solidae-wc-checkout__cart-item-meta {
	display: block;
	font-size: 12px;
	color: var(--solidae-co-text-muted);
	margin-top: 2px;
}

/* ── Price: col 3, row 1 ── */

.solidae-wc-checkout__cart-item-price {
	grid-column: 3;
	grid-row: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--solidae-co-text);
	white-space: nowrap;
	text-align: right;
	padding-top: 2px;
}

/* ── Remove X: col 4, row 1 ── */

.solidae-wc-checkout__cart-item-remove {
	grid-column: 4;
	grid-row: 1;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--solidae-co-text-muted);
	padding: 0;
	opacity: 0.45;
	transition: opacity 150ms ease;
	font-size: 0;
	line-height: 1;
	margin-top: 3px;
}

.solidae-wc-checkout__cart-item-remove:hover {
	opacity: 1;
}

.solidae-wc-checkout__cart-item-remove svg {
	width: 16px;
	height: 16px;
}

/* ── Qty controls: col 2, row 2 — sits right below name beside the image ── */

.solidae-wc-checkout__cart-item-qty-row {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-items: center;
	margin-top: 6px;
}

.solidae-wc-checkout__qty-controls {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--solidae-co-border);
	border-radius: 4px;
	overflow: hidden;
}

.solidae-wc-checkout__qty-btn {
	width: 28px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--solidae-co-field-bg);
	border: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--solidae-co-text);
	transition: background-color 150ms ease;
	padding: 0;
	line-height: 1;
	user-select: none;
}

.solidae-wc-checkout__qty-btn:hover {
	background-color: #f0f0f0;
}

.solidae-wc-checkout__qty-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.solidae-wc-checkout__qty-value {
	width: 28px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--solidae-co-text);
	line-height: 26px;
	border-left: 1px solid var(--solidae-co-border);
	border-right: 1px solid var(--solidae-co-border);
}

/* ── Coupon ── */

.solidae-wc-checkout__coupon {
	padding: 14px 0;
	border-top: 1px solid var(--solidae-co-section-border);
}

.solidae-wc-checkout__coupon-form {
	display: flex;
	gap: 8px;
}

.solidae-wc-checkout__coupon-input {
	flex: 1;
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-field-radius);
	padding: 10px 12px;
	font-size: 14px;
	color: var(--solidae-co-text);
	background: var(--solidae-co-field-bg);
	outline: none;
	transition: border-color 200ms ease;
	height: 42px;
}

.solidae-wc-checkout__coupon-input:focus {
	border-color: var(--solidae-co-border-focus);
}

.solidae-wc-checkout__coupon-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: var(--solidae-co-text-muted);
	border: 0;
	border-radius: var(--solidae-co-field-radius);
	cursor: pointer;
	transition: background-color 200ms ease;
	white-space: nowrap;
	height: 42px;
}

.solidae-wc-checkout__coupon-btn:hover {
	background-color: var(--solidae-co-primary);
}

/* Coupon feedback messages */
.solidae-wc-checkout__coupon-msg {
	font-size: 13px;
	line-height: 1.4;
	margin-top: 6px;
	min-height: 0;
}

.solidae-wc-checkout__coupon-msg:empty {
	display: none;
}

.solidae-wc-checkout__coupon-msg--error {
	color: #e74c3c;
}

.solidae-wc-checkout__coupon-msg--success {
	color: #22c55e;
}

/* ── Totals ── */

.solidae-wc-checkout__totals-mirror {
	font-size: 14px;
	color: var(--solidae-co-text);
	border-top: 1px solid var(--solidae-co-section-border);
	padding-top: 8px;
}

.solidae-wc-checkout__totals-mirror table {
	width: 100%;
	border-collapse: collapse;
}

.solidae-wc-checkout__totals-mirror tr th,
.solidae-wc-checkout__totals-mirror tr td {
	padding: 6px 0;
	border: 0;
	font-size: 14px;
	text-align: left;
	font-weight: 400;
}

.solidae-wc-checkout__totals-mirror tr td {
	text-align: right;
}

.solidae-wc-checkout__totals-mirror .order-total th,
.solidae-wc-checkout__totals-mirror .order-total td {
	font-size: 16px;
	font-weight: 700;
	color: var(--solidae-co-heading);
	padding-top: 10px;
}

/* Keep the Subtotal / Shipping / Total rows clean — no theme/WC row background or hover */
.solidae-wc-checkout__totals-mirror table,
.solidae-wc-checkout__totals-mirror tr,
.solidae-wc-checkout__totals-mirror tr:hover,
.solidae-wc-checkout__totals-mirror tr th,
.solidae-wc-checkout__totals-mirror tr td,
.solidae-wc-checkout__totals-mirror tr:hover th,
.solidae-wc-checkout__totals-mirror tr:hover td {
	background: transparent !important;
}

/* ── Sidebar info box (separate box below the order summary) ── */

.solidae-wc-checkout__aside-extra {
	background: var(--solidae-co-aside-bg);
	border: 1px solid var(--solidae-co-section-border);
	border-radius: var(--solidae-co-section-radius);
	padding: 20px 24px;
}

.solidae-wc-checkout__aside-extra-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--solidae-co-heading);
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.solidae-wc-checkout__info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.solidae-wc-checkout__info-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--solidae-co-text);
}

.solidae-wc-checkout__info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #22c55e;
	font-size: 20px;
	line-height: 1;
}

.solidae-wc-checkout__info-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.solidae-wc-checkout__info-text {
	flex: 1;
	min-width: 0;
}

/* ── Hide WC order review table in sidebar mode ── */

.solidae-wc-checkout--sidebar .woocommerce-checkout-review-order-table {
	display: none;
}

/* Hide shipping row in totals mirror — we have a dedicated Shipping Method section */
.solidae-wc-checkout__totals-mirror .woocommerce-shipping-totals {
	display: none;
}

.solidae-wc-checkout:not(.solidae-wc-checkout--sidebar) .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.solidae-wc-checkout:not(.solidae-wc-checkout--sidebar) .woocommerce-checkout-review-order-table th,
.solidae-wc-checkout:not(.solidae-wc-checkout--sidebar) .woocommerce-checkout-review-order-table td {
	padding: 10px 0;
	border-bottom: 1px solid var(--solidae-co-section-border);
	font-size: 14px;
}

/* Order summary table — keep clean: no theme/WC row background or hover tint */
.solidae-wc-checkout__aside .shop_table,
.solidae-wc-checkout__aside .shop_table tbody,
.solidae-wc-checkout__aside .shop_table tr,
.solidae-wc-checkout__aside .shop_table th,
.solidae-wc-checkout__aside .shop_table td,
.solidae-wc-checkout .woocommerce-checkout-review-order-table tr,
.solidae-wc-checkout .woocommerce-checkout-review-order-table th,
.solidae-wc-checkout .woocommerce-checkout-review-order-table td {
	background-color: transparent !important;
}

.solidae-wc-checkout__aside .shop_table tr:hover,
.solidae-wc-checkout__aside .shop_table tr:hover th,
.solidae-wc-checkout__aside .shop_table tr:hover td,
.solidae-wc-checkout .woocommerce-checkout-review-order-table tr:hover,
.solidae-wc-checkout .woocommerce-checkout-review-order-table tr:hover th,
.solidae-wc-checkout .woocommerce-checkout-review-order-table tr:hover td {
	background-color: transparent !important;
}

/* ── WC notices ── */

.solidae-wc-checkout .woocommerce-error,
.solidae-wc-checkout .woocommerce-message,
.solidae-wc-checkout .woocommerce-info {
	border-radius: var(--solidae-co-field-radius);
	margin-bottom: 12px;
	padding: 12px 16px;
	font-size: 14px;
}

.solidae-wc-checkout-notice {
	text-align: center;
	padding: 40px 20px;
	font-size: 16px;
	color: var(--solidae-co-text-muted);
}

/* ── Login form ── */

.solidae-wc-checkout .woocommerce-form-login {
	border: 1px solid var(--solidae-co-border);
	border-radius: var(--solidae-co-section-radius);
	padding: 20px;
	margin-bottom: var(--solidae-co-section-gap);
}

.solidae-wc-checkout__shipping-methods-wrap:empty {
	display: none;
}

/* ═══════════════════════════════════════════
   MULTI-STEP
   ═══════════════════════════════════════════ */

.solidae-wc-checkout__progress {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
}

.solidae-wc-checkout__progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.solidae-wc-checkout__progress-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--solidae-co-progress-inactive);
	transition: background-color 250ms ease;
	flex-shrink: 0;
}

.solidae-wc-checkout__progress-step.is-active .solidae-wc-checkout__progress-dot,
.solidae-wc-checkout__progress-step.is-completed .solidae-wc-checkout__progress-dot {
	background-color: var(--solidae-co-progress-active);
}

.solidae-wc-checkout__progress-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--solidae-co-progress-inactive);
	transition: color 250ms ease;
}

.solidae-wc-checkout__progress-step.is-active .solidae-wc-checkout__progress-label,
.solidae-wc-checkout__progress-step.is-completed .solidae-wc-checkout__progress-label {
	color: var(--solidae-co-progress-active);
}

.solidae-wc-checkout__progress-line {
	flex: 1;
	height: 2px;
	background-color: var(--solidae-co-progress-inactive);
	margin: 0 12px;
	min-width: 40px;
	transition: background-color 250ms ease;
}

.solidae-wc-checkout__progress-line.is-completed {
	background-color: var(--solidae-co-progress-completed);
}

.solidae-wc-checkout__step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

.solidae-wc-checkout__nav-btn {
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--solidae-co-btn-radius);
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
	border: 2px solid transparent;
}

.solidae-wc-checkout__nav-btn--continue {
	background-color: var(--solidae-co-btn-bg);
	color: var(--solidae-co-btn-color);
}

.solidae-wc-checkout__nav-btn--back {
	background: transparent;
	color: var(--solidae-co-text);
	border-color: var(--solidae-co-border);
}

/* Multi-step visibility */

.solidae-wc-checkout--multi_step[data-active-step="1"] .solidae-wc-checkout__section--shipping-method,
.solidae-wc-checkout--multi_step[data-active-step="1"] .solidae-wc-checkout__section--payment,
.solidae-wc-checkout--multi_step[data-active-step="1"] [data-step-nav="3"] { display: none; }

.solidae-wc-checkout--multi_step[data-active-step="2"] .solidae-wc-checkout__section--billing,
.solidae-wc-checkout--multi_step[data-active-step="2"] .solidae-wc-checkout__section--contact,
.solidae-wc-checkout--multi_step[data-active-step="2"] .solidae-wc-checkout__section--payment,
.solidae-wc-checkout--multi_step[data-active-step="2"] [data-step-nav="3"] { display: none; }

.solidae-wc-checkout--multi_step[data-active-step="3"] .solidae-wc-checkout__section--billing,
.solidae-wc-checkout--multi_step[data-active-step="3"] .solidae-wc-checkout__section--contact,
.solidae-wc-checkout--multi_step[data-active-step="3"] .solidae-wc-checkout__section--shipping-method,
.solidae-wc-checkout--multi_step[data-active-step="3"] [data-step-nav="1-2"] { display: none; }

/* ═══════════════════════════════════════════
   EDITOR PREVIEW
   Mirrors frontend structure exactly — uses WC
   native classes so all style controls apply.
   ═══════════════════════════════════════════ */

/* Thumbnail placeholder for cart items (same class still used) */
.solidae-wc-checkout__preview-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
	border-radius: 5px;
}

/* Editor: prevent browser readonly default styling from interfering with Elementor controls */
.solidae-wc-checkout--editor .form-row input.input-text[readonly],
.solidae-wc-checkout--editor .form-row input.input-text,
.solidae-wc-checkout--editor .form-row select,
.solidae-wc-checkout--editor .solidae-wc-checkout__coupon-input[readonly],
.solidae-wc-checkout--editor .solidae-wc-checkout__coupon-input {
	cursor: default;
	-webkit-text-fill-color: inherit;
	opacity: 1;
	color-scheme: normal;
}

/* Editor: force inherit background on readonly inputs (some browsers override) */
.solidae-wc-checkout--editor .form-row input.input-text[readonly]:not(:focus),
.solidae-wc-checkout--editor .form-row input.input-text:not(:focus),
.solidae-wc-checkout--editor .form-row select:not(:focus) {
	background-image: inherit;
}

/* Editor: make all interactive elements non-interactive without using disabled attribute */
.solidae-wc-checkout--editor .form-row input.input-text,
.solidae-wc-checkout--editor .form-row select,
.solidae-wc-checkout--editor .wc_payment_method input[type="radio"],
.solidae-wc-checkout--editor .woocommerce-shipping-methods input[type="radio"],
.solidae-wc-checkout--editor .woocommerce-form__input-checkbox,
.solidae-wc-checkout--editor #place_order,
.solidae-wc-checkout--editor .solidae-wc-checkout__coupon-input,
.solidae-wc-checkout--editor .solidae-wc-checkout__coupon-btn {
	pointer-events: none;
	user-select: none;
}

.solidae-wc-checkout--editor .wc_payment_method label,
.solidae-wc-checkout--editor .woocommerce-shipping-methods li label,
.solidae-wc-checkout--editor .woocommerce-form__label-checkbox {
	cursor: default;
}

/* Editor: place order button gets full width + proper styling by default */
.solidae-wc-checkout--editor #place_order {
	display: block;
	width: 100%;
	margin-top: 16px;
	cursor: default;
}

/* Editor: show cart-subtotal / shipping / order-total table rows properly */
.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .shop_table {
	width: 100%;
	border-collapse: collapse;
}

.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .shop_table tr {
	border: 0;
}

.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .shop_table th,
.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .shop_table td {
	padding: 6px 0;
	border: 0;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
}

.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .shop_table td {
	text-align: right;
}

.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .order-total th,
.solidae-wc-checkout--editor .solidae-wc-checkout__totals-mirror .order-total td {
	font-size: 16px;
	font-weight: 700;
	padding-top: 10px;
	border-top: 1px solid var(--solidae-co-section-border);
}

/* Editor: terms checkbox wrapper spacing */
.solidae-wc-checkout--editor .woocommerce-terms-and-conditions-wrapper {
	margin: 14px 0;
}

.solidae-wc-checkout--editor .woocommerce-terms-and-conditions-wrapper .form-row {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.solidae-wc-checkout--editor .woocommerce-form__label-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	cursor: default;
	margin: 0;
}

.solidae-wc-checkout--editor .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin: 2px 0 0 0;
	flex-shrink: 0;
}

/* Editor: ship-to-different-address heading spacing */
.solidae-wc-checkout--editor #ship-to-different-address {
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--solidae-co-section-border);
	font-size: 14px;
	font-weight: 400;
}

.solidae-wc-checkout--editor #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	color: var(--solidae-co-text, #333333);
	cursor: default;
	margin: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 991px) {
	.solidae-wc-checkout__layout {
		flex-direction: column;
		gap: 20px;
	}

	.solidae-wc-checkout--sidebar .solidae-wc-checkout__aside {
		width: 100%;
		order: -1;
	}

	.solidae-wc-checkout__aside-inner {
		position: static;
	}

	/* Show mobile order bar, hide desktop sidebar */
	.solidae-wc-checkout__order-bar {
		display: block !important;
	}

	.solidae-wc-checkout--sidebar .solidae-wc-checkout__aside-col {
		display: none;
		width: 100%;
	}
}

@media (max-width: 767px) {
	/* Stack all half-width fields to full width */
	.solidae-wc-checkout .form-row-first,
	.solidae-wc-checkout .form-row-last {
		width: 100%;
	}

	/* Contact section: stack name fields */
	.solidae-wc-checkout__contact-fields-wrap {
		flex-direction: column;
	}

	.solidae-wc-checkout__contact-fields-wrap .form-row {
		width: 100% !important;
	}

	/* Billing/shipping fields: stack all */
	.solidae-wc-checkout .woocommerce-billing-fields__field-wrapper,
	.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper {
		flex-direction: column;
	}

	.solidae-wc-checkout .woocommerce-billing-fields__field-wrapper .form-row,
	.solidae-wc-checkout .woocommerce-shipping-fields__field-wrapper .form-row {
		width: 100% !important;
	}

	/* Section card padding */
	.solidae-wc-checkout__section {
		padding: 16px 14px 14px;
	}

	.solidae-wc-checkout__aside {
		padding: 16px 14px;
	}

	/* Tighter section titles */
	.solidae-wc-checkout__section-title {
		font-size: 16px;
		margin-bottom: 14px;
	}

	/* Progress bar labels */
	.solidae-wc-checkout__progress-label {
		font-size: 12px;
	}

	.solidae-wc-checkout__progress-line {
		min-width: 20px;
	}

	/* Cart items: slightly smaller thumb on mobile */
	.solidae-wc-checkout__cart-item {
		grid-template-columns: 48px 1fr auto auto;
	}

	.solidae-wc-checkout__cart-item-thumb {
		width: 48px;
		height: 48px;
	}

	.solidae-wc-checkout__cart-item-thumb img {
		width: 48px !important;
		height: 48px !important;
		max-width: 48px !important;
	}

	/* Place order button */
	.solidae-wc-checkout #place_order {
		padding: 16px 20px;
		font-size: 15px;
	}

}
