/* ==========================================================================
   TrooRa checkout — goop-style layout for the classic WooCommerce checkout.
   Loaded only on the checkout form page (see inc/troora-checkout.php).
   Scoped to body.troora-checkout so nothing here leaks to other pages.
   ========================================================================== */

/* Acumin Pro Wide Semibold – the cut troora.com uses for labels. */
@font-face {
	font-family: "Acumin Pro Wide";
	src: url("../fonts/acumin-pro-wide-semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* Acumin Pro – the same Regular cut troora.com serves (self-hosted; only downloaded when text uses it). */
@font-face {
	font-family: "Acumin Pro";
	src: url("../fonts/acumin-pro.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body.troora-checkout {
	--tr-bg: #F3EFE9;
	--tr-bg-summary: #ECE7DF;
	--tr-bg-soft: #F8F6F2;
	--tr-ink: #0A0A0A;
	--tr-muted: #6E6862;
	--tr-line: rgba(10, 10, 10, 0.14);
	--tr-line-strong: rgba(10, 10, 10, 0.34);
	--tr-field-bg: #FFFFFF;
	--tr-tan: #A7998A; /* TrooRa Tan */
	--tr-accent: #C47829; /* brand primary – Pay now / Apply hover, link hover */
	--tr-error: #C6382C;
	--tr-radius: 6px;
	--tr-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--tr-sans: "Work Sans", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--tr-field-h: 52px;

	background: var(--tr-bg);
	color: var(--tr-ink);
	font-family: var(--tr-sans);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Strip the theme chrome: full-bleed canvas, no stray widgets
   -------------------------------------------------------------------------- */

body.troora-checkout .wd-page-wrapper,
body.troora-checkout .wd-page-content,
body.troora-checkout main#main-content,
body.troora-checkout .wd-content-area,
body.troora-checkout article.entry-content,
body.troora-checkout article.entry-content > .woocommerce {
	background: transparent;
	max-width: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.troora-checkout .wd-page-title,
body.troora-checkout .wd-checkout-steps,
body.troora-checkout .woocommerce-form-coupon-toggle,
body.troora-checkout form.checkout_coupon,
body.troora-checkout form.login.hidden-form,
body.troora-checkout .uwpmc-widget-container,
body.troora-checkout a.scrollToTop,
body.troora-checkout .wd-toolbar,
body.troora-checkout .wd-skip-links {
	display: none !important;
}

body.troora-checkout a {
	color: var(--tr-ink);
}

body.troora-checkout a:hover {
	color: var(--tr-accent);
}

body.troora-checkout ::selection {
	background: rgba(196, 120, 41, 0.25);
}

/* --------------------------------------------------------------------------
   Two-column frame
   -------------------------------------------------------------------------- */

/*
 * The summary column's tint is painted on the page wrapper, so it runs the
 * full viewport height and stays continuous when notices are printed above
 * the form. The split sits on the form's 55% column boundary: the form is
 * 1240px wide and centred once the viewport is wider than that.
 */
body.troora-checkout {
	--tr-split: min(55%, calc(50% + 62px));
}

body.troora-checkout .wd-page-content {
	min-height: 100vh;
	background: linear-gradient(
		to right,
		var(--tr-bg) 0,
		var(--tr-bg) var(--tr-split),
		var(--tr-line) var(--tr-split),
		var(--tr-line) calc(var(--tr-split) + 1px),
		var(--tr-bg-summary) calc(var(--tr-split) + 1px)
	);
}

body.troora-checkout form.checkout.woocommerce-checkout {
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-columns: 55% 45%;
	gap: 0; /* Woodmart's flex form sets gap:30px, which grid would honour */
	align-items: start;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

body.troora-checkout form.checkout.woocommerce-checkout > .tr-main {
	grid-column: 1;
	order: 0; /* Woodmart gives extra form children order:-1 */
	flex: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin-left: auto;
	padding: 26px 56px 40px 24px;
}

/* Woodmart styles this box via :is(…, #order_review), i.e. with ID specificity – hence the !importants. */
body.troora-checkout form.checkout.woocommerce-checkout > .checkout-order-review {
	grid-column: 2;
	grid-row: 1 / span 2; /* keeps the sticky area full-height even when an error notice adds a row above .tr-main */
	position: sticky !important;
	top: var(--tr-sticky-top, 0px); /* JS: negative when the column is taller than the window, so its bottom pins instead of being cut off */
	align-self: start;
	flex: none;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 500px !important;
	margin: 0;
	padding: 26px 24px 0 48px !important;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.troora-checkout form.checkout.woocommerce-checkout > .checkout-order-review::before,
body.troora-checkout form.checkout.woocommerce-checkout > .checkout-order-review::after {
	content: none !important;
	display: none !important;
}

/* Checkout errors injected by WooCommerce (prepended to the form) sit above the form column. */
body.troora-checkout form.checkout .woocommerce-NoticeGroup-checkout {
	grid-column: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin: 44px 0 -28px auto;
	padding: 0 56px 0 24px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

body.troora-checkout .tr-section {
	margin: 0 0 36px;
}

body.troora-checkout .tr-section-title,
body.troora-checkout .woocommerce-billing-fields > h3,
body.troora-checkout .woocommerce-shipping-fields > h3,
body.troora-checkout .woocommerce-additional-fields > h3,
body.troora-checkout h3#order_review_heading {
	margin: 0 0 16px;
	font-family: var(--tr-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.005em;
	text-transform: none;
	color: var(--tr-ink);
}

body.troora-checkout .tr-section-note {
	margin: -8px 0 16px;
	font-size: 13px;
	color: var(--tr-muted);
}

body.troora-checkout .woocommerce-billing-fields,
body.troora-checkout .woocommerce-account-fields,
body.troora-checkout .woocommerce-shipping-fields,
body.troora-checkout .woocommerce-additional-fields {
	margin: 0 0 36px;
}

body.troora-checkout .woocommerce-account-fields {
	margin-top: -20px;
}

/* --------------------------------------------------------------------------
   Express checkout (Stripe: Apple Pay / Google Pay / Link)
   -------------------------------------------------------------------------- */

body.troora-checkout #wc-stripe-express-checkout-element {
	margin: 0;
}

/* The wrapper is a wrapping flex row (Stripe's CSS); the label takes a full row above the buttons. */
body.troora-checkout #wc-stripe-express-checkout-element:not(:empty)::before {
	content: "Express checkout";
	display: block;
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 2px;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	color: var(--tr-muted);
}

body.troora-checkout #wc-stripe-express-checkout-element > * {
	min-width: 0;
}

body.troora-checkout #wc-stripe-express-checkout-button-separator {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 26px 0 34px !important;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tr-muted);
	text-align: center;
}

body.troora-checkout #wc-stripe-express-checkout-button-separator::before,
body.troora-checkout #wc-stripe-express-checkout-button-separator::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--tr-line);
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

body.troora-checkout .tr-fields,
body.troora-checkout .woocommerce-billing-fields__field-wrapper,
body.troora-checkout .woocommerce-shipping-fields__field-wrapper,
body.troora-checkout .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

body.troora-checkout .tr-main .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.troora-checkout .tr-main .form-row-first,
body.troora-checkout .tr-main .form-row-last {
	grid-column: span 3;
}

body.troora-checkout .tr-main #billing_city_field,
body.troora-checkout .tr-main #billing_state_field,
body.troora-checkout .tr-main #billing_postcode_field,
body.troora-checkout .tr-main #shipping_city_field,
body.troora-checkout .tr-main #shipping_state_field,
body.troora-checkout .tr-main #shipping_postcode_field {
	grid-column: span 2;
}

/*
 * Town / State / Postcode share one row, but WooCommerce hides some of them in
 * some countries (no postcode in the UAE, no state in the UK…). The JS counts
 * what is visible and tags the wrapper so the survivors fill the row.
 */
body.troora-checkout .tr-main .tr-addr-2 #billing_city_field,
body.troora-checkout .tr-main .tr-addr-2 #billing_state_field,
body.troora-checkout .tr-main .tr-addr-2 #billing_postcode_field,
body.troora-checkout .tr-main .tr-addr-2 #shipping_city_field,
body.troora-checkout .tr-main .tr-addr-2 #shipping_state_field,
body.troora-checkout .tr-main .tr-addr-2 #shipping_postcode_field {
	grid-column: span 3;
}

body.troora-checkout .tr-main .tr-addr-1 #billing_city_field,
body.troora-checkout .tr-main .tr-addr-1 #billing_state_field,
body.troora-checkout .tr-main .tr-addr-1 #billing_postcode_field,
body.troora-checkout .tr-main .tr-addr-1 #shipping_city_field,
body.troora-checkout .tr-main .tr-addr-1 #shipping_state_field,
body.troora-checkout .tr-main .tr-addr-1 #shipping_postcode_field {
	grid-column: 1 / -1;
}

body.troora-checkout .tr-main .form-row .woocommerce-input-wrapper {
	display: block;
}

body.troora-checkout .tr-main .form-row input.input-text,
body.troora-checkout .tr-main .form-row textarea,
body.troora-checkout .tr-main .form-row select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: var(--tr-field-h);
	min-height: var(--tr-field-h);
	margin: 0;
	padding: 20px 14px 6px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	color: var(--tr-ink);
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	box-shadow: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.troora-checkout .tr-main .form-row textarea {
	height: auto;
	min-height: 120px;
	padding-top: 26px;
	line-height: 1.5;
	resize: vertical;
}

body.troora-checkout .tr-main .form-row select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230A0A0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 12px;
}

