/* ==========================================================================
   BKA 2026 v5 · COMMERCE – cart, checkout, account, and the inline
   checkout inside the home page donation card (body.bka-v4-inline-checkout,
   steps added by the forked inline-checkout.js). WooCommerce's own shop CSS
   is dequeued (inc/v5/assets.php); everything here is token-based.
   ========================================================================== */

/* Page header (standalone flow) */
.v5-commerce__header {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
	background: linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	color: #fff;
	isolation: isolate;
}
.v5-commerce__header--photo { min-height: clamp(22rem, 40vw, 32rem); display: grid; align-items: end; }
.v5-commerce__header-media { position: absolute; z-index: -2; inset: 0; margin: 0; }
.v5-commerce__header-media img { width: 100%; height: 100%; object-fit: cover; }
/* Thank-you header: Patrik's photograph, his head always in the frame (final review 2026-11-13). */
.v5-commerce__header--thanks { min-height: clamp(24rem, 40vw, 34rem); }
.v5-commerce__header--thanks .v5-commerce__header-media img { object-position: 50% 22%; }
.v5-commerce__header--photo::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(var(--v5-scrim), .72), rgba(var(--v5-scrim), 0) 70%); }
.v5-commerce__title { margin: 0; color: #fff; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1.04; }
.v5-steps { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: var(--v5-w-bold); letter-spacing: .04em; }
.v5-steps li { display: flex; align-items: center; gap: .6rem; margin: 0; color: rgba(255, 255, 255, .72); }
.v5-steps li > span { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; font-size: .8125rem; }
.v5-steps li .v5-icon { width: 1rem; height: 1rem; }
.v5-steps li.is-complete,
.v5-steps li[aria-current="step"] { color: #fff; }
.v5-steps li.is-complete > span { border-color: #fff; background: #fff; color: var(--v5-red); }
.v5-steps li[aria-current="step"] > span { border-color: #fff; }

.v5-commerce__body { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.v5-commerce__trust { margin-bottom: 1.75rem; align-items: center; }
.v5-commerce__trust .v5-icon { width: 1.5rem; height: 1.5rem; color: var(--v5-red); }
.v5-commerce__section-title { margin: 0 0 1.25rem; font-size: var(--v5-fs-h3); color: var(--v5-ink); }
.v5-commerce__empty { max-width: 44rem; }

/* WooCommerce: forms --------------------------------------------------------- */
.v5-commerce__wc .woocommerce form .form-row,
.v5-commerce__wc form.checkout .form-row,
.v5-commerce__wc .form-row { margin: 0 0 1rem; padding: 0; }
.v5-commerce__wc label {
	display: block;
	margin-bottom: .4rem;
	color: var(--v5-ink);
	font-size: .875rem;
	font-weight: var(--v5-w-bold);
	line-height: 1.35;
}
.v5-commerce__wc .required { color: var(--v5-red); text-decoration: none; border: 0; }
.v5-commerce__wc .optional { color: var(--v5-muted); font-weight: var(--v5-w-text); }
.v5-commerce__wc .woocommerce-input-wrapper { display: block; }
.v5-commerce__wc :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea) {
	width: 100%;
	min-height: 3.25rem;
	padding: .75rem 1rem;
	border: 1.5px solid var(--v5-line-strong);
	border-radius: var(--v5-radius-sm);
	background: #fff;
	color: var(--v5-ink);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-commerce__wc textarea { min-height: 5.5rem; resize: vertical; }
.v5-commerce__wc :is(input, select, textarea):focus { border-color: var(--v5-red); outline: none; box-shadow: var(--v5-field-focus); }
.v5-commerce__wc .woocommerce-invalid :is(input, select, textarea) { border-color: var(--v5-red-700); border-width: 2px; }
.v5-commerce__wc .woocommerce-validated :is(input.input-text) { border-color: #9fc4ae; }

/* Two fields per row: Vezetéknév | Keresztnév, Irányítószám | Város (item 12) */
.v5-commerce__wc .woocommerce-billing-fields__field-wrapper,
.v5-commerce__wc .woocommerce-shipping-fields__field-wrapper,
.v5-commerce__wc .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 0 1rem;
}
.v5-commerce__wc .form-row-wide,
.v5-commerce__wc .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.v5-commerce__wc .form-row-first { grid-column: 1; }
.v5-commerce__wc .form-row-last { grid-column: 2; }
.v5-commerce__wc .woocommerce-billing-fields h3,
.v5-commerce__wc .woocommerce-additional-fields h3,
.v5-commerce__wc #order_review_heading { margin: 0 0 1.25rem; color: var(--v5-ink); font-size: var(--v5-fs-h4); }

/* select2 / selectWoo */
.v5-commerce__wc .select2-container .select2-selection--single { height: 3.25rem; border: 1.5px solid var(--v5-line-strong); border-radius: var(--v5-radius-sm); }
.v5-commerce__wc .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 1rem; line-height: 3.05rem; color: var(--v5-ink); }
.v5-commerce__wc .select2-container .select2-selection--single .select2-selection__arrow { height: 3.1rem; right: .5rem; }
.select2-dropdown { border-color: var(--v5-line-strong); border-radius: var(--v5-radius-sm); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--v5-red); }

/* Standalone checkout: details + sticky summary card */
.v5-commerce__wc form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-areas: "details heading" "details review";
	grid-template-rows: auto 1fr;
	gap: 0 clamp(1.5rem, 3vw, 3.5rem);
	align-items: start;
}
.v5-commerce__wc form.checkout > #customer_details { grid-area: details; }
.v5-commerce__wc form.checkout > #order_review_heading { grid-area: heading; }
.v5-commerce__wc form.checkout > #order_review { grid-area: review; }
.v5-commerce__wc #customer_details,
.v5-commerce__wc #order_review {
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
}
.v5-commerce__wc #customer_details .col-2 { margin-top: 1rem; }
.v5-commerce__wc #order_review_heading { padding-top: 0; }

/* Order review table */
.v5-commerce__wc table.shop_table { width: 100%; margin: 0 0 1.25rem; border: 0; border-collapse: collapse; font-size: .9375rem; }
.v5-commerce__wc table.shop_table :is(th, td) { padding: .75rem 0; border-bottom: 1px solid var(--v5-line); background: transparent; }
.v5-commerce__wc table.shop_table thead { display: none; }
.v5-commerce__wc table.shop_table .product-total,
.v5-commerce__wc table.shop_table tfoot td { text-align: right; white-space: nowrap; }
.v5-commerce__wc table.shop_table .order-total :is(th, td) { border-bottom: 0; color: var(--v5-red); font-family: var(--v5-font-display); font-size: 1.5rem; font-weight: var(--v5-w-display); }
.v5-commerce__wc .product-quantity { display: none; }
.v5-commerce__wc dl.variation { display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; margin: .5rem 0 0; color: var(--v5-muted); font-size: .8125rem; }
.v5-commerce__wc dl.variation :is(dt, dd) { margin: 0; }
.v5-commerce__wc dl.variation p { margin: 0; }

/* Payment box */
.v5-commerce__wc #payment { padding: 0; border-radius: 0; background: transparent; }
.v5-commerce__wc #payment ul.payment_methods { margin: 0 0 1rem; padding: 0; border: 0; list-style: none; }
.v5-commerce__wc #payment ul.payment_methods > li { margin: 0; }
.v5-commerce__wc #payment .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 .75rem;
	font-size: .9375rem;
}
.v5-commerce__wc #payment .wc_payment_method > .input-radio { position: absolute; opacity: 0; pointer-events: none; }
.v5-commerce__wc #payment .payment_box { margin: 0; padding: 0; background: transparent; }

