/* Cart + Checkout — what the two (and the order-received page) share
   (design.md §Cart & checkout): the black page with a 600px order-summary
   column, the eyebrow + title head, the summary panel and its totals, the
   coupon toggle, form controls, buttons, notices and the assurance row.

   Everything here restyles stock WooCommerce block output (`.wc-block-*`,
   read from WooCommerce 11.2's own markup) or the tt- patterns placed inside
   those blocks. WC ships a lot of CSS of its own, hence the !important on
   typography / colour / border (system.md §7, §12). Desktop/mobile switch at
   1099px, as on the rest of the store. Above 1100 the summary column and gap
   shrink with layout-only clamps, reaching the design's 600 / 72 at 1728. */

/* ---- Page ----------------------------------------------------------------- */
.tt-cart,
.tt-checkout {
	padding: 56px calc(50px + var(--tt-bleed)) 120px;
	background: #000;
	color: #fff;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
}

.tt-cart > *,
.tt-checkout > * {
	margin-block: 0 !important;
}

/* The Cart / Checkout blocks align wide and centre themselves; the page
   padding is the gutter here. */
.tt-cart .wp-block-woocommerce-cart,
.tt-checkout .wp-block-woocommerce-checkout {
	max-width: none !important;
	margin: 0 !important;
}

/* Main column + order summary. WooCommerce lays these out with flex, % widths
   and container queries; the design is a fixed 600px column beside the rest. */
.tt-cart .wc-block-components-sidebar-layout,
.tt-checkout .wc-block-components-sidebar-layout,
.tt-order-received__layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) clamp(440px, 34.72vw, 600px);
	gap: clamp(40px, 4.17vw, 72px);
	align-items: start;
	margin: 0 !important;
}

.tt-cart .wc-block-components-main,
.tt-checkout .wc-block-components-main,
.tt-order-received__main {
	grid-column: 1;
	grid-row: 1;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.tt-cart .wc-block-components-sidebar,
.tt-checkout .wc-block-components-sidebar,
.tt-order-received__summary {
	grid-column: 2;
	grid-row: 1;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

/* WooCommerce's loading skeleton uses the same two-column flex. */
.tt-cart .wp-block-woocommerce-cart.is-loading .wp-block-woocommerce-filled-cart-block,
.tt-checkout .wp-block-woocommerce-checkout.is-loading {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) clamp(440px, 34.72vw, 600px);
	gap: clamp(40px, 4.17vw, 72px);
}

/* ---- Head (eyebrow + title) ------------------------------------------------ */
.tt-checkout-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin: 0 0 36px !important;
}

.tt-checkout-head__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tt-checkout-head__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-size: 16px !important;
	line-height: 1.45;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-checkout-head__eyebrow::before {
	content: "";
	flex: 0 0 40px;
	height: 1px;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-checkout-head__title {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 62px !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
}

/* Desktop has "Continue shopping" in the step bar instead. */
.tt-checkout-head__back {
	display: none;
}

/* ---- Order summary panel ---------------------------------------------------- */
/* #1c1c1a with the bottom-right corner chamfered 18 × 22. */
.tt-cart .wc-block-cart__sidebar,
.tt-checkout .wc-block-checkout__sidebar,
.tt-order-received__summary {
	position: sticky !important;
	top: 24px !important;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 40px clamp(28px, 2.315vw, 40px) 48px !important;
	background: transparent !important;
	box-sizing: border-box;
	isolation: isolate;
}

/* The fill (and its chamfer) is a layer behind the panel, not a clip-path on
   it: a clip-path would also clip WooCommerce's position: fixed mobile
   checkout bar, which lives inside the panel. */
.tt-cart .wc-block-cart__sidebar::before,
.tt-checkout .wc-block-checkout__sidebar::before,
.tt-order-received__summary::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #1c1c1a;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 18px) 100%, 0 100%);
	pointer-events: none;
}

.tt-cart .wc-block-cart__sidebar > *,
.tt-checkout .wc-block-checkout__sidebar > *,
.tt-order-received__summary > * {
	margin: 0 !important;
}

/* WooCommerce wraps the sidebar's contents in a card and a totals block of
   its own; flatten them into the panel's column. */
