/* ==========================================================================
   Odisal Shop — basket & checkout style (classic WooCommerce pages)

   Loaded only on the basket, checkout and order-received pages when "Style the
   pages" is on (WooCommerce → Settings → Advanced → Basket & checkout style). Everything is
   scoped to body.oshop-checkout so it can't leak into the rest of the site.
   Colours come from --tc-* variables set from those settings.
   ========================================================================== */

body.oshop-checkout {
	--tc-accent: #c8ccd2;
	--tc-accent-bright: #dfe2e6;
	--tc-text: #f5f6f7;
	--tc-muted: #9aa0a6;
	--tc-field: rgba(0, 0, 0, 0.28);
	--tc-panel: transparent;
	--tc-line: rgba(200, 204, 210, 0.28);
	--tc-ink: #17191c;
	--tc-radius: 6px;
	--tc-error: #e0756f;
}

/* ---------- two-column layout: details left, order summary right ---------- */

@media (min-width: 900px) {

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		align-items: start;
		column-gap: 56px;
	}

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout > * {
		grid-column: 1;
	}

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout #order_review_heading {
		grid-column: 2;
	}

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout #order_review {
		grid-column: 2;
		grid-row: 3;
	}

	/* Express buttons (Apple Pay, Google Pay, Amazon Pay…) sit across the top. */
	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout .oshop-express {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout #customer_details {
		grid-row: 2 / span 2;
	}

	body.oshop-checkout:not(.oshop-checkout--one) form.woocommerce-checkout #order_review_heading {
		grid-row: 2;
	}
}

.oshop-checkout .oshop-express {
	max-width: 620px;
	margin: 0 auto 30px;
}

.oshop-checkout .oshop-express:empty,
.oshop-checkout .oshop-express[hidden] {
	display: none;
}

/* Nothing arrived in time: take no space, but stay in the page so buttons
   that turn up late can still be seen. */
.oshop-checkout .oshop-express.is-empty {
	margin: 0;
}

/* Space kept for the wallet buttons while their scripts load: silent at first,
   and only explained if the wait drags on. */
.oshop-checkout .oshop-express.is-waiting {
	display: grid;
	place-items: center;
	min-height: 52px;
	border: 1px dashed transparent;
	border-radius: var(--tc-radius);
}

.oshop-checkout .oshop-express.is-waiting.is-slow {
	border-color: var(--tc-line);
}

.oshop-checkout .oshop-express__waiting {
	margin: 0;
	color: var(--tc-muted);
	font-size: calc(12.5px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.1em);
	text-transform: var(--oshop-case, uppercase);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.oshop-checkout .oshop-express.is-slow .oshop-express__waiting {
	opacity: 0.8;
}

.oshop-checkout .oshop-express:not(.is-waiting) .oshop-express__waiting {
	display: none;
}

body.oshop-checkout form.woocommerce-checkout::before,
body.oshop-checkout form.woocommerce-checkout::after {
	display: none;
}

body.oshop-checkout .woocommerce .col2-set,
body.oshop-checkout .woocommerce .col2-set .col-1,
body.oshop-checkout .woocommerce .col2-set .col-2,
body.oshop-checkout .woocommerce #order_review,
body.oshop-checkout .woocommerce #order_review_heading {
	float: none;
	width: auto;
	max-width: none;
}

body.oshop-checkout .woocommerce .col2-set .col-2 {
	margin-top: 18px;
}

/* ---------- headings ---------- */

body.oshop-checkout .woocommerce-checkout h3,
body.oshop-checkout .woocommerce-order h2 {
	margin: 0 0 22px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--tc-line);
	color: var(--tc-text);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: var(--oshop-track, 0.18em);
	line-height: 1.3;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce-checkout h3#ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

/* ---------- field layout ----------
   WooCommerce still lays these out with floats, which fall apart if a plugin
   or theme reorders the fields (e.g. moving email to the top). A grid doesn't
   care what order they come in. */

body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper,
body.oshop-checkout .woocommerce .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-auto-flow: row dense;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 18px;
}