body.troora-checkout .tr-main .form-row input.input-text::placeholder,
body.troora-checkout .tr-main .form-row textarea::placeholder {
	color: transparent;
}

body.troora-checkout .tr-main .form-row input.input-text:hover,
body.troora-checkout .tr-main .form-row textarea:hover,
body.troora-checkout .tr-main .form-row select:hover {
	border-color: var(--tr-line-strong);
}

body.troora-checkout .tr-main .form-row input.input-text:focus,
body.troora-checkout .tr-main .form-row textarea:focus,
body.troora-checkout .tr-main .form-row select:focus {
	border-color: var(--tr-ink);
	box-shadow: 0 0 0 1px var(--tr-ink);
	background: var(--tr-field-bg);
	outline: none;
}

/* Autofill: keep the white field and let the JS know (animationstart). */
@keyframes trAutofill {
	from { opacity: 1; }
	to { opacity: 1; }
}

body.troora-checkout .tr-main .form-row input.input-text:-webkit-autofill {
	animation-name: trAutofill;
	animation-duration: 0.01s;
	-webkit-box-shadow: 0 0 0 1000px var(--tr-field-bg) inset;
	-webkit-text-fill-color: var(--tr-ink);
	caret-color: var(--tr-ink);
}

/* Helper line under a field (gift recipient email) */
body.troora-checkout .tr-main .form-row .description {
	display: block;
	margin: 6px 2px 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--tr-muted);
}

body.troora-checkout .tr-main #gift_message_field textarea {
	min-height: 96px;
}

/* Floating labels ------------------------------------------------------- */

body.troora-checkout .tr-main .form-row.tr-float {
	position: relative;
}

body.troora-checkout .tr-main .form-row.tr-float > label {
	position: absolute;
	z-index: 2;
	top: 19px;
	left: 15px;
	right: 15px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 14px;
	letter-spacing: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-transform: none;
	color: var(--tr-muted);
	pointer-events: none;
	transform-origin: left top;
	transition: top 0.14s ease, font-size 0.14s ease;
}

body.troora-checkout .tr-main .form-row.tr-float.tr-filled > label,
body.troora-checkout .tr-main .form-row.tr-float:focus-within > label,
body.troora-checkout .tr-main .form-row.tr-float.tr-select > label {
	top: 8px;
	font-size: 11px;
	line-height: 12px;
	letter-spacing: 0.01em;
}

body.troora-checkout .tr-main .form-row.tr-float.tr-textarea > label {
	top: 12px;
}

body.troora-checkout .tr-main .form-row.tr-float.tr-textarea.tr-filled > label,
body.troora-checkout .tr-main .form-row.tr-float.tr-textarea:focus-within > label {
	top: 10px;
}

body.troora-checkout .tr-main .form-row label abbr.required,
body.troora-checkout .tr-main .form-row label span.required,
body.troora-checkout .tr-main .form-row label .required {
	display: none !important;
}

body.troora-checkout .tr-main .form-row label .optional {
	position: static;
	top: auto;
	display: inline;
	vertical-align: baseline;
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* Select2 (country / state) --------------------------------------------- */

body.troora-checkout .tr-main .select2-container {
	display: block;
	width: 100% !important;
}

body.troora-checkout .tr-main .select2-container .select2-selection--single {
	box-sizing: border-box;
	height: var(--tr-field-h);
	min-height: var(--tr-field-h);
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.troora-checkout .tr-main .select2-container .select2-selection--single:hover {
	border-color: var(--tr-line-strong);
}

body.troora-checkout .tr-main .select2-container--focus .select2-selection--single,
body.troora-checkout .tr-main .select2-container--open .select2-selection--single {
	border-color: var(--tr-ink);
	box-shadow: 0 0 0 1px var(--tr-ink);
}

body.troora-checkout .tr-main .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 20px 40px 0 14px;
	line-height: 24px;
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 500;
	color: var(--tr-ink);
}

body.troora-checkout .tr-main .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 6px;
	height: 100%;
	width: 28px;
}

