/*--------------------------------------------------------------
# Checkout: order review + shipping methods
--------------------------------------------------------------*/

/* The table is laid out with flex so the Shipment row can use the full width.
   Columns keep the same split on every row. */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table thead,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tbody,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot {
	display: block;
	width: 100%;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr {
	display: flex;
	align-items: baseline;
	width: 100%;
	box-sizing: border-box;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table td {
	max-width: none !important;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr > th:first-child,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr > td:first-child {
	flex: 0 0 66%;
	box-sizing: border-box;
	min-width: 0;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr > th:last-child,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr > td:last-child {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

/* Typography, as in the mockup. */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table thead th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot th {
	font-weight: 600 !important;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot tr:not(.woocommerce-shipping-totals) td {
	font-weight: 600 !important;
	text-align: right;
}

.elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .order-total td {
    text-align: right;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	padding-top: 16px;
	font-size: 28px !important;
	font-weight: 600 !important;
}

/* "Shipment" label on top, the methods underneath. */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
	flex-direction: column;
	align-items: stretch;
	padding: 12px 0 8px;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
	display: block;
	flex: 0 0 auto;
	width: 100% !important;
	padding: 0;
	border: 0;
	text-align: left;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
	font-size: 22px !important;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
	margin-top: 12px;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each method is a card. */
.elementor-widget-woocommerce-checkout-page ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0 0 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.28);
	list-style: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method li:has(input.shipping_method:checked) {
	border-color: #000;
	background: rgba(255, 255, 255, 0.7);
}

/* Radio: white circle, black dot with a yellow ring when selected. */
.elementor-widget-woocommerce-checkout-page ul#shipping_method input.shipping_method {
	appearance: none;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0 !important;
	border: 2px solid #8a8a8a !important;
	border-radius: 50% !important;
	background: #fff !important;
	cursor: pointer;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method input.shipping_method:checked {
	border-color: var(--e-global-color-b274427, #f9d503) !important;
	background: radial-gradient(circle, #000 0, #000 42%, #fff 46%) !important;
	box-shadow: 0 0 0 1px #b99a00;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method input.shipping_method:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* The whole card is the clickable label. */
.elementor-widget-woocommerce-checkout-page ul#shipping_method li label {
	display: flex !important;
	flex: 1 1 0;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 16px 16px 16px 0;
	color: #000;
	font-family: "STKBureauSefif", serif !important;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method li label .woocommerce-Price-amount {
	flex: 0 0 auto;
	white-space: nowrap;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method li label img {
	flex: 0 0 auto;
	width: 44px;
	height: auto;
	margin: 0 10px 0 0 !important;
}

/* Product rows: equal-height cells so the divider lines meet. */
.elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tbody tr {
	align-items: stretch;
}

/* Methods without a price (bpost): logo and name stay together on the left. */
.elementor-widget-woocommerce-checkout-page ul#shipping_method li label:has(img) {
	justify-content: flex-start;
}

/* bpost: delivery-method button and message live inside the bpost card. */
.elementor-widget-woocommerce-checkout-page ul#shipping_method li {
	flex-wrap: wrap;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method li > p {
	flex: 0 0 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 16px 16px 54px;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method li > p br {
	display: none;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method button.js-bpost-shipping-options-modal {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #000 !important;
	color: var(--e-global-color-272904f, #f2f0ef) !important;
	font-family: "STKBureauSefif", serif !important;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	cursor: pointer;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method button.js-bpost-shipping-options-modal:hover {
	background: #222 !important;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method #bpost_shipping_info {
	display: block;
	margin-top: 10px;
	color: #000 !important;
	font-family: "STKBureauSefif", serif;
	font-size: 14px;
	line-height: 1.4;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method #bpost_shipping_info[style*="red"] {
	color: #9b1c00 !important;
}

.elementor-widget-woocommerce-checkout-page ul#shipping_method #bpost_shipping_info[style*="green"] {
	color: #1b5e20 !important;
}

/*--------------------------------------------------------------
# Checkout: payment methods
--------------------------------------------------------------*/
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	list-style: none;
}

/* Each method is a card, same language as the shipping methods. */
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods li.wc_payment_method {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	background: transparent;
	list-style: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods li.wc_payment_method:has(input[name="payment_method"]:checked) {
	border-color: #000;
	background: var(--e-global-color-272904f, #f2f0ef);
}

/* Radio: white circle, black dot with a yellow ring when selected. */
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods input[name="payment_method"] {
	appearance: none;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0 0 0 16px;
	padding: 0 !important;
	border: 2px solid #8a8a8a !important;
	border-radius: 50% !important;
	background: #fff !important;
	cursor: pointer;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods input[name="payment_method"]:checked {
	border-color: var(--e-global-color-b274427, #f9d503) !important;
	background: radial-gradient(circle, #000 0, #000 42%, #fff 46%) !important;
	box-shadow: 0 0 0 1px #b99a00;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods input[name="payment_method"]:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* The whole card is the clickable label; the gateway icon sits on the right. */
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods li.wc_payment_method > label {
	display: flex !important;
	flex: 1 1 0;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 16px 16px 16px 0;
	color: #000;
	font-family: "STKBureauSefif", serif !important;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none !important;
	cursor: pointer;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods li.wc_payment_method > label img {
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	max-width: 48px;
	height: 26px !important;
	margin: 0 !important;
	border-radius: 4px;
}

/* Extra content of the selected method (card fields, bank select...). */
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box {
	flex: 0 0 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 16px 16px 54px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #000;
	font-family: "STKBureauSefif", serif;
	font-size: 14px;
	line-height: 1.4;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box::before,
.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box::after {
	display: none;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box p {
	margin: 0;
}

.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 8px 0 0;
	padding: 0 12px !important;
	border: 1px solid #000 !important;
	border-radius: 8px !important;
	background-color: transparent;
	color: #000;
	font-family: "STKBureauSefif", serif;
	font-size: 16px !important;
}

fieldset#wc-stripe-upe-form {
    border: none;
}

/* Small screens: use the full card width for the extra content. */
@media (max-width: 767px) {

	.elementor-widget-woocommerce-checkout-page ul#shipping_method li > p,
	.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods .payment_box {
		padding-left: 12px;
		padding-right: 12px;
	}

	.elementor-widget-woocommerce-checkout-page ul#shipping_method li {
		padding-left: 12px;
	}

	.elementor-widget-woocommerce-checkout-page #payment ul.wc_payment_methods input[name="payment_method"] {
		margin-left: 12px;
	}
}

/* ===== Checkout theming: Ship to a different address, order notes, coupon, bigger labels ===== */

/* Bigger labels on every field */
.elementor-widget-woocommerce-checkout-page #customer_details label { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.elementor-widget-woocommerce-checkout-page .e-coupon-box .e-coupon-anchor-description { font-size: 15px !important; line-height: 1.3; margin-bottom: 6px; }

/* "Ship to a different address?" toggle as its own card */
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address { display: block; float: none; clear: both; box-sizing: border-box; margin: 20px 20px 0 0; padding: 0; font-size: 14px; font-weight: 400; background: #fff; border: 0.8px solid #000; border-radius: 5px; transition: background-color 0.2s ease; }
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address:hover { background: #f9d503; }
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address label { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 20px; font-family: HALTimezoneMono, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.3; cursor: pointer; }
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address input[type="checkbox"] { -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 0 0 22px; width: 22px; min-width: 22px; max-width: 22px; height: 22px; min-height: 22px; max-height: 22px; margin: 0; padding: 0; border: 1.6px solid #000; border-radius: 4px; background: #fff; cursor: pointer; transition: background-color 0.2s ease; }
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address input[type="checkbox"]:checked { background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address input[type="checkbox"]:focus-visible { outline: 2px solid #ff5502; outline-offset: 3px; }

.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address label span { font: inherit; }

@media (max-width: 767px) {
.elementor-widget-woocommerce-checkout-page #customer_details #ship-to-different-address { margin-right: 0; }
}

/* Shipping fields card (opens under the toggle): same look as Billing Details */
.elementor-widget-woocommerce-checkout-page #customer_details .shipping_address { background: #fff; }
.elementor-widget-woocommerce-checkout-page #customer_details .shipping_address::before { content: "Shipping Details"; display: block; margin: 0 0 30px; font-family: HALTimezoneMono, sans-serif; font-size: 14px; font-weight: 400; }

/* Order notes card */
.elementor-widget-woocommerce-checkout-page #customer_details .woocommerce-additional-fields { background: #fff; }
.elementor-widget-woocommerce-checkout-page #customer_details .woocommerce-additional-fields > h3 { display: none; }
.elementor-widget-woocommerce-checkout-page #customer_details #order_comments { min-height: 110px; resize: vertical; }

/* Coupon card */
.elementor-widget-woocommerce-checkout-page .e-checkout__column-end .e-coupon-box { background: #fff; border-radius: 5px; }
.elementor-widget-woocommerce-checkout-page .e-woocommerce-coupon-nudge { margin: 0; font-family: HALTimezoneMono, sans-serif; font-size: 14px; line-height: 1.5; }
.elementor-widget-woocommerce-checkout-page .e-woocommerce-coupon-nudge .e-show-coupon-form { color: #ff5502; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.elementor-widget-woocommerce-checkout-page .e-woocommerce-coupon-nudge .e-show-coupon-form:hover { color: #000; }
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor { margin-top: 16px; }
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor .coupon-container-grid { align-items: stretch; gap: 10px; }
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor input#coupon_code { height: 42px; }
.elementor-widget-woocommerce-checkout-page .e-coupon-anchor .e-apply-coupon { height: 42px; padding: 0 24px; border-radius: 5px; }

/* bpost "Search your address" label: same typography as the other field labels. */
.elementor-widget-woocommerce-checkout-page #customer_details .bpost-address .bpost-address__label { font-family: STKBureauSefif, sans-serif; font-weight: 400; color: #000; }


/* ===== bpost pick-up modal (Choose a Pick-up point) ===== */
#sw__overlay { background: rgba(0, 0, 0, 0.5); }
#sw #sw__container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 30px)); height: min(720px, calc(100dvh - 30px)); min-height: 0; flex-direction: column; margin: 0; padding: 0; overflow: hidden; background: #f2f0ef; border: 0.8px solid #000; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); color: #000; font-family: STKBureauSefif, sans-serif; }

#sw #sw-search { position: relative; flex: 0 0 auto; padding: 16px 64px 0 16px; }
#sw #sw-query-wrapper { display: flex; gap: 8px; align-items: stretch; }
#sw #sw-query { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 0.8px solid #000; border-radius: 5px; background: #fff; color: #000; font-family: inherit; font-size: 15px; box-shadow: none; outline: 0; }
#sw #sw-query:focus { border-color: #ff5502; box-shadow: 0 0 0 3px rgba(255, 85, 2, 0.18); }
#sw #sw-query-btn { flex: 0 0 auto; width: auto; height: 46px; padding: 0 24px; border: 0; border-radius: 5px; background: #000; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease; }
#sw #sw-query-btn:hover { background: #ff5502; }
#sw #sw-query-results { top: 62px; left: 16px; right: 64px; width: auto; z-index: 1002; background: #fff; border: 0.8px solid #000; border-radius: 5px; overflow: hidden; }
#sw #sw-query-results:empty { display: none; }
#sw .sw-query-result { padding: 11px 14px; font-size: 14px; cursor: pointer; border-top: 0.8px solid rgba(0, 0, 0, 0.12); }
#sw .sw-query-result:first-child { border-top: 0; }
#sw .sw-query-result:hover { background: #f9d503; }

#sw .lsl-sw-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 46px; height: 46px; padding: 0; border: 0.8px solid #000; border-radius: 5px; background: #fff; color: #000; font-size: 26px; line-height: 1; cursor: pointer; transition: background-color 0.2s ease; }
#sw .lsl-sw-close:hover { background: #f9d503; }

#sw #sw-display-options { flex: 0 0 auto; gap: 8px; padding: 12px 16px; }
#sw #sw-display-options .sw-display-option { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 38px; margin: 0; border: 0.8px solid #000; border-radius: 5px; background: #fff; color: #000; font-family: HALTimezoneMono, sans-serif; font-size: 13px; font-weight: 400; text-transform: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
#sw #sw-display-options .sw-display-option.selected { background: #000; color: #fff; }

#sw .sw-tab.selected { flex: 1 1 auto; min-height: 0; overflow: auto; }
#sw #sw-map-wrapper.selected { display: flex; flex-direction: column; overflow: hidden; }
#sw .sw-query-results-description { flex: 0 0 auto; height: auto; padding: 4px 16px 12px; font-family: HALTimezoneMono, sans-serif; font-size: 13px; line-height: 1.4; }
#sw #sw-map { position: relative !important; flex: 1 1 auto; width: auto !important; height: auto !important; min-height: 260px; margin: 0 16px 16px; border: 0.8px solid #000; border-radius: 5px; }
#sw #sw-map-error { position: static; }
#sw #sw-map-selected-point { position: absolute; top: auto; right: auto; bottom: 32px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 64px)); min-width: 0; max-width: none; margin: 0; background: transparent; box-shadow: none; z-index: 1000; }

#sw #sw-list-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0 16px 16px; }
#sw .sw-point-info { position: relative; width: auto; box-sizing: border-box; min-height: 0; float: none; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin: 0; padding: 16px; background: #fff; border: 0.8px solid #000; border-radius: 5px; box-shadow: none; }
#sw .sw-point-info > * { margin: 0; }
#sw .sw-point-info-name { grid-column: 1 / -1; font-family: STKBureauSefif, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; text-transform: capitalize; }
#sw .sw-point-info-addr { grid-column: 1 / -1; font-size: 13px; line-height: 1.35; text-transform: capitalize; }
#sw .sw-point-info-distance { grid-column: 1 / -1; font-family: HALTimezoneMono, sans-serif; font-size: 12px; color: #555; }
#sw .sw-point-info-open, #sw .sw-point-info-additional { position: static; min-height: 0; grid-column: 1; align-self: start; margin-top: 6px; font-size: 12px; line-height: 1.5; }
#sw .sw-point-info-day { position: static; display: block; height: auto; margin: 0 0 3px !important; white-space: normal; }
#sw .sw-point-info-day label { display: inline; margin: 0; font-weight: 700; }
#sw .sw-point-info-btn { position: static; grid-column: 2; grid-row: 4; align-self: end; width: auto; height: 40px; margin: 0; padding: 0 22px; border: 0.8px solid #000; border-radius: 5px; background: #09d12e; color: #000; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
#sw .sw-point-info-btn:hover { background: #000; color: #fff; }

@media (max-width: 767px) {
#sw #sw__container { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
#sw #sw-search { padding: 12px 62px 0 12px; }
#sw .lsl-sw-close { top: 12px; right: 12px; }
#sw #sw-display-options { padding: 10px 12px; }
#sw #sw-map { margin: 0 12px 12px; }
#sw #sw-map-selected-point { bottom: 24px; width: calc(100% - 48px); }
#sw #sw-list-points { grid-template-columns: 1fr; padding: 0 12px 12px; }
}

/* bpost: the plugin outputs the selected pick-up point twice; show it once. */
.Bpost-pickup__description + .Bpost-pickup__description { display: none !important; }