body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row,
body.oshop-checkout .woocommerce .woocommerce-additional-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	float: none !important;
	width: auto !important;
	margin-inline-end: 0 !important;
	margin-inline-start: 0 !important;
	padding: 0 !important;
}

body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-first,
body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-last,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-first,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-last {
	grid-column: span 1;
}

@media (max-width: 600px) {

	body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
	body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper,
	body.oshop-checkout .woocommerce .woocommerce-additional-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-first,
	body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-last,
	body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-last {
		grid-column: 1 / -1;
	}
}

/* ---------- fields ---------- */

body.oshop-checkout .woocommerce form .form-row {
	margin: 0 0 18px;
	padding: 0;
}

body.oshop-checkout .woocommerce form .form-row label,
body.oshop-checkout .woocommerce form .form-row legend {
	display: block;
	margin: 0 0 7px;
	color: var(--tc-muted);
	font-size: calc(12px + var(--oshop-bump, 0px));
	font-weight: 400;
	letter-spacing: var(--oshop-track, 0.14em);
	line-height: 1.4;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce form .form-row label.checkbox,
body.oshop-checkout .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--tc-text);
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.oshop-checkout .woocommerce form .form-row .required {
	border: 0;
	color: var(--tc-accent);
	text-decoration: none;
}

body.oshop-checkout .woocommerce form .form-row .input-text,
body.oshop-checkout .woocommerce form .form-row select,
body.oshop-checkout .woocommerce form .form-row textarea,
body.oshop-checkout .woocommerce .select2-container--default .select2-selection--single,
body.oshop-checkout .woocommerce form.checkout_coupon .input-text {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field);
	box-shadow: none;
	color: var(--tc-field-text, var(--tc-text));
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.oshop-checkout .woocommerce form .form-row textarea {
	min-height: 110px;
}

body.oshop-checkout .woocommerce form .form-row .input-text::placeholder,
body.oshop-checkout .woocommerce form .form-row textarea::placeholder {
	color: var(--tc-muted);
	opacity: 0.6;
}

body.oshop-checkout .woocommerce form .form-row .input-text:focus,
body.oshop-checkout .woocommerce form .form-row select:focus,
body.oshop-checkout .woocommerce form .form-row textarea:focus,
body.oshop-checkout .woocommerce .select2-container--open .select2-selection--single,
body.oshop-checkout .woocommerce .select2-container--focus .select2-selection--single {
	border-color: var(--tc-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-accent) 22%, transparent);
}

body.oshop-checkout .woocommerce form .form-row.woocommerce-invalid .input-text,
body.oshop-checkout .woocommerce form .form-row.woocommerce-invalid select,
body.oshop-checkout .woocommerce form .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--tc-error);
}

body.oshop-checkout .woocommerce form .form-row.woocommerce-invalid label {
	color: var(--tc-error);
}

/* Browser autofill keeps the dark field instead of turning yellow/white. */
body.oshop-checkout .woocommerce form .form-row .input-text:-webkit-autofill {
	-webkit-text-fill-color: var(--tc-text);
	box-shadow: 0 0 0 1000px var(--tc-ink) inset;
	caret-color: var(--tc-text);
}

body.oshop-checkout .woocommerce input[type="checkbox"],
body.oshop-checkout .woocommerce input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	accent-color: var(--tc-accent);
}

/* Country / county dropdowns (select2) */
body.oshop-checkout .woocommerce .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: 48px;
}

body.oshop-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	color: var(--tc-field-text, var(--tc-text));
	line-height: 1.4;
}

body.oshop-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 1px;
	inset-inline-end: 8px;
	height: 46px;
}

body.oshop-checkout .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-top-color: var(--tc-accent);
}

body.oshop-checkout .select2-dropdown {
	border-color: var(--tc-line);
	background: var(--tc-field, var(--tc-ink));
	color: var(--tc-field-text, var(--tc-text));
}

/* A see-through field colour would leave the dropdown unreadable over the page. */
body.oshop-checkout.oshop-checkout--fields .select2-dropdown {
	background: var(--tc-field);
}

body.oshop-checkout .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-field-text, var(--tc-text));
}