.tt-cart .wc-block-cart__sidebar .components-card,
.tt-cart .wc-block-cart__sidebar .components-card__body {
	display: contents;
}

/* Panel title: "ORDER SUMMARY", 14px bright red, 0.15em, and the dashed rule
   under it (6 on / 6 off, #60605c). */
.tt-cart .wc-block-cart__totals-title,
.tt-checkout .wc-block-components-checkout-order-summary__title-text,
.tt-order-received__summary-title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	letter-spacing: 2.1px !important;
	text-align: left !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-cart .wc-block-cart__totals-title {
	display: block;
	padding-bottom: 28px !important;
	margin-bottom: 14px !important;
	background: repeating-linear-gradient(90deg, #60605c 0 6px, transparent 6px 12px) left bottom / 100% 1px no-repeat;
}

/* ---- Totals rows -------------------------------------------------------------- */
.tt-cart .wp-block-woocommerce-cart-order-summary-block,
.tt-checkout .wp-block-woocommerce-checkout-order-summary-block,
.tt-cart .wp-block-woocommerce-cart-order-summary-totals-block,
.tt-checkout .wp-block-woocommerce-checkout-order-summary-totals-block {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* WooCommerce frames the cart summary with a rule underneath. */
.tt-cart .wp-block-woocommerce-cart-order-summary-block {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* WooCommerce 11 groups subtotal…taxes in a totals block of their own. */
.tt-cart .wp-block-woocommerce-cart-order-summary-totals-block,
.tt-checkout .wp-block-woocommerce-checkout-order-summary-totals-block {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.tt-cart .wp-block-woocommerce-cart-order-summary-totals-block:not(:has(*)),
.tt-checkout .wp-block-woocommerce-checkout-order-summary-totals-block:not(:has(*)) {
	display: none;
}

.tt-cart .wc-block-components-totals-wrapper,
.tt-checkout .wc-block-components-totals-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.tt-cart .wc-block-components-totals-wrapper:empty,
.tt-checkout .wc-block-components-totals-wrapper:empty {
	display: none;
}

.tt-cart .wc-block-components-totals-item,
.tt-checkout .wc-block-components-totals-item {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1.5;
}

.tt-cart .wc-block-components-totals-item__label,
.tt-checkout .wc-block-components-totals-item__label {
	flex: 1 1 auto;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-weight: 400 !important;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
}

.tt-cart .wc-block-components-totals-item__value,
.tt-checkout .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	text-align: right;
	color: #fff !important;
}

/* "Calculated at next step" reads as copy, not a figure. */
.tt-cart .wc-block-components-totals-item__value strong,
.tt-checkout .wc-block-components-totals-item__value strong {
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-weight: 400;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-cart .wc-block-components-totals-item__description,
.tt-checkout .wc-block-components-totals-item__description,
.tt-cart .wc-block-components-totals-shipping__via,
.tt-checkout .wc-block-components-totals-shipping__via {
	flex-basis: 100%;
	font-size: 14px !important;
	color: #8c8c88 !important;
}

/* Applied coupon: lime chip with its × (discount export). */
.tt-cart .wc-block-components-totals-discount .wc-block-components-totals-item__value,
.tt-checkout .wc-block-components-totals-discount .wc-block-components-totals-item__value {
	color: var(--wp--preset--color--lime, #b0e33a) !important;
}

.tt-cart .wc-block-components-totals-discount__coupon-list,
.tt-checkout .wc-block-components-totals-discount__coupon-list {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.tt-cart .wc-block-components-chip,
.tt-checkout .wc-block-components-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 2px 4px 2px 8px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--lime, #b0e33a) !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-size: 12px !important;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: #000 !important;
}

.tt-cart .wc-block-components-chip__remove,
.tt-checkout .wc-block-components-chip__remove {
	display: flex;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #000 !important;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.tt-cart .wc-block-components-chip__remove:hover,
.tt-checkout .wc-block-components-chip__remove:hover {
	opacity: 1;
}

.tt-cart .wc-block-components-chip__remove-icon,
.tt-checkout .wc-block-components-chip__remove-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Total: a rule above, 14px TOTAL label, 36px figure + the currency code. */
.tt-cart .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item),
.tt-checkout .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
	margin-top: 14px !important;
	padding-top: 22px !important;
	border-top: 1px solid #3c3c3a !important;
}

.tt-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.tt-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-size: 14px !important;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: #fff !important;
}

.tt-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.tt-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 36px !important;
	line-height: 1 !important;
}

.tt-cart .wc-block-components-totals-footer-item-tax-value::after,
.tt-checkout .wc-block-components-totals-footer-item-tax-value::after {
	content: " " var(--tt-currency-code, "");
	font-size: 16px;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-cart .wc-block-components-totals-footer-item-tax,
.tt-checkout .wc-block-components-totals-footer-item-tax {
	flex-basis: 100%;
	margin: 0 !important;
	font-size: 14px !important;
	text-align: right;
	color: #8c8c88 !important;
}

/* ---- Discount code toggle ------------------------------------------------------ */
/* WooCommerce's coupon panel, moved under the total (design order) and
   restyled as "HAVE A DISCOUNT CODE? +", the + turning to × when open. */
.tt-cart .wc-block-components-totals-wrapper:has(.wc-block-components-totals-coupon),
.tt-checkout .wc-block-components-totals-wrapper:has(.wc-block-components-totals-coupon) {
	order: 10;
	margin-top: -8px !important;
}

.tt-cart .wc-block-components-totals-coupon,
.tt-checkout .wc-block-components-totals-coupon,
.tt-cart .wc-block-components-totals-coupon.wc-block-components-panel,
.tt-checkout .wc-block-components-totals-coupon.wc-block-components-panel,
.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel {
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: linear-gradient(currentColor, currentColor) left calc(100% - 1px) / 0 1px no-repeat !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	letter-spacing: 0.7px !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	cursor: pointer;
	transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	color: #fff !important;
	background-size: 100% 1px !important;
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button-icon,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	display: none !important;
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button::after,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button::after {
	content: "+";
	display: inline-block;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"]::after,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"]::after {
	transform: rotate(45deg);
}

.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__content,
.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__content {
	padding: 14px 0 2px !important;
}

.tt-cart .wc-block-components-totals-coupon__form,
.tt-checkout .wc-block-components-totals-coupon__form {
	display: flex !important;
	gap: 10px;
	margin: 0 !important;
}

.tt-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input,
.tt-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
}

/* The coupon field keeps WooCommerce's in-field label, as a placeholder. */
.tt-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input label,
.tt-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input label {
	position: absolute !important;
	top: 50% !important;
	left: 16px !important;
	transform: translateY(-50%) !important;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #73736f !important;
	pointer-events: none;
}

.tt-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input.is-active label,
.tt-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input.is-active label {
	display: none;
}

.tt-cart .wc-block-components-totals-coupon__form input,
.tt-checkout .wc-block-components-totals-coupon__form input {
	height: 48px !important;
}

/* ---- Form controls ----------------------------------------------------------------- */
/* White 50px fields, label above in 12px Base Model (WooCommerce floats its
   labels inside the field — set them back above it). */
.tt-checkout .wc-block-components-text-input,
.tt-checkout .wc-blocks-components-select__container,
.tt-cart .wc-block-components-text-input {
	position: relative;
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	margin: 0 !important;
}

.tt-checkout .wc-block-components-text-input label,
.tt-checkout .wc-blocks-components-select__label {
	order: -1;
	position: static !important;
	max-width: none !important;
	margin: 0 !important;
	transform: none !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	letter-spacing: 1.44px !important;
	text-transform: uppercase !important;
	white-space: nowrap;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	cursor: default;
}

.tt-checkout .wc-block-components-text-input input,
.tt-cart .wc-block-components-text-input input,
.tt-checkout .wc-blocks-components-select__select,
.tt-checkout .wc-block-components-textarea,
.tt-checkout textarea {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	height: 50px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: 0 !important;
	color: #000 !important;
	outline: none !important;
	transition: box-shadow 0.25s ease;
}

.tt-checkout .wc-block-components-textarea,
.tt-checkout textarea {
	height: auto !important;
	min-height: 96px;
	padding: 14px 16px !important;
	resize: vertical;
}

.tt-checkout .wc-block-components-text-input input:focus,
.tt-cart .wc-block-components-text-input input:focus,
.tt-checkout .wc-blocks-components-select__select:focus,
.tt-checkout textarea:focus {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026) !important;
}

.tt-checkout .has-error input,
.tt-checkout .has-error select,
.tt-checkout .has-error textarea {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red-bright, #ff4349) !important;
}

/* Select: the design's thin black chevron, 16px in from the right. */
.tt-checkout .wc-blocks-components-select,
.tt-checkout .wc-blocks-components-select__container {
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.tt-checkout .wc-blocks-components-select__select {
	padding-right: 44px !important;
	appearance: none;
	cursor: pointer;
}

.tt-checkout .wc-blocks-components-select__expand {
	top: auto !important;
	bottom: 13px !important;
	right: 12px !important;
	transform: none !important;
	fill: #000 !important;
}

.tt-checkout .wc-block-components-validation-error,
.tt-cart .wc-block-components-validation-error {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-size: 14px !important;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-checkout .wc-block-components-validation-error svg,
.tt-cart .wc-block-components-validation-error svg {
	fill: currentColor;
}

/* Checkbox: 20px square — outlined, red with a white tick when checked. */
.tt-checkout .wc-block-components-checkbox {
	margin: 0 !important;
}

.tt-checkout .wc-block-components-checkbox label {
	display: flex !important;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-size: 15px !important;
	line-height: 1.4;
	color: #fff !important;
	cursor: pointer;
}

.tt-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	flex: 0 0 20px;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey, #73736f) !important;
	appearance: none;
	cursor: pointer;
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.tt-checkout .wc-block-components-checkbox label:hover .wc-block-components-checkbox__input[type="checkbox"] {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026) !important;
}

.tt-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--wp--preset--color--red, #cf2026) !important;
	box-shadow: none !important;
}

.tt-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 2px;
}

.tt-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	left: 2px !important;
	top: 50% !important;
	width: 16px !important;
	height: 16px !important;
	margin: -8px 0 0 !important;
	fill: #fff !important;
}

