/**
 * Velotary â€“ WooCommerce checkout (classic checkout form).
 * Markup/hooks in public/public.php: hero, section titles, payment moved to the
 * form column, order summary thumbnails. Values follow the Lovable design.
 * The variables and hero styles are shared with the cart page (body.btelmt-cart-page,
 * see cart-block.css).
 * Selectors are prefixed with body.btelmt-checkout-page (and #order_review /
 * #payment where WooCommerce uses ids) to outrank woocommerce.css.
 */

body.btelmt-checkout-page,
body.btelmt-cart-page {
	--btelmt-accent: #c2001a;
	--btelmt-accent-hover: rgba(194, 0, 26, 0.9);
	--btelmt-bg: #080808;
	--btelmt-surface: #141414;
	--btelmt-surface-2: #1f1f1f;
	--btelmt-border: #292929;
	--btelmt-text: #f5f5f5;
	--btelmt-muted: #999999;
	--btelmt-font-display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--btelmt-font-body: "Manrope", "Inter", system-ui, sans-serif;
	--btelmt-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* The hero replaces the theme's page title. */
body.btelmt-checkout-page .page-header .entry-title,
body.btelmt-checkout-page .entry-header .entry-title {
	display: none;
}

body.btelmt-checkout-page .btelmt-woo-page-hero-wrap,
body.btelmt-cart-page .btelmt-woo-page-hero-wrap,
body.btelmt-checkout-page .woocommerce {
	box-sizing: border-box;
	max-width: auto;
	margin-left: auto;
	margin-right: auto;
	font-family: var(--btelmt-font-body);
	color: var(--btelmt-text);
}

body.btelmt-cart-page .btelmt-woo-page-hero-wrap *,
body.btelmt-checkout-page .btelmt-woo-page-hero-wrap *,
body.btelmt-checkout-page .woocommerce *,
body.btelmt-checkout-page .woocommerce *::before,
body.btelmt-checkout-page .woocommerce *::after {
	box-sizing: border-box;
}

/* ---------- Entrance (Lovable: heading rises, form slides from the left, summary from the right) ---------- */

@keyframes btelmt-rise {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

@keyframes btelmt-from-left {
	from { opacity: 0; transform: translateX(-20px); }
	to { opacity: 1; transform: none; }
}

@keyframes btelmt-from-right {
	from { opacity: 0; transform: translateX(20px); }
	to { opacity: 1; transform: none; }
}

body.btelmt-cart-page .btelmt-woo-page-heading,
body.btelmt-checkout-page .btelmt-woo-page-heading {
	animation: btelmt-rise 800ms var(--btelmt-ease) both;
}

body.btelmt-checkout-page form.checkout > #customer_details,
body.btelmt-checkout-page form.checkout > .btelmt-checkout-payment {
	animation: btelmt-from-left 800ms var(--btelmt-ease) 100ms both;
}

body.btelmt-checkout-page form.checkout > #order_review {
	animation: btelmt-from-right 800ms var(--btelmt-ease) 200ms both;
}

/* ---------- Hero ---------- */

body.btelmt-cart-page .btelmt-woo-back-link,
body.btelmt-checkout-page .btelmt-woo-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	margin: 0 0 40px;
	padding: 12px 0;
	font-family: var(--btelmt-font-body);
	font-size: 12px;
	font-weight: 800;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--btelmt-muted);
	transition: color 150ms var(--btelmt-ease);
}

body.btelmt-cart-page .btelmt-woo-back-link:hover,
body.btelmt-checkout-page .btelmt-woo-back-link:hover,
body.btelmt-cart-page .btelmt-woo-back-link:focus-visible,
body.btelmt-checkout-page .btelmt-woo-back-link:focus-visible {
	color: var(--btelmt-text);
}

body.btelmt-cart-page .btelmt-woo-page-subtitle,
body.btelmt-checkout-page .btelmt-woo-page-subtitle {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 16px;
	font-size: 10px;
	font-weight: 400;
	line-height: 15px;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	color: var(--btelmt-accent);
}

body.btelmt-cart-page .btelmt-woo-page-subtitle::before,
body.btelmt-checkout-page .btelmt-woo-page-subtitle::before {
	content: "";
	flex: 0 0 48px;
	height: 1px;
	background-color: var(--btelmt-accent);
}

body.btelmt-cart-page .btelmt-woo-page-title,
body.btelmt-checkout-page .btelmt-woo-page-title {
	margin: 0 0 64px;
	font-family: var(--btelmt-font-display);
	font-size: 48px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--btelmt-text);
}