body.troora-checkout .tr-main .select2-container .select2-selection--single .select2-selection__arrow b {
	border-color: var(--tr-ink) transparent transparent transparent;
	border-width: 5px 4px 0 4px;
	margin-top: -2px;
}

body.troora-checkout .tr-main .select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent var(--tr-ink) transparent;
	border-width: 0 4px 5px 4px;
}

body.troora-checkout .tr-main .select2-container .select2-selection--single .select2-selection__clear {
	display: none;
}

body.troora-checkout .select2-dropdown {
	border: 1px solid var(--tr-line-strong);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
	overflow: hidden;
	font-family: var(--tr-sans);
}

body.troora-checkout .select2-dropdown .select2-search--dropdown {
	padding: 8px;
}

body.troora-checkout .select2-dropdown .select2-search__field {
	box-sizing: border-box;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--tr-line);
	border-radius: 4px;
	font-family: var(--tr-sans);
	font-size: 14px;
	color: var(--tr-ink);
	outline: none;
}

body.troora-checkout .select2-dropdown .select2-results__option {
	padding: 9px 14px;
	font-size: 14px;
	color: var(--tr-ink);
}

body.troora-checkout .select2-dropdown .select2-results__option--highlighted[aria-selected],
body.troora-checkout .select2-dropdown .select2-results__option--highlighted[data-selected] {
	background: var(--tr-bg);
	color: var(--tr-ink);
}

body.troora-checkout .select2-dropdown .select2-results__option[aria-selected="true"],
body.troora-checkout .select2-dropdown .select2-results__option[data-selected="true"] {
	background: var(--tr-ink);
	color: #fff;
}

/* Validation ------------------------------------------------------------ */

body.troora-checkout .tr-main .form-row.woocommerce-invalid input.input-text,
body.troora-checkout .tr-main .form-row.woocommerce-invalid textarea,
body.troora-checkout .tr-main .form-row.woocommerce-invalid select,
body.troora-checkout .tr-main .form-row.woocommerce-invalid .select2-container .select2-selection--single {
	border-color: var(--tr-error);
	box-shadow: 0 0 0 1px var(--tr-error);
}

body.troora-checkout .tr-main .form-row.woocommerce-invalid > label {
	color: var(--tr-error);
}

body.troora-checkout .tr-main .form-row.woocommerce-validated input.input-text,
body.troora-checkout .tr-main .form-row.woocommerce-validated textarea,
body.troora-checkout .tr-main .form-row.woocommerce-validated select,
body.troora-checkout .tr-main .form-row.woocommerce-validated .select2-container .select2-selection--single {
	border-color: var(--tr-line);
}

body.troora-checkout .tr-main .form-row .checkout-inline-error-message {
	display: block;
	margin: 6px 2px 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--tr-error);
}

/* Checkboxes ------------------------------------------------------------ */

body.troora-checkout .tr-main .form-row.tr-no-float,
body.troora-checkout .tr-main h3#ship-to-different-address {
	display: block;
}

body.troora-checkout .tr-main label.checkbox,
body.troora-checkout .tr-main label.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tr-ink);
}

body.troora-checkout .tr-main h3#ship-to-different-address {
	margin: 0 0 16px;
	font-family: var(--tr-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--tr-ink);
}

body.troora-checkout .tr-main h3#ship-to-different-address label {
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 400;
}

body.troora-checkout .tr-main input[type="checkbox"] {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--tr-line-strong);
	border-radius: 4px;
	background: var(--tr-field-bg);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	vertical-align: middle;
	position: relative;
	top: 0;
	transition: background 0.12s ease, border-color 0.12s ease;
}

body.troora-checkout .tr-main input[type="checkbox"]:checked {
	border-color: var(--tr-ink);
	background: var(--tr-ink) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

body.troora-checkout .tr-main input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--tr-ink);
}

body.troora-checkout .tr-main input[type="checkbox"]::before,
body.troora-checkout .tr-main input[type="checkbox"]::after {
	display: none;
}

body.troora-checkout .tr-main .form-row.create-account,
body.troora-checkout .tr-main .woocommerce-account-fields .form-row {
	margin: 0;
}

body.troora-checkout .tr-main .shipping_address {
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Payment
   -------------------------------------------------------------------------- */

body.troora-checkout .tr-payment .cuw-offers {
	margin: 0 0 20px;
}

body.troora-checkout .tr-main #payment,
body.troora-checkout .tr-main #payment.woocommerce-checkout-payment {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.troora-checkout .tr-main #payment ul.wc_payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	overflow: hidden;
}

body.troora-checkout .tr-main #payment ul.wc_payment_methods li.wc_payment_method,
body.troora-checkout .tr-main #payment ul.wc_payment_methods li.woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--tr-line);
	background: transparent;
	list-style: none;
}

body.troora-checkout .tr-main #payment ul.wc_payment_methods li:first-child {
	border-top: 0;
}

body.troora-checkout .tr-main #payment ul.wc_payment_methods li.woocommerce-notice {
	display: block;
	padding: 16px;
	font-size: 14px;
	color: var(--tr-ink);
}

body.troora-checkout .tr-main #payment li.wc_payment_method > input.input-radio {
	order: 0;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0 -4px 0 16px;
	padding: 0;
	border: 1px solid var(--tr-line-strong);
	border-radius: 50%;
	background: var(--tr-field-bg);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	position: static;
	opacity: 1;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

body.troora-checkout .tr-main #payment li.wc_payment_method > input.input-radio:checked {
	border: 6px solid var(--tr-ink);
}

body.troora-checkout .tr-main #payment li.wc_payment_method > input.input-radio:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--tr-ink);
}

body.troora-checkout .tr-main #payment li.wc_payment_method > label {
	order: 1;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 17px 16px;
	cursor: pointer;
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--tr-ink);
	text-transform: none;
	letter-spacing: 0;
}

body.troora-checkout .tr-main #payment li.wc_payment_method > label::before,
body.troora-checkout .tr-main #payment li.wc_payment_method > label::after {
	display: none;
}

body.troora-checkout .tr-main #payment li.wc_payment_method > label img,
body.troora-checkout .tr-main #payment li.wc_payment_method > label .stripe-icons,
body.troora-checkout .tr-main #payment li.wc_payment_method > label .stripe-credit-card-brand,
body.troora-checkout .tr-main #payment li.wc_payment_method > label .stripe-icon {
	margin-left: auto;
	max-height: 22px;
	width: auto;
}