/* Demo card section (BKA Core demo gateway, protected demo only) */
.bka-demo-card {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	padding: 1rem;
	border-radius: var(--v5-radius-sm);
	background: var(--v5-mist);
}
.bka-demo-card__field--wide { grid-column: 1 / -1; }
.v5-commerce__wc .bka-demo-card__field { margin: 0; font-size: .8125rem; }
.v5-commerce__wc .bka-demo-card__field span { display: block; margin-bottom: .3rem; }
.v5-commerce__wc .bka-demo-card input { min-height: 3rem; border-color: var(--v5-line); color: var(--v5-ink-soft); cursor: default; }
.bka-demo-card__icon { display: inline-grid; place-items: center; width: 2rem; height: 1.5rem; border-radius: 4px; background: var(--v5-mist); color: var(--v5-ink); }
.bka-demo-card__tag {
	position: absolute;
	top: -2.15rem;
	right: 0;
	padding: .15rem .55rem;
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red-100);
	color: var(--v5-red-700);
	font-size: .6875rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .08em;
}
.v5-commerce__wc .woocommerce-privacy-policy-text { color: var(--v5-muted); font-size: .8125rem; line-height: 1.55; }
.v5-commerce__wc .woocommerce-privacy-policy-text p { margin: 0 0 1rem; }
.v5-commerce__wc :is(.button, button.button, a.button, input.button, #place_order) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 3.5rem;
	padding: .85rem 1.75rem;
	border: 2px solid var(--v5-red);
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red);
	color: #fff;
	font-size: .9375rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--v5-shadow-red);
	transition: background-color var(--v5-dur) var(--v5-ease), transform var(--v5-dur) var(--v5-ease);
}
.v5-commerce__wc #place_order { width: 100%; }
.v5-commerce__wc :is(.button, #place_order):hover:not(:disabled) { background: var(--v5-red-600); border-color: var(--v5-red-600); color: #fff; transform: translateY(-1px); }
.v5-commerce__wc :is(.button, #place_order):disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* Notices */
.v5-commerce__wc :is(.woocommerce-error, .woocommerce-info, .woocommerce-message, .woocommerce-notice) {
	position: relative;
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border: 0;
	border-left: 5px solid var(--v5-red);
	border-radius: 0 var(--v5-radius-sm) var(--v5-radius-sm) 0;
	background: var(--v5-red-50);
	color: var(--v5-ink);
	font-size: .9375rem;
	line-height: 1.55;
	list-style: none;
}
.v5-commerce__wc :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before { display: none; }
.v5-commerce__wc .woocommerce-error li { margin: 0; }

/* Cart */
.v5-commerce__wc .woocommerce-cart-form,
.v5-commerce__wc .cart_totals {
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
}
.v5-commerce__wc table.cart td.product-thumbnail { display: none; }
.v5-commerce__wc table.cart td.product-name a { color: var(--v5-ink); font-weight: var(--v5-w-bold); text-decoration: none; }
.v5-commerce__wc table.cart td.product-remove { width: 2.5rem; }
.v5-commerce__wc table.cart td.product-remove a { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--v5-red-100); color: var(--v5-red); font-size: 1.2rem; line-height: 1; text-decoration: none; }
.v5-commerce__wc table.cart td.product-price,
.v5-commerce__wc table.cart td.product-quantity { display: none; }
.v5-commerce__wc table.cart td.product-subtotal { text-align: right; font-family: var(--v5-font-display); font-size: 1.375rem; color: var(--v5-red); }
.v5-commerce__wc table.cart td.actions { padding-top: 1.25rem; border-bottom: 0; text-align: right; }
.v5-commerce__wc table.cart td.actions .coupon { display: none; }
.v5-commerce__wc table.cart td.actions .button { min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .8125rem; box-shadow: none; }
.v5-commerce__wc .cart-collaterals { display: flex; justify-content: flex-end; margin-top: var(--v5-gap); }
.v5-commerce__wc .cart_totals { width: min(100%, 30rem); }
.v5-commerce__wc .cart_totals h2 { margin: 0 0 1rem; color: var(--v5-ink); font-size: var(--v5-fs-h3); }
.v5-commerce__wc .cart_totals table.shop_table { margin-bottom: 1.25rem; }
.v5-commerce__wc .cart_totals table th { text-align: left; }
.v5-commerce__wc .wc-proceed-to-checkout .checkout-button { width: 100%; }

/* Sign-in / registration / lost password cards (also the checkout's sign-in). The donor account itself: account.css. */
.v5-commerce__wc :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) { max-width: 30rem; padding: 2rem; border-radius: var(--v5-radius); background: #fff; box-shadow: var(--v5-shadow-card); }

/* WooCommerce's "show password" button (its own stylesheet is not loaded): an eye inside the field. */
.v5-commerce__wc .password-input { position: relative; display: block; }
.v5-commerce__wc .password-input input { padding-right: 3.25rem; }
.v5-commerce__wc .password-input .show-password-input { position: absolute; top: 50%; right: .4rem; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--v5-muted); transform: translateY(-50%); cursor: pointer; appearance: none; }
.v5-commerce__wc .password-input .show-password-input::after { content: ""; width: 1.25rem; height: 1.25rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.v5-commerce__wc .password-input .show-password-input.display-password::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4.2A10 10 0 0 1 12 4c6.4 0 10 8 10 8a17.5 17.5 0 0 1-2.2 3.2M6.6 6.6C3.7 8.5 2 12 2 12s3.6 8 10 8a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4.2A10 10 0 0 1 12 4c6.4 0 10 8 10 8a17.5 17.5 0 0 1-2.2 3.2M6.6 6.6C3.7 8.5 2 12 2 12s3.6 8 10 8a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18'/%3E%3C/svg%3E"); }
.v5-commerce__wc .password-input .show-password-input:hover { color: var(--v5-red); background: var(--v5-red-50); }
.v5-commerce__wc .password-input .show-password-input:focus-visible { outline: 2px solid var(--v5-focus); outline-offset: 1px; color: var(--v5-red); }

/* ==========================================================================
   Inline checkout (inside the home page donation card)
   ========================================================================== */
html:has(body.bka-v4-inline-checkout) { overflow: hidden; background: transparent; }
body.bka-v4-inline-checkout { min-height: 0; background: transparent; font-size: .9375rem; }
body.bka-v4-inline-checkout .v5-main { display: block; }
body.bka-v4-inline-checkout .v5-commerce__content { padding: .35rem .25rem .5rem; }
body.bka-v4-inline-checkout .v5-commerce__wc form.checkout { display: block; }
body.bka-v4-inline-checkout .v5-commerce__wc #customer_details,
body.bka-v4-inline-checkout .v5-commerce__wc #order_review { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.bka-v4-inline-checkout .v5-commerce__wc :is(input.input-text, select, textarea) { min-height: 3rem; padding: .65rem .9rem; }
body.bka-v4-inline-checkout .v5-commerce__wc .form-row { margin-bottom: .75rem; }
body.bka-v4-inline-checkout .v5-commerce__wc label { margin-bottom: .3rem; font-size: .8125rem; }
body.bka-v4-inline-checkout .v5-commerce__wc label .optional { font-size: .71875rem; }
body.bka-v4-inline-checkout .v5-commerce__wc input::placeholder { font-size: .8125rem; }
body.bka-v4-inline-checkout .v5-commerce__wc input:placeholder-shown { text-overflow: ellipsis; }
body.bka-v4-inline-checkout .v5-commerce__wc .woocommerce-billing-fields > h3 { display: none; }
body.bka-v4-inline-checkout .v5-commerce__wc :is(#order_comments_field, .woocommerce-additional-fields > h3) { display: none; }
body.bka-v4-inline-checkout .v5-commerce__wc #customer_details .col-2 { margin-top: 0; }

/* Steps (classes from inline-checkout.js) */
body.bka-inline-step-details :is(#order_review_heading, #order_review, .bka-inline-flow__actions--payment) { display: none; }
body.bka-inline-step-payment :is(#customer_details, .bka-inline-flow__actions--details) { display: none; }

.bka-inline-flow__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	min-height: 2.4rem;
	margin: 0 2.9rem 1rem 0;
}
.bka-inline-flow__progress { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.bka-inline-flow__progress li { width: 1.9rem; height: .35rem; margin: 0; border-radius: 3px; background: var(--v5-line); transition: background-color var(--v5-dur) var(--v5-ease); }
.bka-inline-flow__progress li.is-complete,
.bka-inline-flow__progress li.is-current { background: var(--v5-red); }
.bka-inline-flow__progress li.is-current { width: 2.75rem; }
.bka-inline-flow__summary { display: flex; align-items: baseline; gap: .5rem; margin: 0; white-space: nowrap; }
.bka-inline-flow__summary strong { color: var(--v5-red); font-family: var(--v5-font-display); font-size: 1.375rem; font-weight: var(--v5-w-display); }
.bka-inline-flow__summary span { color: var(--v5-muted); font-size: .8125rem; font-weight: var(--v5-w-ui); }
.bka-inline-flow__actions { margin: .5rem 0 0; }
.bka-inline-flow__actions--details .bka-inline-flow__next { width: 100%; }
.bka-inline-flow__actions--payment { margin: 0; }
.bka-inline-flow__previous {
	display: inline-grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--v5-mist);
	color: var(--v5-ink);
	font-size: 1.1rem;
}
.bka-inline-flow__previous:hover { background: var(--v5-red); color: #fff; }

/* Payment step: only the card section and TÁMOGATOM (back arrow + progress on top). */
body.bka-inline-step-payment .bka-inline-flow__header { justify-content: flex-start; }
body.bka-inline-step-payment .bka-inline-flow__summary { display: none; }
body.bka-inline-step-payment #order_review_heading {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
body.bka-v4-inline-checkout .v5-commerce__wc :is(table.shop_table, .woocommerce-privacy-policy-text) { display: none; }

@media (max-width: 56rem) {
	.v5-commerce__wc form.checkout { grid-template-columns: 1fr; grid-template-areas: "details" "heading" "review"; }
	.v5-commerce__wc form.checkout > #order_review_heading { margin-top: 2rem; }
}
/* Two-up rows stay two-up down to the narrowest phones (brief item 12). */
@media (max-width: 20rem) {
	.v5-commerce__wc .woocommerce-billing-fields__field-wrapper { gap: 0 .6rem; }
}

/* Thank-you page (woocommerce/checkout/thankyou.php) -------------------------
   Final review 2026-11-13: one centred message card (no red summary card),
   the "Köszönjük" photograph under the text. */
.v5-thanks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--v5-gap);
	align-items: start;
	max-width: 54rem;
	margin: calc(-1 * clamp(4rem, 3rem + 3vw, 6.5rem)) auto 0;
	position: relative;
}
.v5-thanks__message { text-align: center; }
.v5-thanks__motto::before { margin-inline: auto; }
.v5-thanks__photo { margin: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) 0 0; overflow: hidden; border-radius: var(--v5-radius); aspect-ratio: 3 / 2; background: var(--v5-mist); }
.v5-thanks__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v5-thanks__message,
.v5-thanks__summary {
	min-width: 0;
	border-radius: var(--v5-radius-lg);
	box-shadow: var(--v5-shadow-card);
	padding: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
}
.v5-thanks__message { background: #fff; color: var(--v5-ink); }
.v5-thanks__icon { margin-bottom: 1.5rem; box-shadow: var(--v5-shadow-red); }
.v5-thanks__lead {
	margin: 0 0 1.25rem;
	color: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-weight: var(--v5-w-display);
	font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
	line-height: 1.12;
	text-wrap: balance;
}
.v5-thanks__text { margin: 0 0 1rem; color: var(--v5-ink-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; }
.v5-thanks__message .woocommerce-notice { margin: 0 0 1rem; font-size: 1.125rem; }
.v5-thanks__motto {
	margin: 1.75rem 0 0;
	color: var(--v5-red);
	font-family: var(--v5-font-display);
	font-weight: var(--v5-w-display);
	font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
	line-height: 1.15;
}
.v5-thanks__motto::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1.1rem; border-radius: 3px; background: var(--v5-red); }

.v5-thanks__summary { background: linear-gradient(150deg, var(--v5-red) 0%, var(--v5-red-600) 100%); color: #fff; box-shadow: var(--v5-shadow-red); }
.v5-thanks__item { margin: 0 0 .5rem; color: rgba(255, 255, 255, .85); font-size: .8125rem; font-weight: var(--v5-w-bold); letter-spacing: .14em; text-transform: uppercase; }
.v5-thanks__amount { margin: 0; color: #fff; font-family: var(--v5-font-display); font-weight: var(--v5-w-display); font-size: clamp(2.75rem, 1.9rem + 2.6vw, 4.25rem); line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.v5-thanks__amount .woocommerce-Price-amount,
.v5-thanks__amount bdi { color: inherit; }
.v5-thanks__chip { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem 0 0; padding: .4rem .9rem; border-radius: var(--v5-radius-pill); background: #fff; color: var(--v5-red); font-size: .875rem; font-weight: var(--v5-w-bold); }
.v5-thanks__chip .v5-icon { width: 1rem; height: 1rem; }
.v5-thanks__rows { display: grid; margin: 1.75rem 0 0; }
.v5-thanks__row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: .25rem 1rem; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.v5-thanks__row dt { color: rgba(255, 255, 255, .78); font-size: .875rem; }
.v5-thanks__row dd { margin: 0; color: #fff; font-weight: var(--v5-w-bold); overflow-wrap: anywhere; }
.v5-thanks__email { display: block; font-weight: var(--v5-w-ui, 500); color: rgba(255, 255, 255, .9); }

.v5-thanks__actions { grid-column: 1 / -1; display: flex; justify-content: center; margin: clamp(1rem, .5rem + 1.5vw, 2rem) 0 0; }
.v5-commerce__wc .v5-thanks section.woocommerce-order-details,
.v5-commerce__wc .v5-thanks section.woocommerce-customer-details { grid-column: 1 / -1; }

@media (max-width: 860px) {
	.v5-thanks { grid-template-columns: minmax(0, 1fr); margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)); }
	.v5-thanks__row { grid-template-columns: minmax(0, 1fr); }
}