/* ---- Buttons ------------------------------------------------------------------------ */
/* WooCommerce's buttons wearing the theme's .tt-btn wipe (nav-bar.css):
   primary = red fill inside a 2px red outline that wipes out to the right on
   hover; outline = grey hairline, red fill wiping in from the left. */
.tt-cart .wc-block-cart__submit-button,
.tt-checkout .wc-block-components-checkout-place-order-button,
.tt-cart .wc-block-components-totals-coupon__button,
.tt-checkout .wc-block-components-totals-coupon__button {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: #fff !important;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, opacity 0.2s ease;
}

.tt-cart .wc-block-cart__submit-button::before,
.tt-checkout .wc-block-components-checkout-place-order-button::before,
.tt-cart .wc-block-components-totals-coupon__button::before,
.tt-checkout .wc-block-components-totals-coupon__button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--red, #cf2026);
	transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.tt-cart .wc-block-cart__submit-button:active,
.tt-checkout .wc-block-components-checkout-place-order-button:active,
.tt-cart .wc-block-components-totals-coupon__button:active,
.tt-checkout .wc-block-components-totals-coupon__button:active {
	transform: translateY(1px);
}

.tt-cart .wc-block-cart__submit-button,
.tt-checkout .wc-block-components-checkout-place-order-button {
	width: 100% !important;
	height: 60px !important;
	padding: 0 24px !important;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026) !important;
	font-size: 18px !important;
}

