/*
 * WooCommerce cart and checkout as the design draws them (and the accommodation
 * booking-request step, .lbs-bkstep, which reuses the checkout's step 01 look - inc/pages-a.php).
 * The account page's styles are archived with its design: archive/account/assets/woo-account.css.
 * Every value is read from the reference code (D/reference/src/pages/CartPage.tsx, CheckoutPage.tsx; Tailwind v4
 * defaults: text-sm 14/20, text-lg 18/28, text-xl 20/28, text-2xl 24/32, label-xs 10px 500
 * uppercase .18em at line-height 1.5). Breakpoints are the reference's: md 768px, lg 1024px.
 * Markup comes from inc/woo-templates/; WooCommerce's own classic stylesheets are not loaded on
 * these pages (inc/woo.php), so nothing here fights them.
 */

.lbs-cart,
.lbs-cart-empty,
.lbs-co,
.lbs-done,
.lbs-bkstep {
	--lbs-lagoon: var(--wp--preset--color--lagoon, #0e1812);
	--lbs-mid: var(--wp--preset--color--lagoon-mid, #182619);
	--lbs-ivory: var(--wp--preset--color--ivory, #f0e8d6);
	--lbs-mist: var(--wp--preset--color--mist, #8a9b8e);
	--lbs-dim: var(--wp--preset--color--c-5a6b5e, #5a6b5e);
	--lbs-amber: var(--wp--preset--color--amber, #c08b52);
	--lbs-line-6: rgba(240, 232, 214, 0.06);
	--lbs-line-8: rgba(240, 232, 214, 0.08);
	--lbs-line-10: rgba(240, 232, 214, 0.1);
	--lbs-line-12: rgba(240, 232, 214, 0.12);
	--lbs-line-15: rgba(240, 232, 214, 0.15);
	--lbs-line-25: rgba(240, 232, 214, 0.25);
	--lbs-body: var(--wp--preset--font-family--body, "DM Sans", system-ui, sans-serif);
	--lbs-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, serif);
	font-family: var(--lbs-body);
	color: var(--lbs-ivory);
	box-sizing: border-box;
	/* the reference renders all text antialiased (index.css body) */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.lbs-cart *,
.lbs-cart *::before,
.lbs-cart *::after,
.lbs-co *,
.lbs-co *::before,
.lbs-co *::after,
.lbs-bkstep *,
.lbs-done * {
	box-sizing: border-box;
}

.lbs-cart .screen-reader-text,
.lbs-co .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Buttons (reference: label-xs on amber / outlined) ---------- */
.lbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px 24px;
	border: 0;
	border-radius: 0;
	font-family: var(--lbs-body);
	font-size: var(--lbs-t-ui);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: none;
}

/* a.lbs-btn: the section patterns colour their links (elements.link), which must not reach these buttons */
.lbs-btn--amber,
a.lbs-btn.lbs-btn--amber,
a.lbs-btn.lbs-btn--amber:visited,
a.lbs-btn.lbs-btn--amber:hover,
a.lbs-btn.lbs-btn--amber:focus {
	background: var(--lbs-amber);
	color: var(--lbs-lagoon);
}

.lbs-btn--ghost,
a.lbs-btn.lbs-btn--ghost,
a.lbs-btn.lbs-btn--ghost:visited,
a.lbs-btn.lbs-btn--ghost:hover,
a.lbs-btn.lbs-btn--ghost:focus {
	background: transparent;
	border: 1px solid var(--lbs-line-15);
	color: var(--lbs-mist);
	font-size: var(--lbs-t-ui);
	letter-spacing: 0;
}

.lbs-btn--wide {
	padding-left: 40px;
	padding-right: 40px;
}

.lbs-btn--block {
	display: flex;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* ---------- Fields (reference: label 9px .2em #5a6b5e over a px-4 py-3.5 bordered input) ---------- */
.lbs-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.lbs-field__label {
	display: block;
	margin: 0;
	font-family: var(--lbs-body);
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

/* Specific enough to win over the site-wide form-control rule in global styles (tools/forms.css). */
.lbs-field__input,
.woocommerce .lbs-field input.lbs-field__input.input-text {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 14px 16px;
	background: transparent;
	border: 1px solid var(--lbs-line-15);
	border-radius: 0;
	box-shadow: none;
	outline: none;
	font-family: var(--lbs-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--lbs-ivory);
	min-height: 0;
	-webkit-appearance: none;
	appearance: none;
}

.lbs-field__input:focus,
.woocommerce .lbs-field input.lbs-field__input.input-text:focus {
	border-color: var(--lbs-line-25);
}

.woocommerce .lbs-field.woocommerce-invalid input.lbs-field__input.input-text {
	border-color: var(--lbs-amber);
}

.lbs-field__input:-webkit-autofill {
	-webkit-text-fill-color: var(--lbs-ivory);
	-webkit-box-shadow: 0 0 0 1000px var(--lbs-lagoon) inset;
	caret-color: var(--lbs-ivory);
}

/* ---------- Notices ---------- */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
	max-width: 1440px;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
	list-style: none;
	margin: 0 0 24px;
	padding: 14px 16px;
	background: var(--lbs-mid, #182619);
	border: 1px solid var(--lbs-line-15, rgba(240, 232, 214, 0.15));
	color: var(--lbs-ivory, #f0e8d6);
	font-family: var(--lbs-body, "DM Sans", system-ui, sans-serif);
	font-size: 14px;
	line-height: 20px;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
	border-color: var(--wp--preset--color--amber, #c08b52);
}

.woocommerce-cart .woocommerce-error li,
.woocommerce-checkout .woocommerce-error li {
	margin: 0;
}

.woocommerce-cart .woocommerce-message a,
.woocommerce-cart .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a {
	color: var(--wp--preset--color--amber, #c08b52);
	margin-left: 8px;
}

/* ================= CART ================= */
.lbs-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.lbs-cart__main {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

.lbs-cart__head {
	display: none;
}

.lbs-cart__head span {
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

.lbs-cart__list {
	display: flex;
	flex-direction: column;
}

.lbs-cart__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 24px 0;
}

.lbs-cart__row + .lbs-cart__row {
	border-top: 1px solid var(--lbs-line-6);
}

.lbs-cart__product {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.lbs-cart__thumb {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	background: var(--lbs-mid);
}

.lbs-cart__thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.lbs-cart__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	filter: saturate(0.65);
}

.lbs-cart__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.lbs-cart__name,
.lbs-cart .lbs-cart__name a,
.lbs-cart .lbs-cart__name a:visited,
.lbs-cart .lbs-cart__name a:hover {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var(--lbs-ivory);
	text-decoration: none;
}

.lbs-cart__unit {
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

.lbs-cart__meta .variation {
	margin: 0;
	font-size: var(--lbs-t-meta);
	line-height: 1.5;
	color: var(--lbs-dim);
}

.lbs-cart__remove {
	display: block;
	margin-top: 4px;
	line-height: 0;
}

.lbs-cart .lbs-cart__remove a,
.lbs-cart .lbs-cart__remove a:visited,
.lbs-cart .lbs-cart__remove a:hover {
	display: inline-block;
	width: fit-content;
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-mist);
	text-decoration: none;
	transition: opacity 0.2s;
}

.lbs-cart__remove a:hover {
	opacity: 0.8;
}

.lbs-qty {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.lbs-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 1px solid var(--lbs-line-15);
	border-radius: 0;
	color: var(--lbs-ivory);
	font-family: var(--lbs-body);
	font-size: 16px;
	line-height: 1.5;
	cursor: pointer;
}

.lbs-qty__value {
	width: 24px;
	text-align: center;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-ivory);
}

.lbs-cart__price {
	font-size: 14px;
	line-height: 20px;
	text-align: left;
	color: var(--lbs-mist);
}

.lbs-cart__sum {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: left;
	color: var(--lbs-ivory);
}

.lbs-cart__actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	border-top: 1px solid var(--lbs-line-8);
}

.lbs-coupon {
	display: flex;
	flex: 1;
	margin-top: 24px;
	border: 1px solid var(--lbs-line-15);
}

.lbs-coupon__input,
.woocommerce .lbs-coupon input.lbs-coupon__input.input-text {
	flex: 1;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 12px 16px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	font-family: var(--lbs-body);
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-ivory);
	min-height: 0;
}

.lbs-coupon__input::placeholder {
	opacity: 1;
	color: rgba(240, 232, 214, 0.5);
}

.lbs-coupon__btn {
	margin: 0;
	padding: 0 20px;
	background: var(--lbs-mid);
	border: 0;
	border-radius: 0;
	color: var(--lbs-ivory);
	font-family: var(--lbs-body);
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.lbs-cart .coupon-error-notice {
	flex-basis: 100%;
	margin: 8px 0 0;
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

.lbs-cart__side {
	min-width: 0;
}

/* Summary card */
.lbs-summary {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--lbs-mid);
	border: 1px solid var(--lbs-line-8);
}

.lbs-summary__title,
.lbs-cart .lbs-summary__title {
	margin: 0;
	font-family: var(--lbs-display);
	font-size: 20px;
	font-style: italic;
	font-weight: 300;
	line-height: 28px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--lbs-ivory);
}

.lbs-summary__lines {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--lbs-line-10);
}

.lbs-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

.lbs-summary__value {
	color: var(--lbs-ivory);
}

.lbs-summary__free {
	color: var(--lbs-mist);
}

.lbs-summary__row--discount,
.lbs-summary__row--discount .lbs-summary__value {
	color: var(--lbs-amber);
}

.lbs-summary a.lbs-summary__remove,
.lbs-summary a.lbs-summary__remove:visited {
	margin-left: 8px;
	font-size: var(--lbs-t-label);
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-mist);
	text-decoration: none;
}

.lbs-summary__note {
	margin: 0;
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

.lbs-summary__total {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid var(--lbs-line-10);
}

.lbs-summary__total-label {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--lbs-ivory);
}

.lbs-summary__total-value {
	font-family: var(--lbs-display);
	font-size: 24px;
	font-style: italic;
	font-weight: 300;
	line-height: 32px;
	color: var(--lbs-ivory);
}

.lbs-summary__actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lbs-summary__actions .lbs-btn--amber {
	padding-top: 16px;
	padding-bottom: 16px;
}

.lbs-summary__actions .lbs-btn--ghost {
	padding-top: 12px;
	padding-bottom: 12px;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.lbs-cart .blockUI.blockOverlay,
.lbs-co .blockUI.blockOverlay {
	background: var(--wp--preset--color--lagoon, #0e1812) !important;
}

/* Empty cart */
.lbs-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 80px 0;
}

.lbs-cart-empty__title {
	margin: 0;
	font-family: var(--lbs-display);
	font-size: var(--lbs-t-h2);
	font-style: italic;
	font-weight: 300;
	line-height: 36px;
	color: var(--lbs-dim);
}

.lbs-cart-empty__btn {
	padding: 16px 32px;
}

/* ================= CHECKOUT ================= */
.lbs-co {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	margin: 0;
}

.lbs-co > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

.lbs-co__main,
.lbs-co__side {
	min-width: 0;
}

.lbs-step {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* A pickup order's address rows (inc/checkout-rules.php, assets/woo.js). */
.lbs-co .form-row[hidden] { display: none !important; }
.lbs-step[hidden] {
	display: none !important;
}

.lbs-step__title,
.lbs-co .lbs-step__title {
	margin: 0;
	font-family: var(--lbs-display);
	font-size: 24px;
	font-style: italic;
	font-weight: 300;
	line-height: 32px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--lbs-ivory);
}

.lbs-step__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.lbs-step__stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lbs-step__actions {
	display: flex;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 0;
	margin: 0;
	padding: 0;
}

.lbs-step__actions .woocommerce-terms-and-conditions-wrapper {
	flex: 0 0 100%;
	order: -1;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

.lbs-step__actions .woocommerce-terms-and-conditions-wrapper > *:not(:empty) {
	margin: 0 0 16px;
}

.lbs-step__actions .woocommerce-terms-and-conditions-wrapper > *:empty {
	margin: 0;
}

.lbs-step__actions .woocommerce-terms-and-conditions-wrapper a {
	color: var(--lbs-amber);
}

.lbs-step__actions .lbs-btn {
	padding-top: 16px;
	padding-bottom: 16px;
}

/* 02 - delivery method list */
.lbs-ship-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.lbs-ship-block__label {
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-mist);
}

.lbs-ship-methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbs-ship-methods__none {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

.lbs-ship {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--lbs-line-10);
	background: transparent;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.lbs-ship:has(input:checked) {
	border-color: var(--lbs-amber);
	background: rgba(192, 139, 82, 0.05);
}

.lbs-ship input[type="radio"],
.lbs-pay input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.lbs-ship__dot {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1px solid var(--lbs-line-25);
	border-radius: 9999px;
}

.lbs-ship input:checked + .lbs-ship__dot {
	border-color: var(--lbs-amber);
}

.lbs-ship input:checked + .lbs-ship__dot::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--lbs-amber);
}

.lbs-ship input:focus-visible + .lbs-ship__dot {
	outline: 1px solid var(--lbs-amber);
	outline-offset: 2px;
}

.lbs-ship__name {
	flex: 1;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-ivory);
}

.lbs-ship__price {
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

/* 03 - payment */
.lbs-pay {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lbs-pay__methods {
	display: flex;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lbs-pay__methods > li {
	display: contents;
}

.lbs-pay__option {
	display: block;
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--lbs-line-15);
	font-size: var(--lbs-t-ui);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lbs-mist);
	cursor: pointer;
	transition: all 0.2s;
}

.lbs-pay input:checked + .lbs-pay__option {
	border-color: var(--lbs-amber);
	color: var(--lbs-amber);
}

.lbs-pay input:focus-visible + .lbs-pay__option {
	outline: 1px solid var(--lbs-amber);
	outline-offset: 2px;
}

.lbs-pay__box {
	order: 1;
	flex: 0 0 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

.lbs-pay__box p {
	margin: 0;
}

.lbs-pay__box p + p {
	margin-top: 12px;
}

/*
 * Paysera (inc/paysera.php): the redirect sentence, then its banks and card as the design's delivery
 * rows (step 02's .lbs-ship: bordered row, round dot, name, logo on the right), the group names as the
 * step's small caps label, Paysera's consent sentence last. Paysera's own stylesheet is not loaded.
 */
/* Block flow, not flex: Paysera's consent sentence is bare text with a link inside it. */
.lbs-pay__box.payment_method_paysera .lbs-pay__note,
.lbs-pay__box.payment_method_paysera #paysera_country,
.lbs-pay__box.payment_method_paysera .paysera-payments {
	margin-bottom: 16px;
}

.lbs-pay__box.payment_method_paysera > br {
	display: none;
}

.lbs-pay__note {
	margin: 0;
}

.lbs-pay #paysera_country {
	display: block;
	color-scheme: dark;
	padding: 10px 16px;
	border: 1px solid var(--lbs-line-15);
	border-radius: 0;
	background: transparent;
	font: inherit;
	color: var(--lbs-ivory);
}

.lbs-pay .paysera-payments {
	flex-direction: column;
	gap: 24px;
}

.lbs-pay .paysera-payments[style*="block"] {
	display: flex !important; /* Paysera shows the chosen country with an inline display:block */
}

.lbs-pay .payment-group-wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbs-pay .payment-group-title {
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-mist);
}

.lbs-pay .paysera-payment-method {
	margin: 0;
}

.lbs-pay .paysera-payment-method-label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--lbs-line-10);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.lbs-pay .paysera-payment-method-label:has(input:checked) {
	border-color: var(--lbs-amber);
	background: rgba(192, 139, 82, 0.05);
}

.lbs-pay .paysera-payment-method-label > div:first-child {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.lbs-pay .paysera-text {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-ivory);
}

.lbs-pay .paysera-text::before {
	content: "";
	flex-shrink: 0;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 1px solid var(--lbs-line-25);
	border-radius: 9999px;
}

.lbs-pay input:checked + .paysera-text::before {
	border-color: var(--lbs-amber);
	background: radial-gradient(circle, var(--lbs-amber) 0 4px, transparent 4.5px);
}

.lbs-pay input:focus-visible + .paysera-text::before {
	outline: 1px solid var(--lbs-amber);
	outline-offset: 2px;
}

.lbs-pay .paysera-image {
	flex-shrink: 0;
	line-height: 0;
}

.lbs-pay .paysera-image img {
	display: block;
	width: auto;
	max-width: 96px;
	height: 20px; /* the row stays 54px tall, as step 02's delivery rows */
	object-fit: contain;
}

/* The link in Paysera's consent sentence (its payment-initiation rules). */
.lbs-pay__box.payment_method_paysera a {
	color: var(--lbs-ivory);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lbs-co wc-order-attribution-inputs {
	display: none;
}

/* Order card */
.lbs-co #order_review {
	position: sticky;
	top: 96px;
}

.lbs-order {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--lbs-mid);
	border: 1px solid var(--lbs-line-8);
}

.lbs-order__title,
.lbs-co .lbs-order__title {
	margin: 0;
	font-family: var(--lbs-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 300;
	line-height: 28px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--lbs-ivory);
}

.lbs-order__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	line-height: 20px;
}

.lbs-order__name {
	color: var(--lbs-mist);
}

.lbs-order__value {
	color: var(--lbs-ivory);
	white-space: nowrap;
}

.lbs-order__row--discount {
	color: var(--lbs-amber);
}

.lbs-order__total {
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--lbs-line-10);
}

.lbs-order__total-label {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--lbs-ivory);
}

.lbs-order__total-value {
	font-family: var(--lbs-display);
	font-size: 20px;
	font-style: italic;
	font-weight: 300;
	line-height: 28px;
	color: var(--lbs-ivory);
}

/* Step 01: the items and their total (reference); from step 02 the delivery line and the real total */
.lbs-co[data-lbs-current="1"] .lbs-order__row--ship,
.lbs-co[data-lbs-current="1"] .lbs-order__total:has(.lbs-order__total-value--items) .lbs-order__total-value--all,
.lbs-co:not([data-lbs-current="1"]) .lbs-order__total-value--items {
	display: none;
}

/* The step indicator (the checkout's first section pattern), painted by the server (inc/woo.php) and by woo.js */
.lbs-steps {
	overflow-x: auto;
	scrollbar-width: none;
}

.lbs-steps::-webkit-scrollbar {
	display: none;
}

.lbs-steps > * {
	flex-shrink: 0;
}

.lbs-steps div[data-lbs-state]:not(:empty) {
	min-width: 28px !important;
	min-height: 28px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.lbs-steps div[data-lbs-state]:not(:empty) > p {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: 0;
	border-radius: 9999px;
	font-size: var(--lbs-t-label);
	line-height: 16px;
}

.lbs-steps div[data-lbs-state="current"] > p {
	background: var(--wp--preset--color--amber, #c08b52);
	border: 0;
	color: var(--wp--preset--color--lagoon, #0e1812) !important;
}

.lbs-steps div[data-lbs-state="done"] > p {
	background: rgba(192, 139, 82, 0.3);
	border: 0;
	color: var(--wp--preset--color--amber, #c08b52) !important;
}

.lbs-steps div[data-lbs-state="todo"] > p {
	background: transparent;
	border: 1px solid rgba(240, 232, 214, 0.15);
	color: var(--wp--preset--color--c-5a6b5e, #5a6b5e) !important;
}

.lbs-steps p[data-lbs-state="current"] {
	color: var(--wp--preset--color--ivory, #f0e8d6) !important;
}

.lbs-steps p[data-lbs-state="done"] {
	color: var(--wp--preset--color--amber, #c08b52) !important;
}

.lbs-steps p[data-lbs-state="todo"] {
	color: var(--wp--preset--color--c-5a6b5e, #5a6b5e) !important;
}

.lbs-steps div[data-lbs-state="done"]:empty {
	background: var(--wp--preset--color--amber, #c08b52) !important;
}

.lbs-steps div[data-lbs-state="todo"]:empty {
	background: rgba(240, 232, 214, 0.12) !important;
}

/* 04 - order received: the design's confirmation screen, without the step indicator */
body.woocommerce-order-received .dc-section:has(.lbs-steps) {
	display: none;
}

.lbs-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	max-width: 448px;
	min-height: 100vh;
	margin: 0 auto;
	text-align: center;
}

.lbs-done__ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 2px solid var(--lbs-amber);
	border-radius: 9999px;
}

.lbs-done__title,
.lbs-co-done .lbs-done__title,
.lbs-done h1.lbs-done__title {
	margin: 0;
	font-family: var(--lbs-display);
	font-size: var(--lbs-t-h1);
	font-style: italic;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: normal;
	color: var(--lbs-ivory);
}

.lbs-done__text {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: var(--lbs-mist);
}

.lbs-done__box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 20px 0;
	border: 1px solid var(--lbs-line-10);
}

.lbs-done__label {
	font-size: var(--lbs-t-label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--lbs-dim);
}

.lbs-done__number {
	font-family: var(--lbs-display);
	font-size: var(--lbs-t-pill);
	font-style: italic;
	font-weight: 300;
	line-height: 28px;
	color: var(--lbs-amber);
}

.lbs-done__gateway {
	width: 100%;
	font-size: 14px;
	line-height: 20px;
	color: var(--lbs-mist);
}

.lbs-done__gateway:not(:has(*)) {
	display: none;
}

.lbs-done__gateway p,
.lbs-done__gateway ul,
.lbs-done__gateway h2 {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	font-family: var(--lbs-body);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
}

.lbs-done__btn {
	padding: 16px 40px;
}

/* ================= md (768px) ================= */
@media (min-width: 768px) {
	.lbs-cart__head {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 16px;
		padding-bottom: 12px;
		margin-bottom: 24px;
		border-bottom: 1px solid var(--lbs-line-10);
	}

	.lbs-cart__head-product {
		grid-column: span 6;
	}

	.lbs-cart__head-qty,
	.lbs-cart__head-price {
		grid-column: span 2;
		text-align: center;
	}

	.lbs-cart__head-sum {
		grid-column: span 2;
		text-align: right;
	}

	.lbs-cart__row {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.lbs-cart__product {
		grid-column: span 6;
	}

	.lbs-qty {
		grid-column: span 2;
		justify-content: center;
	}

	.lbs-cart__price {
		grid-column: span 2;
		text-align: center;
	}

	.lbs-cart__sum {
		grid-column: span 2;
		text-align: right;
	}

	.lbs-summary {
		padding: 32px;
	}

	.lbs-step__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lbs-field--half {
		width: 50%;
	}

}

/* ================= lg (1024px): the 7 / 5 split ================= */
@media (min-width: 1024px) {
	.lbs-cart,
	.lbs-co {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 64px;
	}

	.lbs-cart__main,
	.lbs-co__main {
		grid-column: span 7;
	}

	.lbs-cart__side,
	.lbs-co__side {
		grid-column: span 5;
	}
}

/* WooCommerce's block-style notice banners (used for classic pages in a block theme), in the design's colours */
.woocommerce-cart .wc-block-components-notice-banner,
.woocommerce-checkout .wc-block-components-notice-banner {
	margin: 0 0 24px;
	padding: 14px 16px;
	gap: 12px;
	background: var(--wp--preset--color--lagoon-mid, #182619);
	border: 1px solid rgba(240, 232, 214, 0.15);
	border-radius: 0;
	color: var(--wp--preset--color--ivory, #f0e8d6);
	font-family: var(--wp--preset--font-family--body, "DM Sans", system-ui, sans-serif);
	font-size: 14px;
	line-height: 20px;
}

.woocommerce-cart .wc-block-components-notice-banner.is-error,
.woocommerce-checkout .wc-block-components-notice-banner.is-error {
	border-color: var(--wp--preset--color--amber, #c08b52);
}

.woocommerce-cart .wc-block-components-notice-banner > svg,
.woocommerce-checkout .wc-block-components-notice-banner > svg {
	background: transparent;
	fill: var(--wp--preset--color--amber, #c08b52);
}

.woocommerce-cart .wc-block-components-notice-banner a,
.woocommerce-checkout .wc-block-components-notice-banner a {
	color: var(--wp--preset--color--amber, #c08b52);
}

/* Empty wrappers WooCommerce prints into the forms (e.g. the privacy text when it is switched off) take no gap */
.lbs-co .woocommerce-privacy-policy-text:empty {
	display: none;
}

/* The summary and order cards are the grid items themselves (their WooCommerce wrappers draw no box),
   so the card, not an empty wrapper of the same size, is what sits in the 5-column slot */
.lbs-cart__side,
.lbs-co__side,
.lbs-co #order_review {
	display: contents;
}

.lbs-cart__side > .lbs-summary,
.lbs-co .lbs-order {
	align-self: start;
	min-width: 0;
}

.lbs-co .lbs-order {
	position: sticky;
	top: 96px;
}

@media (min-width: 1024px) {
	.lbs-cart__side > .lbs-summary,
	.lbs-co .lbs-order {
		grid-column: span 5;
	}
}