/* ---------- Notices, login and coupon (above the form) ---------- */

body.btelmt-checkout-page .woocommerce-info,
body.btelmt-checkout-page .woocommerce-message,
body.btelmt-checkout-page .woocommerce-error {
	margin: 0 0 24px;
	padding: 16px 20px;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	list-style: none;
	color: var(--btelmt-muted);
	background-color: transparent;
	border: 1px solid var(--btelmt-border);
	border-left: 2px solid var(--btelmt-accent);
	border-radius: 0;
}

body.btelmt-checkout-page .woocommerce-info::before,
body.btelmt-checkout-page .woocommerce-message::before,
body.btelmt-checkout-page .woocommerce-error::before {
	content: none;
}

body.btelmt-checkout-page .woocommerce-error li {
	margin: 0;
	color: var(--btelmt-text);
}

body.btelmt-checkout-page .woocommerce-info a,
body.btelmt-checkout-page .woocommerce-message a {
	color: var(--btelmt-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.btelmt-checkout-page form.checkout_coupon,
body.btelmt-checkout-page form.woocommerce-form-login {
	margin: 0 0 32px;
	padding: 20px;
	border: 1px solid var(--btelmt-border);
	border-radius: 0;
}

/* ---------- Form layout: details + payment | summary ---------- */

body.btelmt-checkout-page form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	grid-auto-flow: row dense;
	column-gap: 80px;
	align-items: start;
}

body.btelmt-checkout-page form.checkout::before,
body.btelmt-checkout-page form.checkout::after {
	content: none;
	display: none;
}

body.btelmt-checkout-page form.checkout > * {
	grid-column: 1;
	min-width: 0;
}

body.btelmt-checkout-page form.checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

body.btelmt-checkout-page form.checkout > #order_review_heading {
	display: none;
}

body.btelmt-checkout-page form.checkout > #order_review {
	grid-column: 2;
	grid-row: span 2;
	position: sticky;
	top: 128px;
}

body.btelmt-checkout-page #customer_details .col-1,
body.btelmt-checkout-page #customer_details .col-2 {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Single address form: the order ships to the address above. */
body.btelmt-checkout-page .woocommerce-shipping-fields,
body.btelmt-checkout-page .woocommerce-billing-fields > h3,
body.btelmt-checkout-page .woocommerce-additional-fields > h3 {
	display: none;
}

/* ---------- Section titles ---------- */

body.btelmt-checkout-page .btelmt-checkout-section-title,
body.btelmt-checkout-page .btelmt-checkout-summary-title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--btelmt-font-body);
	font-size: 10px;
	font-weight: 400;
	line-height: 15px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--btelmt-muted);
}

/* ---------- Fields ---------- */

/* Grid with CSS order, so WooCommerce's per-country field re-sorting can't break the layout. */
body.btelmt-checkout-page .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

body.btelmt-checkout-page .woocommerce-billing-fields__field-wrapper > * {
	grid-column: 1 / -1;
	order: 20;
}

body.btelmt-checkout-page .btelmt-checkout-section-title--contact { order: 0; }
body.btelmt-checkout-page #billing_email_field { order: 1; }
body.btelmt-checkout-page .btelmt-checkout-section-title--shipping { order: 2; margin-top: 28px; }
body.btelmt-checkout-page #billing_first_name_field { order: 3; grid-column: span 3; }
body.btelmt-checkout-page #billing_last_name_field { order: 4; grid-column: span 3; }
body.btelmt-checkout-page #billing_address_1_field { order: 5; }
body.btelmt-checkout-page #billing_address_2_field { order: 6; }
body.btelmt-checkout-page #billing_city_field { order: 7; grid-column: span 2; }
body.btelmt-checkout-page #billing_postcode_field { order: 8; grid-column: span 2; }
body.btelmt-checkout-page #billing_country_field { order: 9; grid-column: span 2; }
body.btelmt-checkout-page #billing_state_field { order: 10; }
body.btelmt-checkout-page #billing_phone_field { order: 11; }

