/*
 * The `hidden` attribute's UA-default `display: none` has the same
 * specificity as a plain class selector, so any of our own rules that set
 * `display` on a hidden-toggled element (author styles beat UA styles on a
 * tie) would otherwise leave it visibly stuck open even after JS sets
 * `el.hidden = true`. This one rule guarantees `hidden` always wins.
 */
[hidden] {
	display: none !important;
}

:root {
	--tacc-cart-bg: #f4efea;
	--tacc-cart-card: #ffffff;
	--tacc-cart-ink: #3b2a23;
	--tacc-cart-soft: #75695f;
	--tacc-cart-mid: #6b564c;
	--tacc-cart-line: #e2d9d0;
	--tacc-cart-track: #ece3da;
	--tacc-cart-danger: #a02020;
	--tacc-cart-warning: #6d4805;
	--tacc-cart-success: #1c5019;
	--tacc-cart-shadow: 0 16px 42px rgba(59, 42, 35, 0.07);
}

body.woocommerce-cart {
	background: var(--tacc-cart-bg);
	color: var(--tacc-cart-ink);
}

body.woocommerce-cart .page-heading,
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-cart .cart-checkout-nav,
body.woocommerce-cart .cart-page-title,
body.woocommerce-cart .cart-empty.woocommerce-info,
body.woocommerce-cart .cart-empty.woocommerce-info + .return-to-shop {
	display: none;
}

body.woocommerce-cart .page-wrapper,
body.woocommerce-cart .content-page {
	background: var(--tacc-cart-bg);
}

body.woocommerce-cart .content-page {
	padding-top: clamp(30px, 5vw, 64px);
	padding-bottom: clamp(54px, 8vw, 105px);
}

.tacc-cart,
.tacc-cart-picker,
.tacc-cart button,
.tacc-cart input,
.tacc-cart select,
.tacc-cart-picker button,
.tacc-cart-picker input,
.tacc-cart-picker select {
	font-family: "Poppins", sans-serif;
}

.tacc-cart {
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
	color: var(--tacc-cart-ink);
	overflow-x: hidden;
}

.tacc-cart-picker-overlay {
	color: var(--tacc-cart-ink);
}

.tacc-cart *,
.tacc-cart *::before,
.tacc-cart *::after,
.tacc-cart-picker-overlay *,
.tacc-cart-picker-overlay *::before,
.tacc-cart-picker-overlay *::after {
	box-sizing: border-box;
}

.tacc-cart button:focus-visible,
.tacc-cart a:focus-visible,
.tacc-cart input:focus-visible,
.tacc-cart select:focus-visible,
.tacc-cart-picker button:focus-visible,
.tacc-cart-picker input:focus-visible,
.tacc-cart-picker select:focus-visible {
	outline: 2px solid var(--tacc-cart-ink);
	outline-offset: 2px;
}

/* ---- header ---- */

.tacc-cart-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(14px, 2.4vw, 20px);
	flex-wrap: wrap;
}

.tacc-cart-eyebrow {
	margin: 0;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--tacc-cart-mid);
}

.tacc-cart-header h1 {
	margin: 4px 0 0;
	font-family: "Poiret One", sans-serif;
	font-weight: 400;
	font-size: clamp(26px, 4.4vw, 38px);
	line-height: 1.12;
	color: var(--tacc-cart-ink);
}