body.oshop-checkout .select2-results__option--highlighted[aria-selected],
body.oshop-checkout .select2-results__option--highlighted[data-selected],
body.oshop-checkout .select2-container--default .select2-results__option--highlighted {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

body.oshop-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.oshop-checkout .select2-container--default .select2-results__option--selected {
	background: color-mix(in srgb, var(--tc-accent) 20%, transparent);
	color: var(--tc-field-text, var(--tc-text));
}

/* ---------- order summary panel ---------- */

body.oshop-checkout .woocommerce-checkout #order_review_heading {
	margin: 0;
	padding: 28px 30px 0;
	border: 1px solid var(--tc-accent);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	background: var(--tc-panel);
}

body.oshop-checkout .woocommerce-checkout #order_review {
	padding: 6px 30px 30px;
	border: 1px solid var(--tc-accent);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	background: var(--tc-panel);
}

body.oshop-checkout .woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 24px;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	color: var(--tc-text);
}

body.oshop-checkout .woocommerce table.shop_table th,
body.oshop-checkout .woocommerce table.shop_table td {
	padding: 14px 0;
	border: 0;
	border-top: 1px solid var(--tc-line);
	background: transparent;
	color: inherit;
	font-weight: 300;
	line-height: 1.5;
	vertical-align: top;
}

body.oshop-checkout .woocommerce table.shop_table thead th {
	border-top: 0;
	color: var(--tc-muted);
	font-size: calc(12px + var(--oshop-bump, 0px));
	font-weight: 400;
	letter-spacing: var(--oshop-track, 0.14em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce table.shop_table tfoot th {
	color: var(--tc-muted);
	font-weight: 400;
	text-align: start;
}

body.oshop-checkout .woocommerce table.shop_table td.product-total,
body.oshop-checkout .woocommerce table.shop_table tfoot td,
body.oshop-checkout .woocommerce table.shop_table thead th.product-total {
	text-align: end;
}

body.oshop-checkout .woocommerce table.shop_table .product-quantity {
	color: var(--tc-muted);
	font-weight: 300;
}

body.oshop-checkout .woocommerce table.shop_table .order-total th,
body.oshop-checkout .woocommerce table.shop_table .order-total td {
	color: var(--tc-text);
	font-size: 16px;
	letter-spacing: 0.06em;
}

body.oshop-checkout .woocommerce table.shop_table .order-total .amount {
	font-size: 24px;
	font-weight: 200;
	letter-spacing: 0.04em;
}

body.oshop-checkout .woocommerce ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: end;
}

body.oshop-checkout .woocommerce ul#shipping_method li {
	margin: 0 0 6px;
	padding: 0;
}

/* ---------- changing the order from the checkout ---------- */

.oshop-checkout .oshop-coq {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	white-space: nowrap;
}

.oshop-checkout .oshop-coq.is-busy {
	opacity: 0.45;
	pointer-events: none;
}

.oshop-checkout .oshop-coq button,
.oshop-checkout .oshop-coq button:hover,
.oshop-checkout .oshop-coq button:focus {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--tc-line);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--tc-accent-bright);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.oshop-checkout .oshop-coq button:hover:not([disabled]),
.oshop-checkout .oshop-coq button:focus-visible {
	border-color: var(--tc-accent);
	background: var(--tc-accent);
	color: var(--tc-ink);
}

.oshop-checkout .oshop-coq button[disabled] {
	opacity: 0.35;
	cursor: default;
}

.oshop-checkout .oshop-coq__n {
	min-width: 26px;
	color: var(--tc-text);
	font-size: 14px;
	text-align: center;
}

.oshop-checkout .oshop-coq__remove,
.oshop-checkout .oshop-coq__remove:hover,
.oshop-checkout .oshop-coq__remove:focus {
	margin-inline-start: 6px;
	border-color: transparent;
	color: var(--tc-muted);
}

.oshop-checkout .oshop-coq__remove:hover,
.oshop-checkout .oshop-coq__remove:focus-visible {
	border-color: var(--tc-error);
	background: transparent;
	color: var(--tc-error);
}

/* ---------- payment ---------- */

body.oshop-checkout .woocommerce-checkout #payment {
	border-radius: 0;
	background: transparent;
	color: var(--tc-text);
}

