/*
 * Tư-Trà Beverage: the checkout journey (cart, checkout, order pay, thank you).
 *
 * The look of the signed-off demo (12 Oct 2026). Green title band and golden
 * straddle as tt-pl-newsroom's; underlined 16px fields (no iOS zoom, Handbook
 * V.37); square corners and hairlines. Loaded on every page (VII.9).
 */
:root {
	--tt-pl-bev-j-ink: #231f20;
	--tt-pl-bev-j-soft: rgba(35, 31, 32, 0.62);
	--tt-pl-bev-j-faint: rgba(35, 31, 32, 0.42);
	--tt-pl-bev-j-olive: #606043;
	--tt-pl-bev-j-cream: #e9d8c8;
	--tt-pl-bev-j-card: #fbfbf7;
	--tt-pl-bev-j-hair: rgba(96, 96, 67, 0.2);
	--tt-pl-bev-j-field: rgba(96, 96, 67, 0.45);
	--tt-pl-bev-j-warn: rgb(154, 59, 42);
	--tt-pl-bev-j-sans: "Ysabeau Office", system-ui, -apple-system, sans-serif;
	--tt-pl-bev-j-serif: "Cormorant Garamond", "Times New Roman", serif;
	--tt-pl-bev-j-script: "Pinyon Script", cursive;
	--tt-pl-bev-j-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Band and straddle (as tt-pl-newsroom) */
.tt-tp-bev-band { clip-path: inset(-100vh 0 -100vh 0); overflow-x: clip; }
.tt-tp-bev-band h1 { text-wrap: balance; }
/* clip-path only clips painting; overflow-x: clip also keeps the
   edge-to-edge strip from widening the page (it stays scroll-free). */
.tt-tp-bev-straddle-host { overflow-x: clip; overflow-y: visible; clip-path: inset(-100vh 0 -100vh 0); }
.tt-tp-bev-straddle { position: relative; }
.tt-tp-bev-straddle > .tt-tp-bev-straddle__band {
	position: absolute; top: 0; bottom: 61.8%;
	left: calc(50% - 50vw); right: calc(50% - 50vw);
	width: auto; max-width: none; pointer-events: none;
}
.tt-tp-bev-straddle > .tt-tp-bev-straddle__item { position: relative; z-index: 1; width: 100%; }

/* Step line */
.tt-pl-bev-steps {
	margin: 0 auto; max-width: 30rem; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px; background: var(--tt-pl-bev-j-card); border: 0.5px solid var(--tt-pl-bev-j-hair);
	box-shadow: 0 8px 24px rgba(35, 31, 32, 0.06);
	font-family: var(--tt-pl-bev-j-sans); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tt-pl-bev-j-faint);
}
.tt-pl-bev-steps b { font-weight: 400; }
.tt-pl-bev-steps .is-on { color: var(--tt-pl-bev-j-ink); font-weight: 600; }
.tt-pl-bev-steps .is-done { color: var(--tt-pl-bev-j-olive); }
.tt-pl-bev-steps i { font-style: normal; }