body.btelmt-checkout-page form.checkout .form-row {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.btelmt-checkout-page form.checkout .form-row .screen-reader-text,
body.btelmt-checkout-page form.checkout .form-row label.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.btelmt-checkout-page form.checkout .form-row .input-text,
body.btelmt-checkout-page form.checkout .form-row select,
body.btelmt-checkout-page form.checkout .form-row textarea,
body.btelmt-checkout-page form.checkout_coupon .input-text,
body.btelmt-checkout-page form.woocommerce-form-login .input-text {
	display: block;
	width: 100%;
	height: 47px;
	margin: 0;
	padding: 14px 20px;
	font-family: var(--btelmt-font-body);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.1em;
	color: var(--btelmt-text);
	background-color: transparent;
	border: 1px solid var(--btelmt-border);
	border-radius: 0;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 500ms var(--btelmt-ease);
}

body.btelmt-checkout-page form.checkout .form-row textarea {
	height: auto;
	min-height: 100px;
}

body.btelmt-checkout-page form.checkout .form-row .input-text::placeholder,
body.btelmt-checkout-page form.checkout .form-row textarea::placeholder,
body.btelmt-checkout-page form.checkout_coupon .input-text::placeholder {
	color: rgba(153, 153, 153, 0.4);
	opacity: 1;
}

body.btelmt-checkout-page form.checkout .form-row .input-text:focus,
body.btelmt-checkout-page form.checkout .form-row select:focus,
body.btelmt-checkout-page form.checkout .form-row textarea:focus,
body.btelmt-checkout-page form.checkout_coupon .input-text:focus {
	border-color: rgba(245, 245, 245, 0.25);
}

body.btelmt-checkout-page form.checkout .form-row.woocommerce-invalid .input-text,
body.btelmt-checkout-page form.checkout .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--btelmt-accent);
}

body.btelmt-checkout-page form.checkout .form-row.woocommerce-validated .input-text {
	border-color: var(--btelmt-border);
}

/* Autofill would otherwise paint the dark fields white/yellow. */
body.btelmt-checkout-page form.checkout .input-text:-webkit-autofill {
	-webkit-text-fill-color: var(--btelmt-text);
	-webkit-box-shadow: 0 0 0 100px var(--btelmt-bg) inset;
	caret-color: var(--btelmt-text);
}

/* Country / state (selectWoo) */

body.btelmt-checkout-page form.checkout .select2-container {
	width: 100% !important;
}

body.btelmt-checkout-page form.checkout .select2-container .select2-selection--single {
	height: 47px;
	background-color: transparent;
	border: 1px solid var(--btelmt-border);
	border-radius: 0;
	outline: none;
	transition: border-color 500ms var(--btelmt-ease);
}

body.btelmt-checkout-page form.checkout .select2-container--open .select2-selection--single,
body.btelmt-checkout-page form.checkout .select2-container--focus .select2-selection--single {
	border-color: rgba(245, 245, 245, 0.25);
}

body.btelmt-checkout-page form.checkout .select2-container .select2-selection__rendered {
	padding: 0 40px 0 20px;
	font-family: var(--btelmt-font-body);
	font-size: 11px;
	line-height: 45px;
	letter-spacing: 0.1em;
	color: var(--btelmt-text);
}

body.btelmt-checkout-page form.checkout .select2-container .select2-selection__placeholder {
	color: rgba(153, 153, 153, 0.4);
}

body.btelmt-checkout-page form.checkout .select2-container .select2-selection__arrow {
	top: 0;
	right: 12px;
	height: 45px;
}

body.btelmt-checkout-page form.checkout .select2-container .select2-selection__arrow b {
	border-top-color: var(--btelmt-muted);
}

body.btelmt-checkout-page .select2-dropdown {
	font-family: var(--btelmt-font-body);
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--btelmt-text);
	background-color: var(--btelmt-surface);
	border: 1px solid var(--btelmt-border);
	border-radius: 0;
}

body.btelmt-checkout-page .select2-search--dropdown .select2-search__field {
	height: 40px;
	padding: 0 12px;
	color: var(--btelmt-text);
	background-color: transparent;
	border: 1px solid var(--btelmt-border);
	border-radius: 0;
	outline: none;
}

body.btelmt-checkout-page .select2-results__option {
	padding: 10px 16px;
}

body.btelmt-checkout-page .select2-results__option[aria-selected="true"],
body.btelmt-checkout-page .select2-results__option[data-selected="true"] {
	color: var(--btelmt-accent);
	background-color: var(--btelmt-surface-2);
}

body.btelmt-checkout-page .select2-results__option--highlighted[aria-selected],
body.btelmt-checkout-page .select2-results__option--highlighted[data-selected] {
	color: var(--btelmt-text);
	background-color: var(--btelmt-surface-2);
}

/* Checkboxes (create account, terms) */

body.btelmt-checkout-page form.checkout .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	line-height: 1.6;
	color: var(--btelmt-muted);
	cursor: pointer;
}

body.btelmt-checkout-page form.checkout input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--btelmt-accent);
}

body.btelmt-checkout-page .woocommerce-account-fields {
	margin-top: 20px;
}