.tacc-cart-count {
	margin: 6px 0 0;
	font-size: 14.5px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-clear {
	min-height: 46px;
	padding: 0 16px;
	background: transparent;
	border: 1px solid #d8ccc3;
	border-radius: 12px;
	font-size: 14.5px;
	color: var(--tacc-cart-mid);
	cursor: pointer;
}

.tacc-cart-clear:hover {
	border-color: var(--tacc-cart-ink);
	color: var(--tacc-cart-ink);
}

/* ---- layout ---- */

.tacc-cart-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.tacc-cart-main {
	flex: 999 1 56%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tacc-cart-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tacc-cart-sidebar {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---- item cards ---- */

.tacc-cart-item {
	background: var(--tacc-cart-card);
	border-radius: 18px;
	padding: clamp(15px, 2.2vw, 20px);
	box-shadow: var(--tacc-cart-shadow);
}

.tacc-cart-item.is-blocked {
	box-shadow: var(--tacc-cart-shadow), inset 3px 0 0 var(--tacc-cart-danger);
}

/*
 * A CSS grid, not nested flex -- thumb/top/blocked/foot are direct grid
 * items (not wrapped in an intermediate flex column) specifically so `foot`
 * can be split apart on mobile (see the media query below): its own two
 * children (the qty stepper and the remove/max-note group) get promoted to
 * direct grid items via `display: contents` and placed in different grid
 * areas, moving the stepper under the thumbnail while everything else
 * stays in the details column.
 */
.tacc-cart-item__row {
	display: grid;
	grid-template-columns: clamp(74px, 22%, 92px) minmax(0, 1fr);
	grid-template-areas:
		"thumb top"
		"thumb blocked"
		".     foot";
	column-gap: 15px;
	row-gap: 8px;
}

.tacc-cart-item__thumb {
	grid-area: thumb;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 11px;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #f4efea 0 7px, #e6dcd2 7px 14px);
}

.tacc-cart-item.is-blocked .tacc-cart-item__thumb {
	opacity: 0.55;
}

.tacc-cart-item__thumb a,
.tacc-cart-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tacc-cart-item__top {
	grid-area: top;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.tacc-cart-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.tacc-cart-item__name {
	display: block;
	font-size: 15.5px;
	line-height: 1.35;
	color: var(--tacc-cart-ink);
	text-decoration: none;
}

.tacc-cart-item.is-blocked .tacc-cart-item__name {
	color: var(--tacc-cart-soft);
	text-decoration: line-through;
}

.tacc-cart-item__name:hover {
	color: var(--tacc-cart-mid);
}

.tacc-cart-item__meta {
	display: block;
	margin-top: 5px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--tacc-cart-soft);
	/* Each "Key: value" pair (vendor, size, colour, designer, return policy...)
	   already arrives separated by real newlines (wc_get_formatted_cart_item_data()
	   joins them with "\n", not <br>) -- normal whitespace handling was
	   collapsing them all onto one run-on line. Respect them instead. */
	white-space: pre-line;
}

.tacc-cart-item__sku {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--tacc-cart-soft);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tacc-cart-item__price {
	flex: 0 0 auto;
	font-size: 16.5px;
	color: var(--tacc-cart-ink);
	white-space: nowrap;
}

.tacc-cart-item.is-blocked .tacc-cart-item__price {
	color: var(--tacc-cart-soft);
	text-decoration: line-through;
}

.tacc-cart-item__blocked {
	grid-area: blocked;
	display: block;
	font-size: 13.5px;
	color: var(--tacc-cart-danger);
}

.tacc-cart-item__foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 7px;
	padding-top: 14px;
	border-top: 1px solid var(--tacc-cart-track);
}

.tacc-cart-item__stepper {
	display: flex;
	align-items: center;
	gap: 3px;
	background: #f7f3ef;
	border-radius: 12px;
	padding: 3px;
}

.tacc-cart-item__stepper button {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 0;
	border-radius: 9px;
	color: var(--tacc-cart-ink);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.tacc-cart-item__stepper button:disabled {
	color: var(--tacc-cart-soft);
	box-shadow: inset 0 0 0 1px var(--tacc-cart-line);
	background: transparent;
	cursor: not-allowed;
}

.tacc-cart-item__qty {
	min-width: 34px;
	text-align: center;
	font-size: 15.5px;
}

.tacc-cart-item__unavailable {
	font-size: 13.5px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-item__end {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	min-width: 0;
}

.tacc-cart-item__max-note {
	font-size: 13px;
	color: var(--tacc-cart-warning);
	margin-right: 6px;
}

.tacc-cart-item__remove {
	min-height: 46px;
	padding: 0 12px;
	background: transparent;
	border: 0;
	color: var(--tacc-cart-mid);
	font-size: 14px;
	cursor: pointer;
}

.tacc-cart-item__remove:hover {
	color: var(--tacc-cart-ink);
}

/* ---- coupon ---- */

.tacc-cart-coupon {
	background: var(--tacc-cart-card);
	border-radius: 18px;
	padding: 18px;
}

.tacc-cart-coupon h2 {
	margin: 0 0 5px;
	font-size: 16.5px;
	font-weight: 600;
}

.tacc-cart-coupon > p {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-coupon__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.tacc-cart-coupon__row input {
	flex: 1 1 170px;
	min-width: 0;
	min-height: 50px;
	padding: 0 15px;
	border: 1px solid var(--tacc-cart-line);
	border-radius: 12px;
	background: #fbf9f7;
	font-size: 15.5px;
	color: var(--tacc-cart-ink);
}

.tacc-cart-coupon__row button {
	flex: 0 0 auto;
	min-height: 50px;
	padding: 0 22px;
	background: var(--tacc-cart-track);
	border: 0;
	border-radius: 12px;
	font-size: 15.5px;
	cursor: pointer;
	color: var(--tacc-cart-ink);
}

.tacc-cart-coupon__error {
	margin: 11px 0 0;
	font-size: 13.5px;
	color: var(--tacc-cart-danger);
}

/* ---- discount applied chip: a real coupon-ticket shape, not a text row.
   Dashed border + two punched circles (matching the card's own background,
   var(--tacc-cart-card)) at the join, like a perforated voucher stub. ---- */

.tacc-cart-discount-chip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 13px;
	padding: 12px 16px;
	background: #eef6ee;
	border: 1.5px dashed var(--tacc-cart-success);
	border-radius: 12px;
	font-size: 14px;
	overflow: visible;
}

.tacc-cart-discount-chip::before,
.tacc-cart-discount-chip::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	background: var(--tacc-cart-card);
	border-radius: 50%;
	transform: translateY(-50%);
}

.tacc-cart-discount-chip::before { left: -9px; }
.tacc-cart-discount-chip::after { right: -9px; }

.tacc-cart-discount-chip__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #d9ecd9;
	color: var(--tacc-cart-success);
}

.tacc-cart-discount-chip__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tacc-cart-discount-chip__code {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tacc-cart-ink);
}

.tacc-cart-discount-chip__label {
	font-size: 12.5px;
	color: var(--tacc-cart-success);
}

.tacc-cart-discount-chip button {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 10px;
	background: transparent;
	border: 0;
	color: var(--tacc-cart-mid);
	font-size: 13.5px;
	cursor: pointer;
}

.tacc-cart-discount-chip__auto {
	flex: 0 0 auto;
	padding: 5px 10px;
	border-radius: 8px;
	background: #d9ecd9;
	color: var(--tacc-cart-success);
	font-size: 12px;
	font-weight: 500;
}

/* ---- empty state ---- */

.tacc-cart-empty {
	background: var(--tacc-cart-card);
	border-radius: 20px;
	padding: clamp(30px, 6vw, 60px) clamp(20px, 4vw, 40px);
	text-align: center;
}

.tacc-cart-empty__title {
	margin: 0 0 8px;
	font-family: "Poiret One", sans-serif;
	font-size: clamp(23px, 3.6vw, 30px);
	color: var(--tacc-cart-ink);
}

.tacc-cart-empty__text {
	margin: 0 auto 24px;
	max-width: 40ch;
	font-size: 15px;
	line-height: 1.55;
	color: var(--tacc-cart-soft);
}

.tacc-cart-empty__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	background: var(--tacc-cart-ink);
	color: var(--tacc-cart-bg);
	border: 0;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

/* ---- sidebar: destination + shipping ---- */

.tacc-cart-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tacc-cart-destination {
	background: var(--tacc-cart-card);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--tacc-cart-shadow);
}