body.troora-checkout .tr-main #payment li.wc_payment_method > label a {
	font-size: 12px;
	color: var(--tr-muted);
}

body.troora-checkout .tr-main #payment div.payment_box {
	order: 2;
	flex: 0 0 100%;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 18px 16px 20px;
	border: 0;
	border-top: 1px solid var(--tr-line);
	border-radius: 0;
	background: var(--tr-bg-soft);
	color: var(--tr-ink);
	font-size: 13px;
	box-shadow: none;
}

body.troora-checkout .tr-main #payment div.payment_box::before,
body.troora-checkout .tr-main #payment div.payment_box::after {
	display: none;
}

body.troora-checkout .tr-main #payment div.payment_box p {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--tr-muted);
}

body.troora-checkout .tr-main #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

body.troora-checkout .tr-main #payment div.payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

body.troora-checkout .tr-main #payment .wc-stripe-upe-element,
body.troora-checkout .tr-main #payment .StripeElement {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.troora-checkout .tr-main #payment .woocommerce-SavedPaymentMethods {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

body.troora-checkout .tr-main #payment .woocommerce-SavedPaymentMethods li {
	margin: 0 0 8px;
	font-size: 13px;
}

body.troora-checkout .tr-main #payment .woocommerce-SavedPaymentMethods label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

body.troora-checkout .tr-main #payment .woocommerce-SavedPaymentMethods input {
	margin: 0;
}

body.troora-checkout .tr-main #payment .wc-stripe-save-source,
body.troora-checkout .tr-main #payment .wc-stripe-save-new-payment-method {
	margin-top: 12px;
}

body.troora-checkout .tr-main #payment .place-order,
body.troora-checkout .tr-main #payment .form-row.place-order {
	display: block;
	margin: 24px 0 0;
	padding: 0;
	width: auto;
}

body.troora-checkout .tr-main #payment .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

body.troora-checkout .tr-main #payment .woocommerce-privacy-policy-text p,
body.troora-checkout .tr-main #payment .woocommerce-terms-and-conditions-wrapper p {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--tr-muted);
}

body.troora-checkout .tr-main #payment .woocommerce-privacy-policy-text a,
body.troora-checkout .tr-main #payment .woocommerce-terms-and-conditions-wrapper a {
	color: var(--tr-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.troora-checkout .tr-main #payment .woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
	margin-top: 8px;
}

body.troora-checkout .tr-main #payment .woocommerce-terms-and-conditions {
	margin: 0 0 12px;
	padding: 14px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	font-size: 12.5px;
}

/* Pay now --------------------------------------------------------------- */

body.troora-checkout .tr-main #payment button#place_order,
body.troora-checkout .tr-main #payment button#place_order.button.alt {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: var(--tr-radius);
	background-color: var(--tr-ink);
	color: #fff;
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 56px;
	letter-spacing: 0.02em;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

body.troora-checkout .tr-main #payment button#place_order:hover,
body.troora-checkout .tr-main #payment button#place_order:focus-visible {
	background-color: var(--tr-accent) !important;
	color: #fff !important;
	outline: none;
}

body.troora-checkout .tr-main #payment button#place_order:active {
	transform: translateY(1px);
}

body.troora-checkout .tr-main #payment button#place_order:disabled,
body.troora-checkout .tr-main #payment button#place_order.disabled {
	opacity: 0.55;
	cursor: default;
	background-color: var(--tr-ink) !important;
}

/* --------------------------------------------------------------------------
   Footer links
   -------------------------------------------------------------------------- */

body.troora-checkout .tr-footer {
	margin: 44px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--tr-line);
}

body.troora-checkout .tr-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

body.troora-checkout .tr-footer-links a {
	font-size: 12.5px;
	color: var(--tr-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(10, 10, 10, 0.25);
	transition: color 0.15s ease;
}

body.troora-checkout .tr-footer-links a:hover {
	color: var(--tr-accent);
	text-decoration-color: currentColor;
}

body.troora-checkout .tr-footer-copy {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--tr-muted);
}

/* --------------------------------------------------------------------------
   Order summary (right column)
   -------------------------------------------------------------------------- */

body.troora-checkout .tr-summary-head {
	margin: 0 0 30px;
}

body.troora-checkout .tr-logo {
	display: inline-block;
	line-height: 0;
}

body.troora-checkout .tr-logo img {
	display: block;
	width: 152px;
	height: auto;
}

body.troora-checkout .tr-summary-toggle {
	display: none;
}

body.troora-checkout h3#order_review_heading {
	display: none;
}

body.troora-checkout .checkout-order-review #order_review {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.troora-checkout .checkout-order-review .wd-table-wrapper,
body.troora-checkout .checkout-order-review > .woocommerce-checkout-review-order .wd-table-wrapper {
	margin: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.troora-checkout .checkout-order-review::before,
body.troora-checkout .checkout-order-review::after,
body.troora-checkout .checkout-order-review #order_review::before,
body.troora-checkout .checkout-order-review #order_review::after {
	display: none;
}

/* Woodmart lays the review table out as a flex column (each tr is a flex row); we keep that model. */
body.troora-checkout table.woocommerce-checkout-review-order-table {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	margin: 0;
	border: 0;
	border-spacing: 0;
	background: transparent;
	font-family: var(--tr-sans);
	font-size: 14px;
	color: var(--tr-ink);
	pointer-events: auto;
}

body.troora-checkout table.woocommerce-checkout-review-order-table thead {
	display: none !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tbody,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot {
	display: flex !important;
	flex-direction: column;
	width: 100%;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: transparent;
}

body.troora-checkout table.woocommerce-checkout-review-order-table th,
body.troora-checkout table.woocommerce-checkout-review-order-table td {
	display: block !important;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: transparent;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tr-ink);
}

body.troora-checkout table.woocommerce-checkout-review-order-table th {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

body.troora-checkout table.woocommerce-checkout-review-order-table td {
	flex: 0 0 auto;
	text-align: right;
}

/* Items */
body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item {
	align-items: center;
	padding: 0 0 18px;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 500;
	font-size: 14px;
	color: var(--tr-ink);
}

body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total .woocommerce-Price-amount {
	font-weight: 500;
	color: var(--tr-ink);
}

/* Line total + remove (×) */
body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
	display: flex !important;
	align-items: center;
	gap: 12px;
}

body.troora-checkout .tr-remove-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	border: 1px solid var(--tr-line-strong);
	border-radius: 50%;
	color: var(--tr-muted);
	background: transparent;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