/* ---------- Payment ---------- */

body.btelmt-checkout-page .btelmt-checkout-payment {
	margin-top: 40px;
}

body.btelmt-checkout-page .btelmt-checkout-payment > .btelmt-checkout-section-title {
	margin-bottom: 20px;
}

body.btelmt-checkout-page .woocommerce-checkout #payment {
	padding: 0;
	background: transparent;
	border-radius: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods::before,
body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods::after {
	content: none;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	padding: 14px 20px;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	color: var(--btelmt-text);
	border: 1px solid var(--btelmt-border);
	list-style: none;
}

/* A single gateway: WooCommerce hides its radio, so drop the box and show its fields directly. */
body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li:only-child {
	padding: 0;
	border: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li:only-child > label {
	display: none;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li > input[type="radio"] {
	margin: 0 10px 0 0;
	vertical-align: middle;
	accent-color: var(--btelmt-accent);
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li > label {
	display: inline;
	font-weight: 400;
	cursor: pointer;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li img {
	display: inline-block;
	max-height: 20px;
	margin: 0 0 0 8px;
	vertical-align: middle;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.payment_box {
	margin: 12px 0 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.6;
	color: var(--btelmt-muted);
	background: transparent;
	border-radius: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.payment_box::before {
	content: none;
}

body.btelmt-checkout-page .woocommerce-checkout #payment ul.payment_methods li:only-child div.payment_box {
	margin-top: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.payment_box p {
	margin: 0 0 12px;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

body.btelmt-checkout-page .woocommerce-checkout #payment div.form-row.place-order {
	margin: 40px 0 0;
	padding: 0;
}

body.btelmt-checkout-page .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 20px;
	font-size: 10px;
	line-height: 1.6;
	color: var(--btelmt-muted);
}

body.btelmt-checkout-page .woocommerce-terms-and-conditions-wrapper a,
body.btelmt-checkout-page .woocommerce-privacy-policy-text a {
	color: var(--btelmt-text);
}

body.btelmt-checkout-page .woocommerce-privacy-policy-text p {
	margin: 0 0 12px;
}

body.btelmt-checkout-page .woocommerce-checkout #payment #place_order,
body.btelmt-checkout-page form.checkout_coupon .button,
body.btelmt-checkout-page form.woocommerce-form-login .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	float: none;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 12px 20px;
	font-family: var(--btelmt-font-body);
	font-size: 12px;
	font-weight: 800;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--btelmt-text);
	background-color: var(--btelmt-accent);
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 150ms var(--btelmt-ease), opacity 150ms var(--btelmt-ease);
}

body.btelmt-checkout-page form.checkout_coupon .button,
body.btelmt-checkout-page form.woocommerce-form-login .button {
	width: auto;
}

/* Lock icon as a pseudo element: gateways such as PayPal rewrite the button text with JS. */
body.btelmt-checkout-page .woocommerce-checkout #payment #place_order::before {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.btelmt-checkout-page .woocommerce-checkout #payment #place_order:hover,
body.btelmt-checkout-page .woocommerce-checkout #payment #place_order:focus-visible,
body.btelmt-checkout-page form.checkout_coupon .button:hover,
body.btelmt-checkout-page form.woocommerce-form-login .button:hover {
	color: var(--btelmt-text);
	background-color: var(--btelmt-accent-hover);
}

body.btelmt-checkout-page .woocommerce-checkout #payment #place_order:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

body.btelmt-checkout-page .btelmt-checkout-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 0;
	font-size: 9px;
	line-height: 14px;
	letter-spacing: 0.05em;
	color: rgba(153, 153, 153, 0.3);
}

/* WooCommerce's loading overlay (blockUI) */
body.btelmt-checkout-page .blockUI.blockOverlay {
	background-color: var(--btelmt-bg) !important;
	opacity: 0.6 !important;
}

/* ---------- Order summary ---------- */

body.btelmt-checkout-page #order_review {
	padding: 32px;
	border: 1px solid var(--btelmt-border);
}

body.btelmt-checkout-page #order_review .btelmt-checkout-summary-title {
	margin-bottom: 32px;
}

body.btelmt-checkout-page #order_review table.shop_table {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

body.btelmt-checkout-page #order_review table.shop_table thead {
	display: none;
}

body.btelmt-checkout-page #order_review table.shop_table tbody {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}

body.btelmt-checkout-page #order_review table.shop_table tbody tr,
body.btelmt-checkout-page #order_review table.shop_table tbody td {
	display: block;
	padding: 0;
	background: transparent;
	border: 0;
}