/* Shared: buttons, links, lines (cart and thank you) */
.tt-el-wc-ca-btn {
	display: flex; width: 100%; min-height: 50px; margin-top: 21px; align-items: center; justify-content: center;
	border: 1px solid var(--tt-pl-bev-j-olive); background: var(--tt-pl-bev-j-olive); color: var(--tt-pl-bev-j-cream);
	font-family: var(--tt-pl-bev-j-sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
	border-radius: 0; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tt-el-wc-ca-btn--ghost { background: transparent; color: var(--tt-pl-bev-j-olive); }
@media (hover: hover) { .tt-el-wc-ca-btn--ghost:hover { background: var(--tt-pl-bev-j-olive); color: var(--tt-pl-bev-j-cream); } }
.tt-el-wc-ca-link {
	display: inline-block; min-height: 36px; padding: 8px 0; border: 0; background: none; cursor: pointer;
	font-family: var(--tt-pl-bev-j-sans); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--tt-pl-bev-j-soft);
	text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 4px;
}
.tt-el-wc-ca-cont { display: block; margin: 13px auto 0; text-align: center; }
.tt-el-wc-ca-wrap, .tt-el-wc-ty-wrap { width: 100%; max-width: 34rem; margin: 0 auto; font-family: var(--tt-pl-bev-j-sans); color: var(--tt-pl-bev-j-ink); }
.tt-el-wc-ca-lines { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--tt-pl-bev-j-hair); }
.tt-el-wc-ca-line {
	display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 13px; padding: 21px 0; border-bottom: 0.5px solid var(--tt-pl-bev-j-hair);
	overflow: hidden; max-height: 480px; transition: opacity 0.3s var(--tt-pl-bev-j-ease), max-height 0.42s var(--tt-pl-bev-j-ease), padding 0.42s var(--tt-pl-bev-j-ease);
}
.tt-el-wc-ca-line.is-out { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
.tt-el-wc-ca-thumb { width: 76px; aspect-ratio: 1; border: 0.5px solid var(--tt-pl-bev-j-hair); padding: 5px; background: var(--tt-pl-bev-j-card); }
.tt-el-wc-ca-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-el-wc-ca-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tt-el-wc-ca-name { margin: 0; font-family: var(--tt-pl-bev-j-serif); font-weight: 500; font-size: 1.1875rem; line-height: 1.2; }
.tt-el-wc-ca-name a { color: inherit; text-decoration: none; }
.tt-el-wc-ca-unit { font-size: 0.8125rem; color: var(--tt-pl-bev-j-soft); white-space: nowrap; }
.tt-el-wc-ca-fr { margin: 2px 0 0; font-family: var(--tt-pl-bev-j-script); font-size: 1.0625rem; color: var(--tt-pl-bev-j-olive); line-height: 1.2; }
.tt-el-wc-ca-opts { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ca-note { margin: 3px 0 0; font-family: var(--tt-pl-bev-j-serif); font-style: italic; font-size: 0.9375rem; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ca-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.tt-el-wc-ca-total { font-size: 0.9375rem; white-space: nowrap; transition: opacity 0.2s; }
.tt-el-wc-ca-line.is-busy .tt-el-wc-ca-total { opacity: 0.35; }
.tt-el-wc-ca-qty { display: inline-flex; align-items: center; height: 36px; border: 0.5px solid var(--tt-pl-bev-j-field); }
.tt-el-wc-ca-qty button { width: 36px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.0625rem; color: var(--tt-pl-bev-j-ink); border-radius: 0; }
.tt-el-wc-ca-qty button:disabled { color: var(--tt-pl-bev-j-faint); cursor: default; }
.tt-el-wc-ca-qty output { min-width: 28px; text-align: center; font-size: 16px; }
.tt-el-wc-ca-totals { margin-top: 21px; }
.tt-el-wc-ca-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 0.875rem; }
.tt-el-wc-ca-row span:first-child { color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ca-row--total { border-top: 0.5px solid var(--tt-pl-bev-j-hair); margin-top: 8px; padding-top: 13px; font-size: 1rem; }
.tt-el-wc-ca-row--total strong { font-family: var(--tt-pl-bev-j-serif); font-weight: 500; font-size: 1.375rem; }
.tt-el-wc-ca-empty { text-align: center; }
.tt-el-wc-ca-empty__msg { margin: 0 auto; max-width: 26ch; font-family: var(--tt-pl-bev-j-serif); font-size: 1.25rem; line-height: 1.45; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ca-toast {
	position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); z-index: 100002;
	display: flex; gap: 21px; align-items: center; padding: 13px 21px; max-width: calc(100% - 26px);
	background: var(--tt-pl-bev-j-ink); color: rgb(244, 245, 240); font-size: 0.8125rem;
	transform: translate(-50%, 0); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--tt-pl-bev-j-ease);
}
.tt-el-wc-ca-toast.is-on { opacity: 1; pointer-events: auto; }
.tt-el-wc-ca-toast button { border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* Thank you */
.tt-el-wc-ty-wrap { text-align: left; }
.tt-el-wc-ty-no { margin: 0 0 8px; text-align: center; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-msg { margin: 0 auto; max-width: 30ch; text-align: center; font-family: var(--tt-pl-bev-j-serif); font-size: 1.25rem; line-height: 1.45; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-msg--failed { color: var(--tt-pl-bev-j-warn); }
.tt-el-wc-ty-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 0; border-top: 0.5px solid var(--tt-pl-bev-j-hair); }
.tt-el-wc-ty-facts div { padding: 13px 13px 13px 0; border-bottom: 0.5px solid var(--tt-pl-bev-j-hair); min-width: 0; }
.tt-el-wc-ty-facts dt, .tt-el-wc-ty-label { margin: 0; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-facts dd { margin: 3px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.tt-el-wc-ty-label { margin-top: 34px; margin-bottom: 8px; }
.tt-el-wc-ty-gateway:empty { display: none; }
.tt-el-wc-ty-gateway { margin-top: 21px; font-size: 0.875rem; }
.tt-el-wc-ty-lines .tt-el-wc-ca-line { grid-template-columns: 52px minmax(0, 1fr); padding: 13px 0; }
.tt-el-wc-ty-lines .tt-el-wc-ca-thumb { width: 52px; }
.tt-el-wc-ty-addr p { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.6; }

/* Checkout and order pay: WooCommerce's form, in the demo's look */
.tt-tp-bev-checkout, .tt-tp-bev-pay { font-family: var(--tt-pl-bev-j-sans); }
.tt-tp-bev-checkout .form-row label, .tt-tp-bev-pay .form-row label {
	font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tt-pl-bev-j-soft);
}
.tt-tp-bev-checkout input.input-text, .tt-tp-bev-checkout select, .tt-tp-bev-checkout textarea,
.tt-tp-bev-pay input.input-text, .tt-tp-bev-pay select, .tt-tp-bev-pay textarea {
	width: 100%; min-height: 44px; padding: 8px 0; font-size: 16px; font-family: var(--tt-pl-bev-j-sans);
	border: 0; border-bottom: 1px solid var(--tt-pl-bev-j-field); border-radius: 0; background: transparent; box-shadow: none;
}
.tt-tp-bev-checkout textarea { min-height: 72px; }
.tt-tp-bev-checkout input.input-text:focus, .tt-tp-bev-checkout textarea:focus { outline: none; border-bottom-color: var(--tt-pl-bev-j-ink); }
.tt-tp-bev-checkout .woocommerce-invalid input.input-text, .tt-tp-bev-checkout .woocommerce-invalid select { border-bottom-color: var(--tt-pl-bev-j-warn); }
.tt-tp-bev-checkout .select2-container .select2-selection--single { height: 44px; border: 0; border-bottom: 1px solid var(--tt-pl-bev-j-field); border-radius: 0; background: transparent; }
.tt-tp-bev-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 0; font-size: 16px; }
.tt-tp-bev-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.tt-tp-bev-checkout #place_order, .tt-tp-bev-pay #place_order, .tt-tp-bev-checkout .tt-pl-bev-next {
	width: 100%; min-height: 50px; margin-top: 21px; border: 1px solid var(--tt-pl-bev-j-olive); border-radius: 0;
	background: var(--tt-pl-bev-j-olive); color: var(--tt-pl-bev-j-cream);
	font-family: var(--tt-pl-bev-j-sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
}
.tt-tp-bev-checkout .wc_payment_methods { list-style: none; margin: 0; padding: 0; }
.tt-tp-bev-checkout .wc_payment_method { padding: 13px 0; border-bottom: 0.5px solid var(--tt-pl-bev-j-hair); }
.tt-tp-bev-checkout .wc_payment_method > label { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tt-tp-bev-checkout .payment_box { margin-top: 8px; font-size: 0.8125rem; color: var(--tt-pl-bev-j-soft); background: none; padding: 0; }
.tt-tp-bev-checkout table.shop_table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tt-tp-bev-checkout table.shop_table th, .tt-tp-bev-checkout table.shop_table td { padding: 8px 0; border-bottom: 0.5px solid var(--tt-pl-bev-j-hair); text-align: left; }
.tt-tp-bev-checkout table.shop_table td:last-child, .tt-tp-bev-checkout table.shop_table th:last-child { text-align: right; }
.tt-tp-bev-checkout dl.variation, .tt-tp-bev-pay dl.variation { margin: 3px 0 0; font-size: 0.8125rem; color: var(--tt-pl-bev-j-soft); }

/* Checkout in two steps (set by tt-pl-bev-journey.js on phones and desktops alike) */
.tt-tp-bev-checkout[data-tt-step="1"] .brxe-woocommerce-checkout-order-review { display: none; }
.tt-tp-bev-checkout[data-tt-step="2"] .brxe-woocommerce-checkout-customer-details,
.tt-tp-bev-checkout[data-tt-step="2"] .tt-pl-bev-next { display: none; }
.tt-tp-bev-checkout .tt-pl-bev-back { margin-bottom: 13px; }

@media (prefers-reduced-motion: reduce) {
	.tt-el-wc-ca-line, .tt-el-wc-ca-toast { transition: none; }
}

/* Thank you as a till receipt (Tư-Trà Thank You v2), straddling the band as
   the newsroom's regular hero photo: the green strip reaches down behind the
   receipt's top (--tt-tp-bev-receipt-cut). */
.tt-tp-bev-straddle-host--receipt { --tt-tp-bev-receipt-cut: 233px; }
.tt-tp-bev-straddle-host--receipt .tt-tp-bev-straddle > .tt-tp-bev-straddle__band { bottom: auto; height: var(--tt-tp-bev-receipt-cut); }
.tt-el-wc-ty-rc {
	position: relative; width: 100%; max-width: 22rem; margin: 0 auto; padding: 34px 21px 55px;
	background: rgb(252, 251, 247); color: var(--tt-pl-bev-j-ink);
	font-family: var(--tt-pl-bev-j-sans); font-size: 0.75rem; line-height: 1.55; letter-spacing: 0.06em; text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(35, 31, 32, 0.06), 0 21px 34px -13px rgba(35, 31, 32, 0.22);
	/* torn bottom edge */
	-webkit-mask: linear-gradient(black 0 0) top / 100% calc(100% - 8px) no-repeat,
		conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) bottom / 13px 8px repeat-x;
	mask: linear-gradient(black 0 0) top / 100% calc(100% - 8px) no-repeat,
		conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) bottom / 13px 8px repeat-x;
}
.tt-el-wc-ty-rc p { margin: 0; }
.tt-el-wc-ty-rc__brand { text-align: center; font-size: 1.375rem; font-weight: 400; letter-spacing: 0.28em; }
.tt-el-wc-ty-rc__addr { margin-top: 8px !important; text-align: center; font-size: 0.6875rem; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-rc__dash, .tt-el-wc-ty-rc__dots { border: 0; margin: 21px 0; height: 0; }
.tt-el-wc-ty-rc__dash { border-top: 1px dashed rgba(35, 31, 32, 0.45); }
.tt-el-wc-ty-rc__dots { border-top: 2px dotted rgba(35, 31, 32, 0.55); }
.tt-el-wc-ty-rc__meta { display: flex; justify-content: space-between; gap: 13px; }
.tt-el-wc-ty-rc__meta p:last-child { text-align: right; }
.tt-el-wc-ty-rc__row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 13px; align-items: baseline; }
.tt-el-wc-ty-rc__head { margin-bottom: 8px; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-rc__item { padding: 5px 0; }
.tt-el-wc-ty-rc__item b { display: block; font-weight: 400; }
.tt-el-wc-ty-rc__item small { display: block; margin-top: 2px; font-size: 0.6875rem; text-transform: none; letter-spacing: 0.02em; color: var(--tt-pl-bev-j-soft); }
.tt-el-wc-ty-rc__item span:last-child { white-space: nowrap; text-align: right; }
.tt-el-wc-ty-rc__sums { margin-top: 21px; }
.tt-el-wc-ty-rc__sum { display: flex; justify-content: space-between; gap: 13px; padding: 2px 0; }
.tt-el-wc-ty-rc__total { font-size: 0.875rem; font-weight: 600; }
.tt-el-wc-ty-rc__to { margin-top: 34px; text-transform: none; letter-spacing: 0.02em; font-size: 0.8125rem; }
.tt-el-wc-ty-rc__label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6875rem; color: var(--tt-pl-bev-j-soft); margin-bottom: 5px !important; }
.tt-el-wc-ty-rc__note { font-family: var(--tt-pl-bev-j-serif); font-style: italic; text-transform: none; }
.tt-el-wc-ty-rc__foot { margin-top: 34px !important; text-align: center; color: var(--tt-pl-bev-j-soft); font-size: 0.6875rem; letter-spacing: 0.2em; }
.tt-el-wc-ty-wrap .tt-el-wc-ty-msg { margin-top: 34px; }

/* Checkout fields: the underline draws itself in on focus (olive, left to right). */
.tt-tp-bev-checkout input.input-text, .tt-tp-bev-checkout textarea, .tt-tp-bev-pay input.input-text {
	background-image: linear-gradient(var(--tt-pl-bev-j-olive), var(--tt-pl-bev-j-olive));
	background-repeat: no-repeat; background-position: left bottom; background-size: 0 1.5px;
	transition: background-size 0.42s var(--tt-pl-bev-j-ease), border-color 0.2s;
}
.tt-tp-bev-checkout input.input-text:focus, .tt-tp-bev-checkout textarea:focus, .tt-tp-bev-pay input.input-text:focus {
	background-size: 100% 1.5px; border-bottom-color: transparent;
}
.tt-tp-bev-checkout .form-row { margin: 0 0 21px; }
@media (prefers-reduced-motion: reduce) {
	.tt-tp-bev-checkout input.input-text, .tt-tp-bev-checkout textarea, .tt-tp-bev-pay input.input-text { transition: none; }
}