body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods {
	margin: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--tc-line);
}

body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	padding: 12px 0;
	list-style: none;
	line-height: 1.5;
}

body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods li > label {
	color: var(--tc-text);
	font-size: 15px;
	cursor: pointer;
}

body.oshop-checkout .woocommerce-checkout #payment div.payment_box {
	margin: 12px 0 4px;
	padding: 14px 16px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field);
	color: var(--tc-muted);
	font-size: 14px;
}

body.oshop-checkout .woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

body.oshop-checkout .woocommerce-checkout #payment div.form-row {
	margin: 0;
	padding: 20px 0 0;
}

/* Terms, privacy text and the note above the tick box */
body.oshop-checkout .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.oshop-checkout .woocommerce-checkout .woocommerce-privacy-policy-text,
body.oshop-checkout .woocommerce-checkout .oshop-checkout-note {
	color: var(--tc-muted);
	font-size: 13.5px;
	line-height: 1.6;
}

body.oshop-checkout .woocommerce-checkout .woocommerce-privacy-policy-text p {
	margin: 0 0 12px;
}

body.oshop-checkout .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
body.oshop-checkout .woocommerce-checkout .oshop-checkout-note a,
body.oshop-checkout .woocommerce a.showcoupon,
body.oshop-checkout .woocommerce .woocommerce-info a {
	color: var(--tc-accent-bright);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.oshop-checkout .woocommerce-checkout .woocommerce-terms-and-conditions {
	color: var(--tc-field-text, var(--tc-muted));
	max-height: 220px;
	margin: 0 0 12px;
	padding: 14px 16px;
	overflow: auto;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field);
	box-shadow: none;
}

/* Place order */
body.oshop-checkout .woocommerce #payment #place_order {
	display: block;
	float: none;
	width: 100%;
	margin: 18px 0 0;
	padding: 17px 24px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-button-radius, 0);
	background: var(--tc-accent);
	box-shadow: none;
	color: var(--tc-ink);
	font-family: inherit;
	font-size: calc(14px + var(--oshop-bump, 0px));
	font-weight: 500;
	letter-spacing: var(--oshop-track, 0.18em);
	line-height: 1;
	text-transform: var(--oshop-case, uppercase);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

body.oshop-checkout .woocommerce #payment #place_order:hover,
body.oshop-checkout .woocommerce #payment #place_order:focus-visible {
	background: transparent;
	color: var(--tc-accent-bright);
}

body.oshop-checkout.oshop-checkout--outline .woocommerce #payment #place_order {
	background: transparent;
	color: var(--tc-accent-bright);
}

body.oshop-checkout.oshop-checkout--outline .woocommerce #payment #place_order:hover,
body.oshop-checkout.oshop-checkout--outline .woocommerce #payment #place_order:focus-visible {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* ---------- notices, coupon, login ---------- */

body.oshop-checkout .woocommerce .woocommerce-info,
body.oshop-checkout .woocommerce .woocommerce-message,
body.oshop-checkout .woocommerce .woocommerce-error {
	margin: 0 0 24px;
	padding-block: 14px;
	padding-inline: 48px 18px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-muted);
	font-size: 14.5px;
}

body.oshop-checkout .woocommerce .woocommerce-info::before,
body.oshop-checkout .woocommerce .woocommerce-message::before {
	top: 14px;
	inset-inline-start: 18px;
	color: var(--tc-accent);
}

body.oshop-checkout .woocommerce .woocommerce-error {
	border-color: color-mix(in srgb, var(--tc-error) 60%, transparent);
	background: color-mix(in srgb, var(--tc-error) 10%, transparent);
	color: var(--tc-text);
}

body.oshop-checkout .woocommerce .woocommerce-error::before {
	top: 14px;
	inset-inline-start: 18px;
	color: var(--tc-error);
}

/* Newer WooCommerce "notice banners" (used with block themes and some setups) */
body.oshop-checkout .wc-block-components-notice-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-muted);
	font-size: 14.5px;
}

body.oshop-checkout .wc-block-components-notice-banner > svg {
	flex: none;
	padding: 2px;
	border-radius: 50%;
	background: var(--tc-accent);
	fill: var(--tc-ink);
}