.tacc-cart-destination__pin {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tacc-cart-track);
	color: var(--tacc-cart-mid);
}

.tacc-cart-destination__hit {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 66px;
	padding: 14px 18px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: var(--tacc-cart-ink);
}

.tacc-cart-destination__hit.is-empty {
	box-shadow: inset 3px 0 0 var(--tacc-cart-danger);
}

.tacc-cart-destination__text {
	flex: 1 1 auto;
	min-width: 0;
}

.tacc-cart-destination__label {
	display: block;
	font-size: 13px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-destination__value {
	display: block;
	margin-top: 4px;
	font-size: 15.5px;
}

.tacc-cart-destination__hit.is-empty .tacc-cart-destination__value {
	color: var(--tacc-cart-danger);
	font-weight: 500;
}

.tacc-cart-destination__hint {
	margin: 0;
	padding: 0 18px 16px;
	font-size: 13.5px;
	color: var(--tacc-cart-soft);
	line-height: 1.5;
}

.tacc-cart-shipping {
	padding: 0 18px 16px;
}

.tacc-cart-shipping__parcels {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-shipping__table,
.tacc-cart-shipping__table tbody {
	display: block;
	width: 100%;
	border: 0;
}

.tacc-cart-shipping__table tr.shipping {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 11px 0;
	border-bottom: 1px solid var(--tacc-cart-track);
}

.tacc-cart-shipping__table tr.shipping:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tacc-cart-shipping__table th {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	text-align: left;
	font-weight: 400;
	font-size: 14.5px;
	overflow-wrap: anywhere;
	color: var(--tacc-cart-ink);
}

.tacc-cart-shipping__table td {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	text-align: right;
	font-size: 14.5px;
	overflow-wrap: anywhere;
}

.tacc-cart-shipping__table ul.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tacc-cart-shipping__table ul.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.tacc-cart-shipping__table ul.woocommerce-shipping-methods li:last-child {
	margin-bottom: 0;
}

.tacc-cart-shipping__table p.woocommerce-shipping-destination {
	margin: 6px 0 0;
	font-size: 12.8px;
	color: var(--tacc-cart-soft);
}

.tacc-cart-shipping__table p.woocommerce-shipping-destination a {
	color: var(--tacc-cart-mid);
}

/* ---- sidebar: totals ---- */

.tacc-cart-totals {
	background: var(--tacc-cart-card);
	border-radius: 20px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--tacc-cart-shadow);
}

.tacc-cart-totals__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--tacc-cart-ink);
}