body.btelmt-checkout-page #order_review table.shop_table tbody td.product-total {
	display: none;
}

/* review-order.php prints "&nbsp;" after the name; zero font size stops it from adding an empty line. */
body.btelmt-checkout-page #order_review table.shop_table tbody td.product-name {
	font-size: 0;
	line-height: 0;
}

body.btelmt-checkout-page #order_review table.shop_table .product-name .wc-item-meta,
body.btelmt-checkout-page #order_review table.shop_table .product-name dl.variation {
	margin: 4px 0 0 80px;
	font-size: 10px;
	line-height: 1.5;
	color: var(--btelmt-muted);
}

body.btelmt-checkout-page .btelmt-checkout-item {
	display: flex;
	gap: 16px;
}

body.btelmt-checkout-page .btelmt-checkout-item-media {
	position: relative;
	flex: 0 0 64px;
}

body.btelmt-checkout-page .btelmt-checkout-item-media img {
	display: block;
	width: 64px;
	height: 80px;
	margin: 0;
	object-fit: cover;
	background-color: var(--btelmt-surface);
}

body.btelmt-checkout-page .btelmt-checkout-item-qty {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 9px;
	line-height: 1;
	color: var(--btelmt-text);
	background-color: var(--btelmt-accent);
}

body.btelmt-checkout-page .btelmt-checkout-item-main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

body.btelmt-checkout-page .btelmt-checkout-item-name {
	overflow: hidden;
	font-family: var(--btelmt-font-display);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--btelmt-text);
}

body.btelmt-checkout-page .btelmt-checkout-item-price {
	margin-top: 4px;
	font-size: 11px;
	line-height: 16.5px;
	color: var(--btelmt-muted);
}

/* Totals */

body.btelmt-checkout-page #order_review table.shop_table tfoot {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--btelmt-border);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot tr {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
}

body.btelmt-checkout-page #order_review table.shop_table tfoot th,
body.btelmt-checkout-page #order_review table.shop_table tfoot td {
	padding: 0;
	font-family: var(--btelmt-font-body);
	font-size: 11px;
	font-weight: 400;
	line-height: 16.5px;
	text-align: left;
	background: transparent;
	border: 0;
}

body.btelmt-checkout-page #order_review table.shop_table tfoot th {
	color: var(--btelmt-muted);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot td {
	text-align: right;
	color: var(--btelmt-text);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot td strong {
	font-weight: inherit;
}

body.btelmt-checkout-page #order_review #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.btelmt-checkout-page #order_review #shipping_method li {
	margin: 0 0 4px;
	padding: 0;
	text-indent: 0;
}

body.btelmt-checkout-page #order_review #shipping_method li:last-child {
	margin-bottom: 0;
}

body.btelmt-checkout-page #order_review #shipping_method input[type="radio"] {
	margin: 0 6px 0 0;
	vertical-align: middle;
	accent-color: var(--btelmt-accent);
}

body.btelmt-checkout-page #order_review #shipping_method label {
	display: inline;
	font-weight: 400;
}

body.btelmt-checkout-page #order_review .woocommerce-shipping-destination,
body.btelmt-checkout-page #order_review .woocommerce-shipping-contents {
	margin: 4px 0 0;
	font-size: 10px;
	color: var(--btelmt-muted);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot tr.order-total {
	align-items: center;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--btelmt-border);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot tr.order-total th {
	font-size: 10px;
	line-height: 28px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--btelmt-text);
}

body.btelmt-checkout-page #order_review table.shop_table tfoot tr.order-total td {
	font-family: var(--btelmt-font-display);
	font-size: 20px;
	line-height: 28px;
}

body.btelmt-checkout-page #order_review table.shop_table tfoot tr.order-total .includes_tax {
	display: block;
	font-family: var(--btelmt-font-body);
	font-size: 10px;
	line-height: 1.4;
	color: var(--btelmt-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	body.btelmt-checkout-page .btelmt-woo-page-title {
		margin-bottom: 48px;
		font-size: 36px;
	}

	body.btelmt-checkout-page form.checkout {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 64px;
	}

	body.btelmt-checkout-page form.checkout > #order_review {
		position: static;
		grid-column: 1;
		grid-row: auto;
	}

	body.btelmt-checkout-page .btelmt-checkout-payment {
		margin-top: -24px;
	}

	body.btelmt-checkout-page #order_review {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.btelmt-checkout-page .btelmt-woo-page-heading,
	body.btelmt-checkout-page form.checkout > * {
		animation: none !important;
	}
}