body.oshop-checkout .wc-block-components-notice-banner a,
body.oshop-checkout .wc-block-components-notice-banner .button {
	color: var(--tc-accent-bright);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.oshop-checkout .wc-block-components-notice-banner.is-error {
	border-color: color-mix(in srgb, var(--tc-error) 60%, transparent);
	background: color-mix(in srgb, var(--tc-error) 10%, transparent);
	color: var(--tc-text);
}

body.oshop-checkout .wc-block-components-notice-banner.is-error > svg {
	background: var(--tc-error);
}

body.oshop-checkout .wc-block-components-notice-banner.is-success > svg {
	background: var(--tc-accent);
}

body.oshop-checkout .woocommerce form.checkout_coupon,
body.oshop-checkout .woocommerce form.woocommerce-form-login {
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	color: var(--tc-muted);
}

body.oshop-checkout .woocommerce form.checkout_coupon .button,
body.oshop-checkout .woocommerce form.woocommerce-form-login .button {
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--tc-accent);
	border-radius: 0;
	background: transparent;
	color: var(--tc-accent-bright);
	font-family: inherit;
	font-size: calc(13px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.16em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce form.checkout_coupon .button:hover,
body.oshop-checkout .woocommerce form.woocommerce-form-login .button:hover {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* Loading overlay while totals update */
body.oshop-checkout .woocommerce .blockUI.blockOverlay {
	background: var(--tc-ink) !important;
}

/* ---------- order received (thank-you) page ---------- */

body.oshop-checkout .woocommerce-order {
	color: var(--tc-text);
}

body.oshop-checkout .woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 28px;
	color: var(--tc-accent-bright);
	font-size: 18px;
	letter-spacing: 0.06em;
}

body.oshop-checkout .woocommerce-order ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 36px;
	padding: 0;
	border: 1px solid var(--tc-line);
	border-radius: 14px;
	list-style: none;
}

body.oshop-checkout .woocommerce-order ul.order_details li {
	flex: 1 1 160px;
	margin: 0;
	padding: 18px 22px;
	border: 0;
	border-inline-end: 1px solid var(--tc-line);
	color: var(--tc-muted);
	font-size: calc(11.5px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.14em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce-order ul.order_details li:last-child {
	border-inline-end: 0;
}

body.oshop-checkout .woocommerce-order ul.order_details li strong {
	display: block;
	margin-top: 6px;
	color: var(--tc-text);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.oshop-checkout .woocommerce-order .woocommerce-customer-details address {
	padding: 18px 22px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	color: var(--tc-muted);
	font-style: normal;
}

/* ==========================================================================
   Basket page (classic)
   ========================================================================== */

body.oshop-checkout .woocommerce table.shop_table.cart td {
	vertical-align: middle;
}

body.oshop-checkout .woocommerce table.shop_table.cart .product-thumbnail {
	width: 90px;
}

body.oshop-checkout .woocommerce table.shop_table.cart .product-thumbnail img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: var(--tc-radius);
	background: color-mix(in srgb, var(--tc-text) 7%, transparent);
}

body.oshop-checkout .woocommerce table.shop_table.cart .product-name a {
	color: var(--tc-text);
	font-weight: 400;
	letter-spacing: 0.06em;
	text-decoration: none;
}

body.oshop-checkout .woocommerce table.shop_table.cart .product-name a:hover {
	color: var(--tc-accent-bright);
}

body.oshop-checkout .woocommerce table.shop_table.cart .product-price,
body.oshop-checkout .woocommerce table.shop_table.cart .product-subtotal {
	white-space: nowrap;
}

body.oshop-checkout .woocommerce table.shop_table.cart a.remove {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--tc-line);
	border-radius: 50%;
	background: transparent;
	color: var(--tc-muted) !important;
	font-size: 17px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none;
}

body.oshop-checkout .woocommerce table.shop_table.cart a.remove:hover {
	border-color: var(--tc-accent);
	background: var(--tc-accent);
	color: var(--tc-ink) !important;
}

body.oshop-checkout .woocommerce .quantity .qty {
	width: 74px;
	min-height: 44px;
	padding: 8px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field);
	color: var(--tc-text);
	font: inherit;
	text-align: center;
}

body.oshop-checkout .woocommerce .quantity .qty:focus {
	border-color: var(--tc-accent);
	outline: none;
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions {
	padding-top: 22px;
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	float: none;
	width: auto;
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .coupon .button {
	flex: 0 0 auto;
	float: none;
	width: auto;
	white-space: nowrap;
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .coupon .input-text {
	width: 200px;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field);
	color: var(--tc-text);
	font: inherit;
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .button,
body.oshop-checkout .woocommerce .return-to-shop .button {
	min-height: 44px;
	padding: 12px 22px;
	border: 1px solid var(--tc-accent);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tc-accent-bright);
	font-family: inherit;
	font-size: calc(12.5px + var(--oshop-bump, 0px));
	font-weight: 400;
	letter-spacing: var(--oshop-track, 0.16em);
	line-height: 1;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .button:hover:not(:disabled),
body.oshop-checkout .woocommerce .return-to-shop .button:hover {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

body.oshop-checkout .woocommerce table.shop_table.cart td.actions .button:disabled {
	opacity: 0.4;
}

/* Basket totals panel */
body.oshop-checkout .woocommerce .cart-collaterals .cart_totals {
	padding: 28px 30px 30px;
	border: 1px solid var(--tc-accent);
	border-radius: 14px;
	background: var(--tc-panel);
}

body.oshop-checkout .woocommerce .cart_totals h2 {
	margin: 0 0 8px;
	color: var(--tc-text);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: var(--oshop-track, 0.18em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce .cart_totals table.shop_table th {
	width: 40%;
	color: var(--tc-muted);
	font-weight: 400;
}

body.oshop-checkout .woocommerce .cart_totals table.shop_table td {
	text-align: end;
}

body.oshop-checkout .woocommerce .cart_totals .order-total .amount {
	font-size: 24px;
	font-weight: 200;
}

body.oshop-checkout .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

body.oshop-checkout .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	margin: 0;
	padding: 17px 24px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-button-radius, 0);
	background: var(--tc-accent);
	box-shadow: none;
	color: var(--tc-ink);
	font-family: inherit;
	font-size: calc(14px + var(--oshop-bump, 0px));
	font-weight: 500;
	letter-spacing: var(--oshop-track, 0.18em);
	line-height: 1;
	text-align: center;
	text-transform: var(--oshop-case, uppercase);
	transition: background-color 0.18s ease, color 0.18s ease;
}

body.oshop-checkout .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
body.oshop-checkout.oshop-checkout--outline .woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: transparent;
	color: var(--tc-accent-bright);
}

body.oshop-checkout.oshop-checkout--outline .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* Phone view of the basket table (WooCommerce stacks each row) */
body.oshop-checkout .woocommerce table.shop_table_responsive tr td::before {
	color: var(--tc-muted);
	font-weight: 400;
}

@media (max-width: 768px) {

	body.oshop-checkout .woocommerce table.shop_table.cart .product-thumbnail {
		width: auto;
	}

	body.oshop-checkout .woocommerce table.shop_table.cart td.actions .coupon .input-text {
		flex: 1 1 140px;
		width: auto;
		float: none;
	}

	body.oshop-checkout .woocommerce table.shop_table.cart td.actions > .button {
		width: 100%;
		margin-top: 10px;
	}
}

/* ==========================================================================
   Clearing theme panels

   Many themes and template kits paint the checkout/basket columns white. On a
   dark page that hides white text, so the skin clears them. !important is used
   deliberately here: theme kits usually set these with !important too.
   ========================================================================== */

body.oshop-checkout .woocommerce form.checkout,
body.oshop-checkout .woocommerce #customer_details,
body.oshop-checkout .woocommerce #customer_details .col-1,
body.oshop-checkout .woocommerce #customer_details .col-2,
body.oshop-checkout .woocommerce .woocommerce-billing-fields,
body.oshop-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields,
body.oshop-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper,
body.oshop-checkout .woocommerce .woocommerce-additional-fields,
body.oshop-checkout .woocommerce .woocommerce-additional-fields__field-wrapper,
body.oshop-checkout .woocommerce .woocommerce-cart-form,
body.oshop-checkout .woocommerce table.shop_table,
body.oshop-checkout .woocommerce table.shop_table tbody,
body.oshop-checkout .woocommerce table.shop_table tr,
body.oshop-checkout .woocommerce-checkout #payment,
body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods,
body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods li,
body.oshop-checkout .woocommerce-checkout #payment div.form-row {
	background: transparent !important;
	box-shadow: none !important;
}

/* The two framed panels keep their own background and gold frame. */
body.oshop-checkout .woocommerce-checkout #order_review_heading,
body.oshop-checkout .woocommerce-checkout #order_review,
body.oshop-checkout .woocommerce .cart-collaterals .cart_totals {
	background: var(--tc-panel) !important;
	border-color: var(--tc-accent) !important;
	box-shadow: none !important;
}

body.oshop-checkout .woocommerce-checkout #payment div.payment_box {
	background: var(--tc-field) !important;
	color: var(--tc-muted) !important;
}

/* Text that a theme may have set dark for a white panel. */
body.oshop-checkout .woocommerce #customer_details,
body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods li label,
body.oshop-checkout .woocommerce table.shop_table,
body.oshop-checkout .woocommerce table.shop_table td,
body.oshop-checkout .woocommerce table.shop_table th {
	color: var(--tc-text);
}

/* Payment method logos sometimes sit on white — keep them readable. */
body.oshop-checkout .woocommerce-checkout #payment ul.payment_methods li img {
	max-height: 26px;
	width: auto;
	vertical-align: middle;
}

/* ==========================================================================
   "Force field colours"

   Some themes paint every input white with !important. On a dark page that
   leaves white text on white. With the setting on, the fields (and the payment
   boxes drawn by Stripe and friends) use the chosen colours instead.
   ========================================================================== */

body.oshop-checkout--fields .woocommerce form .form-row .input-text,
body.oshop-checkout--fields .woocommerce form .form-row select,
body.oshop-checkout--fields .woocommerce form .form-row textarea,
body.oshop-checkout--fields .woocommerce form.checkout_coupon .input-text,
body.oshop-checkout--fields .woocommerce .quantity .qty,
body.oshop-checkout--fields .woocommerce table.shop_table.cart td.actions .coupon .input-text,
body.oshop-checkout--fields .woocommerce .select2-container--default .select2-selection--single,
body.oshop-checkout--fields .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	background-color: var(--tc-field) !important;
	color: var(--tc-field-text, var(--tc-text)) !important;
}