body.troora-checkout .tr-remove-item svg {
	display: block;
	width: 10px;
	height: 10px;
}

body.troora-checkout .tr-remove-item:hover,
body.troora-checkout .tr-remove-item:focus-visible {
	color: #fff;
	background: var(--tr-accent);
	border-color: var(--tr-accent);
	outline: none;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.cart_item.tr-removing {
	opacity: 0.45;
	pointer-events: none;
}

/* -----------------------------------------------------------------------
   "What your membership supports" – editorial note under THE ROOT's title
   TrooRa Tan, Acumin Pro, 9 pt (12 px), italic
   ----------------------------------------------------------------------- */

/*
 * Let the note run the full width of the item (under thumbnail, name and
 * price) instead of squeezing into the narrow name column: the name cell and
 * the product row dissolve into the flex row of the <tr>, which wraps.
 */
/*
 * WooCommerce prints a non-breaking space after the product name; once the
 * name cell dissolves it becomes an anonymous flex item in front of the
 * thumbnail. Zeroing the row's font size collapses it, so spacing is done
 * with margins (a flex gap would still be applied around the empty item).
 * Every child sets its own font size.
 */
body.troora-checkout table.woocommerce-checkout-review-order-table tr.cart_item.tr-has-note {
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0;
	row-gap: 0;
	font-size: 0;
	line-height: 0;
}

body.troora-checkout tr.tr-has-note > td.product-name,
body.troora-checkout tr.tr-has-note .troora-checkout-product-row {
	display: contents !important;
}

body.troora-checkout tr.tr-has-note .troora-checkout-product-media {
	order: 1;
	flex: 0 0 64px;
}

body.troora-checkout tr.tr-has-note .troora-checkout-product-content {
	order: 2;
	flex: 1 1 0;
	min-width: 0;
	margin-left: 14px;
	font-size: 14px;
	line-height: 1.35;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tbody tr.tr-has-note td.product-total {
	order: 3;
	margin-left: 16px;
	font-size: 14px;
	line-height: 1.4;
}

body.troora-checkout .tr-item-note {
	order: 4;
	flex: 0 0 100%;
	box-sizing: border-box;
	margin: 6px 0 0;      /* sits right under the package name */
	padding: 0;
	border: 0;
	font-family: "Acumin Pro", "Work Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 10pt;
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: left;
	color: var(--tr-tan);
	text-wrap: pretty;
}

body.troora-checkout .tr-item-note p {
	margin: 0 0 0.5em;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

body.troora-checkout .tr-item-note p:last-child {
	margin-bottom: 0;
}

/* Heading: Acumin Pro Wide Semibold, 12 pt, upright */
body.troora-checkout .tr-item-note p.tr-item-note__title {
	margin: 0 0 0.5em;
	font-family: "Acumin Pro Wide", "Acumin Pro", "Work Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 12pt;
	font-style: normal;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Yearly price shown as a monthly figure: "$30/mo" over "paid annually" */
body.troora-checkout .tr-item-price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.25;
	text-align: right;
}

body.troora-checkout .tr-item-price__main {
	font-size: 14px;
	font-weight: 500;
	color: var(--tr-ink);
}

body.troora-checkout .tr-item-price__sub {
	margin-top: 1px;
	font-size: 11px;
	font-weight: 400;
	color: var(--tr-muted);
	white-space: nowrap;
}

/* "/yr" after subtotal and total */
body.troora-checkout .tr-per-year {
	margin-left: 1px;
	font-size: 0.7em;
	font-weight: 500;
	letter-spacing: 0.01em;
}

body.troora-checkout .troora-checkout-product-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	width: 100%;
}

body.troora-checkout .troora-checkout-product-media {
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 1px solid var(--tr-line);
	border-radius: 8px;
	background: var(--tr-field-bg);
}

body.troora-checkout .troora-checkout-product-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

body.troora-checkout .troora-checkout-product-content {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

body.troora-checkout .troora-checkout-product-content .cqoc_container {
	order: 0;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0;
	line-height: 1.35;
}

body.troora-checkout .troora-checkout-product-content .cqoc_product_name,
body.troora-checkout .troora-checkout-product-content .tr-product-name {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--tr-ink);
}

body.troora-checkout .troora-checkout-product-content .variation {
	order: 1;
	display: block;
	margin: -4px 0 0;
	font-size: 12px;
	color: var(--tr-muted);
}

body.troora-checkout .troora-checkout-product-content .variation dt,
body.troora-checkout .troora-checkout-product-content .variation dd,
body.troora-checkout .troora-checkout-product-content .variation p {
	display: inline;
	margin: 0;
	font-weight: 400;
}

body.troora-checkout .troora-checkout-product-content strong.product-quantity {
	order: 2;
	font-size: 12px;
	font-weight: 400;
	color: var(--tr-muted);
}

/* Quantity stepper (Change Quantity on Checkout plugin) */
body.troora-checkout table.woocommerce-checkout-review-order-table .quantity {
	order: 2;
	display: inline-flex !important;
	align-items: center;
	box-sizing: border-box;
	width: auto !important;
	height: 30px !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--tr-line) !important;
	border-radius: 999px;
	overflow: hidden;
	background: var(--tr-field-bg);
}

body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .minus,
body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .plus {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px !important;
	width: 30px !important;
	min-width: 30px !important;
	height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--tr-ink) !important;
	font-family: var(--tr-sans);
	font-size: 15px !important;
	font-weight: 400;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.12s ease;
}

body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .minus:hover,
body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .plus:hover {
	background: var(--tr-bg) !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .qty {
	display: block !important;
	box-sizing: border-box;
	flex: 0 0 34px !important;
	width: 34px !important;
	min-width: 34px !important;
	height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--tr-ink) !important;
	font-family: var(--tr-sans);
	font-size: 13px !important;
	font-weight: 500;
	line-height: 28px !important;
	text-align: center;
	box-shadow: none !important;
	outline: none;
	appearance: textfield;
	-moz-appearance: textfield;
}