.tacc-cart-totals__heading svg {
	flex: 0 0 auto;
	color: var(--tacc-cart-mid);
}

.tacc-cart-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14.5px;
	color: var(--tacc-cart-mid);
}

.tacc-cart-totals__row span:last-child {
	color: var(--tacc-cart-ink);
}

.tacc-cart-totals__row--discount span:last-child {
	color: var(--tacc-cart-success);
}

.tacc-cart-totals__row--total {
	padding-top: 12px;
	border-top: 1px solid var(--tacc-cart-track);
	font-size: 19px;
	color: var(--tacc-cart-ink);
}

.tacc-cart-totals__row--total span:last-child {
	color: var(--tacc-cart-ink);
}

.tacc-cart-totals__row--total small.includes_tax {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--tacc-cart-soft);
	text-align: right;
}

/* ---- sidebar: CTA ---- */

.tacc-cart-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tacc-cart-cta__blocked {
	margin: 0;
	font-size: 13.5px;
	color: var(--tacc-cart-danger);
	line-height: 1.45;
}

.tacc-cart-cta__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 0 22px;
	border: 0;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 500;
	background: var(--tacc-cart-ink);
	color: var(--tacc-cart-bg);
	text-decoration: none;
	cursor: pointer;
}

.tacc-cart-cta__button:hover {
	background: var(--tacc-cart-mid);
	color: #fff !important;
}

.tacc-cart-cta__button.is-outline {
	justify-content: center;
	background: #fff;
	color: var(--tacc-cart-ink);
	border: 1px solid var(--tacc-cart-ink);
}

.tacc-cart-cta__button--single {
	justify-content: center;
}

.tacc-cart-cta__button.is-outline:hover {
	background: var(--tacc-cart-bg);
	color: var(--tacc-cart-ink) !important;
}

.tacc-cart-cta__button.is-disabled {
	background: #e0dad4;
	color: var(--tacc-cart-soft);
	cursor: not-allowed;
}

.tacc-cart-fineprint {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--tacc-cart-soft);
	line-height: 1.6;
}

/* ---- destination picker overlay ---- */

/* A real centered modal: dark scrim behind, a fixed-max-width card in the
   middle. Previously this was position:fixed;inset:0 with no display/centering
   of its own -- a full-bleed page replacement that ignored the site header's
   height entirely and rendered flush against the very top of the viewport. */
.tacc-cart-picker-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(59, 42, 35, 0.55);
	overflow-y: auto;
	padding: clamp(16px, 4vw, 40px);
}

.tacc-cart-picker {
	width: min(560px, 100%);
	max-height: min(85vh, 720px);
	margin: auto;
	background: var(--tacc-cart-card);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(59, 42, 35, 0.28);
	padding: clamp(20px, 3vw, 28px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	/* Still scrolls (mouse wheel, trackpad, touch, drag) -- just without a
	   visible scrollbar track/thumb cluttering the rounded card. */
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tacc-cart-picker::-webkit-scrollbar {
	display: none;
}

.tacc-cart-picker__back {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 4px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--tacc-cart-mid);
	font-size: 15px;
}

.tacc-cart-picker h1 {
	margin: 0;
	font-family: "Poiret One", sans-serif;
	font-weight: 400;
	font-size: clamp(25px, 4vw, 34px);
	line-height: 1.15;
	color: var(--tacc-cart-ink);
}

.tacc-cart-picker__intro {
	margin: 0;
	max-width: 56ch;
	font-size: 14.5px;
	color: var(--tacc-cart-soft);
	line-height: 1.5;
}

.tacc-cart-picker__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 14px;
}