body.oshop-checkout--fields .woocommerce form .form-row .input-text::placeholder,
body.oshop-checkout--fields .woocommerce .quantity .qty::placeholder,
body.oshop-checkout--fields .woocommerce form .form-row textarea::placeholder {
	color: var(--tc-field-text, var(--tc-text)) !important;
	opacity: 0.55;
}

/* Number spinner arrows in the basket quantity box */
body.oshop-checkout--fields .woocommerce .quantity .qty {
	accent-color: var(--tc-accent);
}

/* Payment boxes: the gateway (Stripe, Klarna…) often draws its own white panel.
   Anything written directly in there follows the field colours, so it stays
   readable whichever way round the colours are. */
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box p,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box label,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box span,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box li,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box .wc-stripe-elements-field,
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box .wc-stripe-upe-element {
	color: var(--tc-field-text, var(--tc-text)) !important;
}

body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box a {
	color: var(--tc-accent-bright) !important;
}

/* Catch-all: anything typed into any field on these pages, whoever added it. */
body.oshop-checkout--fields input[type="text"],
body.oshop-checkout--fields input[type="email"],
body.oshop-checkout--fields input[type="tel"],
body.oshop-checkout--fields input[type="number"],
body.oshop-checkout--fields input[type="password"],
body.oshop-checkout--fields input[type="search"],
body.oshop-checkout--fields textarea,
body.oshop-checkout--fields select {
	background-color: var(--tc-field) !important;
	color: var(--tc-field-text, var(--tc-text)) !important;
}