.tt-cart .wc-block-cart__submit-button::before,
.tt-checkout .wc-block-components-checkout-place-order-button::before {
	transform: scaleX(1);
	transform-origin: right;
}

.tt-cart .wc-block-components-totals-coupon__button,
.tt-checkout .wc-block-components-totals-coupon__button {
	flex: 0 0 auto;
	height: 48px !important;
	padding: 0 22px !important;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grey, #73736f) !important;
	font-size: 15px !important;
}

.tt-cart .wc-block-components-totals-coupon__button::before,
.tt-checkout .wc-block-components-totals-coupon__button::before {
	transform: scaleX(0);
	transform-origin: left;
}

@media (hover: hover) {
	.tt-cart .wc-block-cart__submit-button:hover::before,
	.tt-checkout .wc-block-components-checkout-place-order-button:not(:disabled):hover::before {
		transform: scaleX(0);
	}

	.tt-cart .wc-block-components-totals-coupon__button:hover,
	.tt-checkout .wc-block-components-totals-coupon__button:hover {
		box-shadow: inset 0 0 0 2px var(--wp--preset--color--red, #cf2026) !important;
	}

	.tt-cart .wc-block-components-totals-coupon__button:hover::before,
	.tt-checkout .wc-block-components-totals-coupon__button:hover::before {
		transform: scaleX(1);
	}
}

.tt-cart .wc-block-cart__submit-button:focus-visible,
.tt-checkout .wc-block-components-checkout-place-order-button:focus-visible,
.tt-cart .wc-block-components-totals-coupon__button:focus-visible,
.tt-checkout .wc-block-components-totals-coupon__button:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 2px;
}