body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .qty::-webkit-inner-spin-button,
body.troora-checkout table.woocommerce-checkout-review-order-table .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Discount code */
body.troora-checkout table.woocommerce-checkout-review-order-table tr.tr-coupon-row {
	padding: 0 0 14px;
	border-top: 1px solid var(--tr-line) !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.tr-coupon-row td {
	flex: 1 1 100%;
	width: 100%;
	text-align: left;
}

body.troora-checkout .tr-coupon {
	display: flex;
	gap: 8px;
	padding-top: 14px;
}

body.troora-checkout .tr-coupon input.tr-coupon-input {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	height: 35px;
	min-height: 0;
	line-height: 33px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-field-bg);
	color: var(--tr-ink);
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 500;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.troora-checkout .tr-coupon input.tr-coupon-input::placeholder {
	color: var(--tr-muted);
	font-weight: 400;
}

body.troora-checkout .tr-coupon input.tr-coupon-input:hover {
	border-color: var(--tr-line-strong);
}

body.troora-checkout .tr-coupon input.tr-coupon-input:focus {
	border-color: var(--tr-ink);
	box-shadow: 0 0 0 1px var(--tr-ink);
}

body.troora-checkout .tr-coupon-apply {
	flex: 0 0 auto;
	box-sizing: border-box;
	height: 35px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--tr-line-strong);
	border-radius: var(--tr-radius);
	background: transparent;
	color: var(--tr-ink);
	font-family: var(--tr-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 33px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.troora-checkout .tr-coupon-apply:hover:not(:disabled) {
	background: var(--tr-accent);
	border-color: var(--tr-accent);
	color: #fff;
}

body.troora-checkout .tr-coupon-apply:disabled {
	opacity: 0.4;
	cursor: default;
}

body.troora-checkout .tr-coupon-row.tr-loading .tr-coupon {
	opacity: 0.6;
	pointer-events: none;
}

body.troora-checkout .tr-coupon-notice:empty {
	display: none;
}

body.troora-checkout .tr-coupon-notice {
	margin-top: 10px;
	font-size: 13px;
	text-align: left;
}

body.troora-checkout .tr-coupon-notice .woocommerce-error,
body.troora-checkout .tr-coupon-notice .woocommerce-message,
body.troora-checkout .tr-coupon-notice .woocommerce-info,
body.troora-checkout .tr-coupon-notice .wc-block-components-notice-banner {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(198, 56, 44, 0.35);
	border-radius: var(--tr-radius);
	background: rgba(198, 56, 44, 0.06);
	color: var(--tr-error);
	font-size: 13px;
	line-height: 1.45;
	list-style: none;
	box-shadow: none;
}

body.troora-checkout .tr-coupon-notice .woocommerce-message,
body.troora-checkout .tr-coupon-notice .woocommerce-info,
body.troora-checkout .tr-coupon-notice .wc-block-components-notice-banner.is-success,
body.troora-checkout .tr-coupon-notice .wc-block-components-notice-banner.is-info {
	display: block !important;
	border-color: rgba(10, 10, 10, 0.18);
	background: var(--tr-field-bg);
	color: var(--tr-ink);
}

body.troora-checkout .tr-coupon-notice li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.troora-checkout .tr-coupon-notice svg,
body.troora-checkout .tr-coupon-notice .button {
	display: none;
}

body.troora-checkout .tr-coupon-notice .woocommerce-error::before,
body.troora-checkout .tr-coupon-notice .woocommerce-message::before,
body.troora-checkout .tr-coupon-notice .woocommerce-info::before {
	display: none;
}

/* Totals */
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr {
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.4;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr:first-child {
	padding-top: 0;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot th {
	font-weight: 400;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot td {
	font-weight: 500;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot td strong,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot td .tr-currency {
	display: inline;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot .woocommerce-Price-amount {
	font-weight: 500;
	color: var(--tr-ink);
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.cart-discount th {
	font-weight: 400;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon {
	margin-left: 8px;
	font-size: 12px;
	color: var(--tr-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon:hover {
	color: var(--tr-accent);
}

/* Shipping methods */
body.troora-checkout table.woocommerce-checkout-review-order-table tr.shipping {
	align-items: flex-start;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.shipping td {
	flex: 0 1 auto;
	min-width: 0;
	text-align: right;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul#shipping_method,
body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods {
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.4;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods li:last-child {
	margin-bottom: 0;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods label {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--tr-ink);
	cursor: pointer;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods input.shipping_method {
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid var(--tr-line-strong);
	border-radius: 50%;
	background: var(--tr-field-bg);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	position: static;
	opacity: 1;
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods input.shipping_method:checked {
	border: 5px solid var(--tr-ink);
}

body.troora-checkout table.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods input.shipping_method[type="hidden"] {
	display: none;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.shipping p,
body.troora-checkout table.woocommerce-checkout-review-order-table tr.shipping .woocommerce-shipping-destination {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--tr-muted);
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.shipping .woocommerce-shipping-calculator {
	display: none;
}

/* Grand total */
body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total {
	margin-top: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--tr-line) !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total th {
	font-weight: 600;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total td strong,
body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount {
	font-size: 19px;
	font-weight: 600;
	color: var(--tr-ink);
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total .tr-currency {
	margin-right: 8px;
	font-size: 12px;
	font-weight: 400;
	color: var(--tr-muted);
	vertical-align: 1px;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total small,
body.troora-checkout table.woocommerce-checkout-review-order-table tr.order-total .includes_tax {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--tr-muted);
}

/* -----------------------------------------------------------------------
   Yearly renewal (WooCommerce Subscriptions "recurring totals"):
   a quiet footnote under the total, not a second set of totals
   ----------------------------------------------------------------------- */

/* The "Renews every year" heading row is hidden; a divider (on the first renewal row) keeps the block apart from the total. */
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-totals {
	display: none !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-totals + tr.recurring-total {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--tr-line) !important;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-total {
	padding: 3px 0;
	font-size: 13px;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-total th,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-total td,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.recurring-total td .woocommerce-Price-amount {
	font-size: 13px;
	font-weight: 400;
	color: var(--tr-muted);
}

/* The renewal total: a touch stronger, and not the big "Total" treatment */
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total.recurring-total {
	margin-top: 4px;
	padding: 8px 0 0;
	border-top: 1px solid var(--tr-line) !important;
	align-items: flex-start;
}

body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total.recurring-total th,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total.recurring-total td,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total.recurring-total td strong,
body.troora-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total.recurring-total td .woocommerce-Price-amount {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tr-ink);
}

body.troora-checkout tr.recurring-total .first-payment-date {
	margin-top: 2px;
}

body.troora-checkout tr.recurring-total .first-payment-date small {
	font-size: 12px;
	font-weight: 400;
	color: var(--tr-muted);
}

/* The hidden shipping inputs and "via" wording add noise in a footnote */
body.troora-checkout tr.shipping.recurring-total th {
	font-size: 13px;
}

/* Blocking overlay (WooCommerce blockUI) matches the palette */
body.troora-checkout .blockUI.blockOverlay {
	background: var(--tr-bg) !important;
	opacity: 0.6 !important;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

body.troora-checkout .woocommerce-NoticeGroup .woocommerce-error,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-error,
body.troora-checkout form.checkout > .woocommerce-error,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-message {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid rgba(198, 56, 44, 0.35);
	border-radius: var(--tr-radius);
	background: rgba(198, 56, 44, 0.06);
	color: var(--tr-ink);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
	box-shadow: none;
}

body.troora-checkout .woocommerce-notices-wrapper .woocommerce-info {
	border-color: var(--tr-line);
	background: var(--tr-field-bg);
}

body.troora-checkout .woocommerce-NoticeGroup .woocommerce-error li,
body.troora-checkout .woocommerce-notices-wrapper li {
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

body.troora-checkout .woocommerce-NoticeGroup .woocommerce-error li:last-child {
	margin-bottom: 0;
}

body.troora-checkout .woocommerce-NoticeGroup .woocommerce-error a,
body.troora-checkout .woocommerce-notices-wrapper a {
	color: var(--tr-ink);
	text-decoration: underline;
}

body.troora-checkout .woocommerce-NoticeGroup .woocommerce-error::before,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-error::before,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-info::before,
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-message::before {
	display: none;
}

body.troora-checkout .woocommerce-notices-wrapper:empty {
	display: none;
}

/* Success banners ("Cart updated", "Coupon removed") stay hidden on the checkout, as the site owner had it. */
body.troora-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.troora-checkout form.checkout > .woocommerce-message {
	display: none !important;
}

body.troora-checkout .woocommerce-notices-wrapper {
	display: grid;
	grid-template-columns: 55% 45%;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0;
}

/* Lines up with the .tr-main content box: column width minus its 24px / 56px side paddings. */
body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-error,
body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-info,
body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-message,
body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-NoticeGroup {
	grid-column: 1;
	box-sizing: border-box;
	width: calc(100% - 80px);
	max-width: 560px;
	margin: 44px 56px -28px auto;
	text-align: left;
}

/* --------------------------------------------------------------------------
   Tablet & mobile: single column, summary collapses into a bar at the top
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	body.troora-checkout form.checkout.woocommerce-checkout > .tr-main {
		padding-right: 40px;
	}

	body.troora-checkout form.checkout.woocommerce-checkout > .checkout-order-review {
		padding-left: 36px !important;
	}
}

@media (max-width: 991px) {
	body.troora-checkout form.checkout.woocommerce-checkout {
		display: flex;
		flex-direction: column;
		gap: 0;
		min-height: 0;
		max-width: none;
	}

	body.troora-checkout .wd-page-content {
		min-height: 0;
		background: var(--tr-bg);
	}

	body.troora-checkout form.checkout .woocommerce-NoticeGroup-checkout {
		order: 0;
		max-width: none;
		margin: 20px 0 0;
		padding: 0 20px;
	}

	body.troora-checkout form.checkout.woocommerce-checkout > .checkout-order-review {
		order: -1;
		position: static !important;
		width: 100% !important;
		max-width: none !important;
		max-height: none !important;
		overflow: visible !important;
		padding: 0 !important;
	}

	body.troora-checkout .tr-summary-head {
		margin: 0;
	}

	body.troora-checkout .tr-logo {
		display: flex;
		justify-content: center;
		padding: 22px 20px 20px;
		border-bottom: 1px solid var(--tr-line);
	}

	body.troora-checkout .tr-logo img {
		width: 136px;
	}

	body.troora-checkout .tr-summary-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: 16px 20px;
		border: 0;
		border-bottom: 1px solid var(--tr-line);
		border-radius: 0;
		background: var(--tr-bg-summary);
		color: var(--tr-ink);
		font-family: var(--tr-sans);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.3;
		letter-spacing: 0;
		text-transform: none;
		text-align: left;
		cursor: pointer;
		box-shadow: none;
		-webkit-tap-highlight-color: transparent;
	}

	body.troora-checkout .tr-summary-toggle:hover,
	body.troora-checkout .tr-summary-toggle:focus {
		background: var(--tr-bg-summary);
		color: var(--tr-ink);
		outline: none;
	}

	body.troora-checkout .tr-summary-toggle-label {
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	body.troora-checkout .tr-chevron {
		transition: transform 0.2s ease;
	}

	body.troora-checkout .checkout-order-review.tr-open .tr-chevron {
		transform: rotate(180deg);
	}

	body.troora-checkout .tr-summary-toggle-total {
		font-size: 17px;
		font-weight: 600;
	}

	body.troora-checkout .tr-summary-toggle-total .woocommerce-Price-amount {
		font-weight: 600;
		color: var(--tr-ink);
	}

	body.troora-checkout .checkout-order-review #order_review {
		display: none;
		padding: 22px 20px 24px;
		background: var(--tr-bg-summary);
		border-bottom: 1px solid var(--tr-line);
	}

	body.troora-checkout .checkout-order-review.tr-open #order_review {
		display: block;
	}

	body.troora-checkout form.checkout.woocommerce-checkout > .tr-main {
		order: 0;
		max-width: none;
		margin: 0;
		padding: 28px 20px 32px;
	}

	body.troora-checkout .woocommerce-notices-wrapper {
		display: block;
		max-width: none;
		padding: 20px 20px 0;
	}

	body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-error,
	body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-info,
	body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-message,
	body.troora-checkout .woocommerce-notices-wrapper > .woocommerce-NoticeGroup {
		width: 100%;
		max-width: none;
		margin: 0 0 4px;
	}

	body.troora-checkout .tr-section-title,
	body.troora-checkout .woocommerce-billing-fields > h3,
	body.troora-checkout .woocommerce-shipping-fields > h3,
	body.troora-checkout .woocommerce-additional-fields > h3,
	body.troora-checkout .tr-main h3#ship-to-different-address {
		font-size: 27px;
	}

	body.troora-checkout .tr-section,
	body.troora-checkout .woocommerce-billing-fields,
	body.troora-checkout .woocommerce-account-fields,
	body.troora-checkout .woocommerce-shipping-fields,
	body.troora-checkout .woocommerce-additional-fields {
		margin-bottom: 30px;
	}

	body.troora-checkout .tr-footer {
		margin-top: 36px;
	}
}

@media (max-width: 600px) {
	body.troora-checkout form.checkout.woocommerce-checkout > .tr-main {
		padding: 18px 16px 28px;
	}

	body.troora-checkout .tr-logo,
	body.troora-checkout .tr-summary-toggle {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.troora-checkout .checkout-order-review #order_review {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.troora-checkout .tr-fields,
	body.troora-checkout .woocommerce-billing-fields__field-wrapper,
	body.troora-checkout .woocommerce-shipping-fields__field-wrapper,
	body.troora-checkout .woocommerce-additional-fields__field-wrapper {
		gap: 10px;
	}

	body.troora-checkout .tr-main #billing_city_field,
	body.troora-checkout .tr-main #shipping_city_field {
		grid-column: 1 / -1;
	}

	body.troora-checkout .tr-main #billing_state_field,
	body.troora-checkout .tr-main #billing_postcode_field,
	body.troora-checkout .tr-main #shipping_state_field,
	body.troora-checkout .tr-main #shipping_postcode_field {
		grid-column: span 3;
	}

	body.troora-checkout .tr-main .tr-addr-2 #billing_state_field,
	body.troora-checkout .tr-main .tr-addr-2 #billing_postcode_field,
	body.troora-checkout .tr-main .tr-addr-2 #shipping_state_field,
	body.troora-checkout .tr-main .tr-addr-2 #shipping_postcode_field {
		grid-column: 1 / -1;
	}

	body.troora-checkout .tr-main .form-row input.input-text,
	body.troora-checkout .tr-main .form-row select,
	body.troora-checkout .tr-main .select2-container .select2-selection--single {
		font-size: 16px; /* prevents iOS zoom-on-focus */
	}

	body.troora-checkout .tr-main .select2-container .select2-selection--single .select2-selection__rendered {
		font-size: 16px;
	}

	body.troora-checkout .tr-coupon input.tr-coupon-input {
		font-size: 16px;
	}

	body.troora-checkout .tr-main #payment button#place_order,
	body.troora-checkout .tr-main #payment button#place_order.button.alt {
		height: 54px;
		line-height: 54px;
	}

	body.troora-checkout .woocommerce-notices-wrapper {
		padding: 16px 16px 0;
	}

	body.troora-checkout form.checkout .woocommerce-NoticeGroup-checkout {
		padding: 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.troora-checkout * {
		transition: none !important;
	}
}

/* ---- Billing period switch (THE SOURCE: Monthly | Yearly) ---- */
body.troora-checkout .tr-plan {
	order: 4;
	flex: 0 0 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 12px 0 0;
	padding: 4px;
	border: 1px solid rgba(10, 10, 10, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	line-height: 1.2;
}

body.troora-checkout .tr-plan__opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-height: 52px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: var(--tr-ink);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.troora-checkout .tr-plan__opt:hover {
	background: rgba(255, 255, 255, 0.8);
	color: var(--tr-ink);
}

body.troora-checkout .tr-plan__opt.is-active {
	background: #fff;
	border-color: var(--tr-ink);
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}

body.troora-checkout .tr-plan__opt:focus-visible {
	outline: 2px solid var(--tr-accent);
	outline-offset: 1px;
}

body.troora-checkout .tr-plan__name {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tr-muted);
}

body.troora-checkout .tr-plan__opt.is-active .tr-plan__name {
	color: var(--tr-ink);
}

body.troora-checkout .tr-plan__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 5px;
	font-size: 15px;
	font-weight: 500;
}

body.troora-checkout .tr-plan__was {
	font-size: 12px;
	font-weight: 400;
	color: var(--tr-muted);
}

body.troora-checkout .tr-plan__per {
	margin-left: -4px;
	font-size: 11px;
	font-weight: 500;
	color: var(--tr-muted);
}

body.troora-checkout .tr-plan__hint {
	font-size: 11px;
	font-weight: 400;
	color: var(--tr-muted);
}

body.troora-checkout .tr-plan.is-busy {
	opacity: .6;
	pointer-events: none;
}

@media (max-width: 400px) {
	body.troora-checkout .tr-plan__opt { padding: 8px 10px; }
	body.troora-checkout .tr-plan__price { font-size: 14px; }
}

body.troora-checkout .tr-plan__opt { justify-content: center; }

body.troora-checkout .tr-plan__was,
body.troora-checkout .tr-plan__hint,
body.troora-checkout .tr-plan__hint .amount,
body.troora-checkout .tr-plan__was .amount {
	color: var(--tr-muted) !important;
	text-decoration-color: currentColor;
}
body.troora-checkout .tr-plan__was { text-decoration: line-through; }
body.troora-checkout .tr-plan__was .amount { text-decoration: none; }
body.troora-checkout .tr-plan__price .amount,
body.troora-checkout .tr-plan__price bdi { color: inherit; }

body.troora-checkout .tr-plan__per { margin-left: 0; }
body.troora-checkout .tr-per-year { margin-left: 4px; }

/* ---- Upgrade to THE ROOT (under the Source plan switch) ---- */
body.troora-checkout .tr-upgrade {
	order: 5;
	flex: 0 0 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 10px 0 0;
	padding: 12px 14px;
	border: 1px dashed rgba(10, 10, 10, 0.28);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.3;
}

body.troora-checkout .tr-upgrade__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

body.troora-checkout .tr-upgrade__kicker {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tr-tan);
}

body.troora-checkout .tr-upgrade__title { font-size: 13px; font-weight: 600; color: var(--tr-ink); }

body.troora-checkout .tr-upgrade__desc { font-size: 12px; color: var(--tr-muted); }

body.troora-checkout .tr-upgrade__price { display: flex; align-items: baseline; gap: 0 5px; margin-top: 2px; font-size: 14px; font-weight: 500; }

body.troora-checkout .tr-upgrade__btn {
	flex: 0 0 auto;
	min-height: 0;
	height: 36px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--tr-ink);
	border-radius: 6px;
	background: transparent;
	color: var(--tr-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

body.troora-checkout .tr-upgrade__btn:hover {
	background: var(--tr-accent);
	border-color: var(--tr-accent);
	color: #fff;
}

body.troora-checkout .tr-upgrade.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 520px) {
	body.troora-checkout .tr-upgrade { flex-direction: column; align-items: stretch; }
	body.troora-checkout .tr-upgrade__btn { width: 100%; }
}

/* ---- Top payment row: Apple Pay / Google Pay / Link / Klarna, compact ---- */
body.troora-checkout #wc-stripe-express-checkout-element {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.troora-checkout #wc-stripe-express-checkout-element > * {
	flex: 1 1 0;
	min-width: 0;
}

body.troora-checkout #wc-stripe-express-checkout-element:not(:empty)::before { flex: 0 0 100%; }

body.troora-checkout .tr-klarna-btn {
	box-sizing: border-box;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	background: #ffb3c7;
	color: #0a0a0a;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter .2s ease;
}

body.troora-checkout .tr-klarna-btn:hover { background: #ffb3c7; color: #0a0a0a; filter: brightness(0.95); }
body.troora-checkout .tr-klarna-btn i { font-style: normal; }

body.troora-checkout #wc-stripe-express-checkout-button-separator { margin: 18px 0 26px !important; }

body.troora-checkout .tr-klarna-btn { order: 99; }