/* Payment gateways (Klarna, Stripe and friends) draw their own panels with
   their own markup, so everything inside one follows the field colours. */
body.oshop-checkout--fields .woocommerce-checkout #payment div.payment_box *:not(a):not(svg):not(path):not(img) {
	color: var(--tc-field-text, var(--tc-text)) !important;
}

/* ==========================================================================
   My account (login, register, order history, addresses)
   ========================================================================== */

body.oshop-checkout.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-navigation,
body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
}

/* Placed explicitly: other things (notices, theme wrappers) share this grid. */
body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-column: 1;
	grid-row: 1;
}

body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-content {
	grid-column: 2;
	grid-row: 1;
}

@media (max-width: 768px) {

	body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-navigation,
	body.oshop-checkout.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 1;
		grid-row: auto;
	}
}

body.oshop-checkout .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.oshop-checkout .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid var(--tc-line);
}

body.oshop-checkout .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 0;
	color: var(--tc-muted);
	font-size: calc(12.5px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.14em);
	text-decoration: none;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout .woocommerce-MyAccount-navigation li a:hover,
body.oshop-checkout .woocommerce-MyAccount-navigation li.is-active a {
	color: var(--tc-accent-bright);
}

body.oshop-checkout .woocommerce-MyAccount-content p,
body.oshop-checkout .woocommerce-MyAccount-content {
	color: var(--tc-text);
}