.tt-cart .wc-block-cart__submit-button[disabled],
.tt-cart .wc-block-cart__submit-button[aria-disabled="true"],
.tt-checkout .wc-block-components-checkout-place-order-button:disabled {
	opacity: 0.4;
	cursor: default;
}

.tt-cart .wc-block-components-button__text,
.tt-checkout .wc-block-components-button__text,
.tt-checkout .wc-block-components-checkout-place-order-button__text {
	display: flex;
	align-items: center;
	gap: 0.4em;
	line-height: 1;
}

.tt-cart .wc-block-components-spinner,
.tt-checkout .wc-block-components-spinner {
	color: #fff;
}

/* ---- Notices --------------------------------------------------------------------------- */
/* Ink bar with a 3px red edge on the left (the cart's removed-item bar). */
.tt-cart .wc-block-components-notice-banner,
.tt-checkout .wc-block-components-notice-banner {
	gap: 16px;
	margin: 0 0 24px !important;
	padding: 16px 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--ink, #141412) !important;
	box-shadow: inset 3px 0 0 var(--wp--preset--color--red, #cf2026);
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-size: 16px !important;
	line-height: 1.5;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
}

.tt-cart .wc-block-components-notice-banner.is-success,
.tt-checkout .wc-block-components-notice-banner.is-success {
	box-shadow: inset 3px 0 0 var(--wp--preset--color--lime, #b0e33a);
}

.tt-cart .wc-block-components-notice-banner > svg,
.tt-checkout .wc-block-components-notice-banner > svg {
	flex-shrink: 0;
	padding: 2px !important;
	border-radius: 0 !important;
	background: transparent !important;
	fill: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-cart .wc-block-components-notice-banner.is-success > svg,
.tt-checkout .wc-block-components-notice-banner.is-success > svg {
	fill: var(--wp--preset--color--lime, #b0e33a) !important;
}

.tt-cart .wc-block-components-notice-banner a,
.tt-checkout .wc-block-components-notice-banner a {
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
}

.tt-cart .wc-block-components-notice-banner__dismiss,
.tt-checkout .wc-block-components-notice-banner__dismiss {
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	fill: currentColor;
}

/* ---- Assurances + policy links ----------------------------------------------------------- */
/* Three columns between hairlines, then three bright-red links. */
.tt-cart-assurances {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0 !important;
}

.tt-cart-assurances > * {
	margin: 0 !important;
}

.tt-cart-assurances__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	box-shadow: inset 0 1px 0 #3c3c3a, inset 0 -1px 0 #3c3c3a;
}

.tt-cart-assurances__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 20px 14px;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-cart-assurances__item + .tt-cart-assurances__item {
	box-shadow: inset 1px 0 0 #3c3c3a;
}

.tt-cart-assurances__icon {
	display: block;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-cart-assurances__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
}

.tt-cart-assurances__link {
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
	text-decoration: none !important;
	background: linear-gradient(currentColor, currentColor) left calc(100% - 1px) / 0 1px no-repeat;
	transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-cart-assurances__link:hover {
	color: #fff !important;
	background-size: 100% 1px;
}

/* ---- Mobile ------------------------------------------------------------------------------- */
@media (max-width: 1099px) {
	.tt-cart,
	.tt-checkout {
		padding: 28px 16px 40px;
	}

	.tt-cart .wc-block-components-sidebar-layout,
	.tt-checkout .wc-block-components-sidebar-layout,
	.tt-order-received__layout,
	.tt-cart .wp-block-woocommerce-cart.is-loading .wp-block-woocommerce-filled-cart-block,
	.tt-checkout .wp-block-woocommerce-checkout.is-loading {
		display: flex !important;
		flex-direction: column;
		gap: 24px;
	}

	.tt-checkout-head {
		margin-bottom: 24px !important;
		gap: 16px;
	}

	.tt-checkout-head__text {
		gap: 10px;
	}

	.tt-checkout-head__eyebrow {
		gap: 12px;
		font-size: 13px !important;
		letter-spacing: 1.95px;
	}

	.tt-checkout-head__eyebrow::before {
		flex-basis: 32px;
	}

	.tt-checkout-head__title {
		font-size: 40px !important;
	}

	.tt-checkout-head__back {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		min-height: 44px;
		font-size: 12px;
		letter-spacing: 0.6px;
	}

	.tt-cart .wc-block-cart__sidebar,
	.tt-checkout .wc-block-checkout__sidebar,
	.tt-order-received__summary {
		position: relative !important;
		top: auto !important;
		gap: 22px;
		padding: 26px 18px 34px !important;
	}

	.tt-cart .wc-block-cart__sidebar::before,
	.tt-checkout .wc-block-checkout__sidebar::before,
	.tt-order-received__summary::before {
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 14px) 100%, 0 100%);
	}

	.tt-cart .wc-block-cart__totals-title,
	.tt-checkout .wc-block-components-checkout-order-summary__title-text,
	.tt-order-received__summary-title {
		font-size: 13px !important;
		letter-spacing: 1.95px !important;
	}

	.tt-cart .wc-block-cart__totals-title {
		padding-bottom: 22px !important;
		margin-bottom: 10px !important;
	}

	.tt-cart .wp-block-woocommerce-cart-order-summary-block,
	.tt-checkout .wp-block-woocommerce-checkout-order-summary-block {
		gap: 12px;
	}

	.tt-cart .wc-block-components-totals-item,
	.tt-checkout .wc-block-components-totals-item {
		font-size: 15px !important;
	}

	.tt-cart .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item),
	.tt-checkout .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
		margin-top: 10px !important;
		padding-top: 18px !important;
	}

	.tt-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
	.tt-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
		font-size: 13px !important;
	}

	.tt-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
	.tt-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 30px !important;
	}

	.tt-cart .wc-block-components-totals-footer-item-tax-value::after,
	.tt-checkout .wc-block-components-totals-footer-item-tax-value::after {
		font-size: 14px;
	}

	.tt-cart .wc-block-components-totals-coupon .wc-block-components-panel__button,
	.tt-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
		min-height: 44px;
		font-size: 13px !important;
	}

	.tt-cart .wc-block-components-totals-coupon__button,
	.tt-checkout .wc-block-components-totals-coupon__button {
		padding: 0 18px !important;
		font-size: 14px !important;
	}

	.tt-cart .wc-block-cart__submit-button {
		height: 56px !important;
		font-size: 17px !important;
	}

	/* Touch: the wipe plays on press instead of hover. */
	.tt-cart .wc-block-cart__submit-button:active::before,
	.tt-checkout .wc-block-components-checkout-place-order-button:active::before {
		transform: scaleX(0);
	}

	.tt-cart-assurances {
		gap: 22px;
	}

	.tt-cart-assurances__item {
		gap: 10px;
		padding: 16px 6px;
		font-size: 12px;
		line-height: 1.35;
	}

	.tt-cart-assurances__icon {
		width: 24px;
		height: 24px;
	}

	.tt-cart-assurances__link {
		display: flex;
		align-items: center;
		min-height: 36px;
	}
}