.tacc-cart-picker__fields label {
	display: block;
}

.tacc-cart-picker__fields span {
	display: block;
	font-size: 13px;
	color: var(--tacc-cart-soft);
	margin-bottom: 7px;
}

.tacc-cart-picker__fields input,
.tacc-cart-picker__fields select {
	width: 100%;
	min-height: 50px;
	/* The parent theme's own generic `select` rule forces a fixed height
	   shorter than this padding/font-size actually need, clipping country
	   names in half (same bug already hit and fixed on the account/checkout
	   selects) -- override it here too before it ever shows up. */
	height: auto;
	padding: 0 15px;
	border: 1px solid var(--tacc-cart-line);
	border-radius: 12px;
	background: #fff;
	font-size: 15.5px;
	color: var(--tacc-cart-ink);
}

.tacc-cart-picker__fields select {
	padding: 0 12px;
}

.tacc-cart-picker__error {
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fbeaea;
	font-size: 13.5px;
	color: var(--tacc-cart-danger);
}

/* Pinned to the bottom of the modal so it's always visible -- picking a
   country from the select above only highlights the choice; "Continue" is
   the one action that actually saves the destination. */
.tacc-cart-picker__footer {
	position: sticky;
	bottom: 0;
	margin: 20px calc(-1 * clamp(20px, 3vw, 28px)) calc(-1 * clamp(20px, 3vw, 28px));
	padding: 18px clamp(20px, 3vw, 28px);
	background: var(--tacc-cart-card);
	border-top: 1px solid var(--tacc-cart-track);
}

.tacc-cart-picker__footer .tacc-cart-cta__button {
	width: 100%;
}

/* ---- toast ---- */

.tacc-toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	width: min(430px, calc(100vw - 32px));
	z-index: 130;
}

.tacc-toast__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--tacc-cart-ink);
	color: var(--tacc-cart-bg);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(28, 22, 20, 0.28);
}

.tacc-toast__text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14.5px;
	line-height: 1.4;
}

.tacc-toast__undo {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 12px;
	background: transparent;
	border: 1px solid #8a7466;
	border-radius: 9px;
	color: var(--tacc-cart-bg);
	font-size: 13.5px;
	cursor: pointer;
}

.tacc-toast__dismiss {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: #e6d9cf;
	font-size: 18px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.tacc-cart-layout {
		flex-direction: column;
	}

	.tacc-cart-main,
	.tacc-cart-sidebar {
		flex-basis: auto;
		width: 100%;
	}
}

@media (max-width: 580px) {
	body.woocommerce-cart .content-page {
		padding-top: 24px;
	}

	.tacc-cart {
		width: min(100% - 24px, 1180px);
	}

	/*
	 * Move the qty stepper under the thumbnail (its own column) while
	 * everything else -- name, price, blocked note, max-note, remove --
	 * stays in the details column. `.tacc-cart-item__foot` becomes
	 * `display: contents` so its two children (stepper, end) are promoted
	 * to direct grid items of `.tacc-cart-item__row` and can be placed in
	 * different areas; it also stops rendering as a box, so the divider
	 * line it used to draw moves onto `.tacc-cart-item__end` instead.
	 */
	.tacc-cart-item__row {
		grid-template-areas:
			"thumb   top"
			"thumb   blocked"
			"stepper endinfo";
	}

	.tacc-cart-item__foot {
		display: contents;
	}

	.tacc-cart-item__stepper,
	.tacc-cart-item__unavailable {
		grid-area: stepper;
		align-self: start;
		margin-top: 8px;
	}

	.tacc-cart-item__end {
		grid-area: endinfo;
		width: 100%;
		justify-content: space-between;
		margin-top: 7px;
		padding-top: 14px;
		border-top: 1px solid var(--tacc-cart-track);
	}

	/* Price moves after the name/meta/SKU block (it's already second in
	   markup order) instead of sitting cramped next to the title, and reads
	   as a clear total for the line rather than fine print. */
	.tacc-cart-item__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.tacc-cart-item__price {
		margin-top: 2px;
		font-size: 20px;
		font-weight: 600;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tacc-cart *,
	.tacc-cart *::before,
	.tacc-cart *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