body.oshop-checkout .woocommerce-MyAccount-content a:not(.button) {
	color: var(--tc-accent-bright);
}

/* Login and register forms, and the account detail forms */
body.oshop-checkout.woocommerce-account form.woocommerce-form-login,
body.oshop-checkout.woocommerce-account form.woocommerce-form-register,
body.oshop-checkout.woocommerce-account form.woocommerce-EditAccountForm,
body.oshop-checkout.woocommerce-account form.woocommerce-address-fields {
	max-width: 520px;
	margin: 0;
	padding: 26px 28px 28px;
	border: 1px solid var(--tc-line);
	border-radius: 14px;
	color: var(--tc-muted);
}

body.oshop-checkout.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: var(--tc-text);
}

body.oshop-checkout.woocommerce-account .woocommerce-form-login__rememberme {
	margin: 0 0 14px;
}

body.oshop-checkout.woocommerce-account .button,
body.oshop-checkout.woocommerce-account button.button,
body.oshop-checkout.woocommerce-account input.button {
	min-height: 48px;
	padding: 14px 28px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-button-radius, 0);
	background: var(--tc-accent);
	box-shadow: none;
	color: var(--tc-ink);
	font-family: inherit;
	font-size: calc(13px + var(--oshop-bump, 0px));
	font-weight: 500;
	letter-spacing: var(--oshop-track, 0.16em);
	line-height: 1;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-checkout.woocommerce-account .button:hover,
body.oshop-checkout.woocommerce-account button.button:hover,
body.oshop-checkout.woocommerce-account input.button:hover {
	background: transparent;
	color: var(--tc-accent-bright);
}

body.oshop-checkout.woocommerce-account .woocommerce-LostPassword a {
	color: var(--tc-muted);
	font-size: 13px;
}

body.oshop-checkout.woocommerce-account address {
	padding: 18px 22px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	color: var(--tc-muted);
	font-style: normal;
}

@media (max-width: 768px) {

	body.oshop-checkout.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* ---------- phones ---------- */

@media (max-width: 899px) {

	body.oshop-checkout .woocommerce-checkout #order_review_heading {
		margin-top: 30px;
		padding: 22px 20px 0;
	}

	body.oshop-checkout .woocommerce-checkout #order_review {
		padding: 4px 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {

	body.oshop-checkout .woocommerce * {
		transition: none !important;
	}
}

/* Some themes (Hello Elementor) pull "wide" blocks 80px outside the page on both
   sides. For the basket and checkout that pushes them off the screen on phones
   and out of line with the page title: keep them inside the page. */
body.oshop-checkout .wp-block-woocommerce-cart.alignwide,
body.oshop-checkout .wp-block-woocommerce-checkout.alignwide {
	margin-inline: 0;
	max-width: 100%;
}
