:root {
	--tsc-accent: #643f36;
	--tsc-accent-strong: #5e281b;
	--tsc-ink: #211b19;
	--tsc-muted: #6f6966;
	--tsc-line: #e0dbd8;
	--tsc-wash: #f6f3f1;
	--tsc-card: #ffffff;
	--tsc-success: #237a4b;
	--tsc-danger: #a12e35;
	--tsc-radius-lg: 28px;
	--tsc-radius-md: 18px;
	--tsc-shadow: 0 24px 80px rgba(54, 35, 29, .18);
}

html.tsc-lock,
html.tsc-lock body { overflow: hidden !important; overscroll-behavior: none; }

.tsc-root,
.tsc-root * { box-sizing: border-box; }

.tsc-root {
	font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--tsc-ink);
	-webkit-font-smoothing: antialiased;
}

.tsc-root button,
.tsc-root input { font: inherit; touch-action: manipulation; }

.tsc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999997;
	background: rgba(28, 20, 17, .38);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.tsc-drawer {
	position: fixed;
	z-index: 999998;
	top: 12px;
	right: 12px;
	bottom: 12px;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	width: min(440px, calc(100vw - 24px));
	background: var(--tsc-card);
	border: 1px solid rgba(100, 63, 54, .12);
	border-radius: var(--tsc-radius-lg);
	box-shadow: var(--tsc-shadow);
	overflow: hidden;
	transform: translateX(calc(100% + 32px));
	visibility: hidden;
	transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s;
	outline: none;
}

.tsc-root.is-open .tsc-backdrop { opacity: 1; visibility: visible; }
.tsc-root.is-open .tsc-drawer { transform: translateX(0); visibility: visible; }

.tsc-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 24px 24px 18px;
	border-bottom: 1px solid var(--tsc-line);
}

.tsc-eyebrow {
	margin: 0 0 4px;
	color: var(--tsc-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tsc-drawer__header h2 {
	margin: 0;
	font-size: clamp(24px, 6vw, 32px);
	font-weight: 650;
	letter-spacing: -.04em;
	line-height: 1.1;
}

.tsc-drawer__header h2 span {
	display: inline-grid;
	min-width: 28px;
	height: 28px;
	margin-left: 5px;
	place-items: center;
	vertical-align: 4px;
	border-radius: 999px;
	background: var(--tsc-wash);
	font-size: 12px;
	letter-spacing: 0;
}

.tsc-icon-button {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--tsc-wash);
	color: var(--tsc-ink);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.tsc-icon-button:hover { background: #eee8e5; transform: rotate(3deg); }
.tsc-icon-button:focus-visible,
.tsc-root button:focus-visible,
.tsc-root a:focus-visible,
.tsc-root input:focus-visible { outline: 3px solid rgba(100, 63, 54, .28); outline-offset: 2px; }
.tsc-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tsc-live-region { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; }

.tsc-drawer__content {
	min-height: 0;
	padding: 0 24px 24px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #d4cbc7 transparent;
}

.tsc-drawer.is-busy .tsc-drawer__content { opacity: .64; pointer-events: none; }

.tsc-skeleton { display: grid; gap: 14px; padding-top: 22px; }
.tsc-skeleton span { height: 104px; border-radius: var(--tsc-radius-md); background: linear-gradient(90deg, #f2efed 25%, #faf8f7 50%, #f2efed 75%); background-size: 200% 100%; animation: tsc-shimmer 1.25s infinite linear; }
@keyframes tsc-shimmer { to { background-position-x: -200%; } }

.tsc-items { display: grid; }
.tsc-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--tsc-line); transition: background-color .2s ease, border-color .2s ease; }
.tsc-item__image { display: block; height: 112px; border-radius: 15px; background: var(--tsc-wash); overflow: hidden; }
.tsc-item__image img { width: 100%; height: 100%; object-fit: cover; }
.tsc-item__main { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 14px; }
.tsc-item__top { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 5px; }
.tsc-item__name { display: block; color: var(--tsc-ink); font-size: 16px; font-weight: 650; line-height: 1.42; text-decoration: none; }
.tsc-item__name:hover { color: var(--tsc-accent); }
.tsc-item__meta { margin-top: 6px; color: var(--tsc-muted); font-size: 13px; line-height: 1.5; }
.tsc-item__meta dl,
.tsc-item__meta p { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; }
.tsc-item__meta dt,
.tsc-item__meta dd { margin: 0; }
.tsc-item__remove { width: 44px; height: 44px; justify-self: end; background: transparent; color: var(--tsc-muted); }
.tsc-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tsc-item__price { font-size: 16px; white-space: nowrap; }
.tsc-quantity { display: grid; grid-template-columns: 44px 34px 44px; min-height: 44px; align-items: center; border: 1px solid var(--tsc-line); border-radius: 999px; overflow: hidden; }
.tsc-quantity button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--tsc-ink); cursor: pointer; font-size: 18px; touch-action: manipulation; }
.tsc-quantity button:hover { background: var(--tsc-wash); }
.tsc-quantity button:active { background: #e8e0dc; }
.tsc-quantity button:disabled { opacity: .32; cursor: not-allowed; }
.tsc-quantity output { text-align: center; font-size: 14px; font-weight: 650; }

.tsc-free-shipping { margin: 18px 0 2px; padding: 16px; border: 1px solid rgba(100, 63, 54, .1); border-radius: 16px; background: var(--tsc-wash); }
.tsc-free-shipping__copy { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; color: var(--tsc-ink); font-size: 14px; font-weight: 650; line-height: 1.4; }
.tsc-free-shipping__copy strong { color: var(--tsc-accent); white-space: nowrap; }
.tsc-free-shipping__track { height: 7px; margin-top: 11px; border-radius: 99px; background: #dfd8d4; overflow: hidden; }
.tsc-free-shipping__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tsc-accent), #9a7064); transition: width .3s ease; }
.tsc-free-shipping small { display: block; margin-top: 8px; color: var(--tsc-muted); font-size: 12px; line-height: 1.45; }

.tsc-coupon { padding: 20px 0 2px; }
.tsc-coupon > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.tsc-coupon > div { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 10px; }
.tsc-coupon input { width: 100%; min-width: 0; height: 50px; padding: 0 15px; border: 1px solid #d8d0cc; border-radius: 13px; outline: 0; background: #fff; color: var(--tsc-ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.tsc-coupon input:focus { border-color: var(--tsc-accent); box-shadow: 0 0 0 3px rgba(100, 63, 54, .1); }
.tsc-coupon input::placeholder { color: #958a85; opacity: 1; }
.tsc-coupon button { min-width: 0; min-height: 50px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--tsc-accent); color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; transition: background-color .2s, transform .2s; }
.tsc-coupon button:hover { background: var(--tsc-accent-strong); transform: translateY(-1px); }
.tsc-coupon button:active,
.tsc-button--primary:active,
.tsc-launcher:active { transform: scale(.985); }
.tsc-coupons { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.tsc-coupons > span { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 4px 6px 4px 12px; border-radius: 99px; background: #edf6f0; color: #205c3d; font-size: 11px; font-weight: 650; text-transform: uppercase; }
.tsc-coupons button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(35, 122, 75, .1); color: inherit; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
	.tsc-item:hover { border-color: rgba(100, 63, 54, .22); background: linear-gradient(90deg, transparent, rgba(100, 63, 54, .025), transparent); }
}

@media (max-width: 520px) {
	.tsc-free-shipping__copy { align-items: flex-start; flex-direction: column; gap: 3px; }
	.tsc-coupon > div { grid-template-columns: minmax(0, 1fr); }
	.tsc-coupon button { width: 100%; }
}

.tsc-drawer__footer { padding: 18px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--tsc-line); background: rgba(255, 255, 255, .95); }
.tsc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tsc-total span { color: var(--tsc-muted); font-size: 15px; }
.tsc-total strong { color: var(--tsc-ink); font-size: 22px; letter-spacing: -.03em; }
.tsc-total__note { margin: 5px 0 14px; color: var(--tsc-muted); font-size: 12px; line-height: 1.5; }
.tsc-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.tsc-button--primary { width: 100%; background: var(--tsc-accent); color: #fff !important; box-shadow: 0 10px 24px rgba(100, 63, 54, .2); }
.tsc-button--primary:hover { transform: translateY(-1px); background: var(--tsc-accent-strong); box-shadow: 0 13px 30px rgba(100, 63, 54, .26); }
.tsc-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsc-trust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; color: var(--tsc-muted); font-size: 12px; line-height: 1.45; }
.tsc-trust span { display: inline-flex; align-items: center; gap: 4px; }
.tsc-trust svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tsc-empty { display: flex; min-height: 100%; padding: 54px 8px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.tsc-empty__art { display: grid; width: 104px; height: 104px; margin-bottom: 18px; place-items: center; border-radius: 36px; background: var(--tsc-wash); color: var(--tsc-accent); transform: rotate(-3deg); }
.tsc-empty__art svg { width: 72px; height: 72px; }
.tsc-empty h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; }
.tsc-empty p { max-width: 290px; margin: 0 0 22px; color: var(--tsc-muted); font-size: 13px; line-height: 1.6; }
.tsc-empty .tsc-button { width: auto; padding-inline: 28px; }
.tsc-error { padding: 50px 14px; text-align: center; }
.tsc-error p { color: var(--tsc-muted); font-size: 13px; line-height: 1.55; }
.tsc-error button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--tsc-accent); color: #fff; cursor: pointer; font-weight: 650; }

.tsc-launcher {
	position: fixed;
	z-index: 999996;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
	display: none;
	min-height: 52px;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 8px 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: var(--tsc-accent);
	box-shadow: 0 14px 36px rgba(64, 38, 31, .28);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	transition: transform .2s ease, box-shadow .2s ease;
}
.tsc-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(64, 38, 31, .34); }
.tsc-launcher:active,
.tsc-button:active,
.tsc-icon-button:active,
.tsc-quantity button:active { transform: scale(.97); }
.tsc-launcher > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsc-launcher > span { font-size: 14px; }
.tsc-launcher__count { display: grid; min-width: 34px; height: 34px; padding: 0 7px; place-items: center; border-radius: 99px; background: #fff; color: var(--tsc-accent); font-size: 11px; }

.tsc-toast { position: fixed; z-index: 1000000; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px)); display: flex; min-height: 48px; align-items: center; gap: 24px; padding: 10px 12px 10px 18px; border-radius: 999px; background: #211b19; box-shadow: 0 14px 38px rgba(0, 0, 0, .24); color: #fff; opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; font-size: 12px; }
.tsc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.tsc-toast button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
	.tsc-launcher { display: flex; }
	.tsc-checkout-page .tsc-launcher,
	.woocommerce-cart .tsc-launcher { display: none; }
	.tsc-drawer { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: min(88dvh, 820px); max-height: calc(100dvh - 12px); border-width: 1px 0 0; border-radius: 28px 28px 0 0; transform: translateY(calc(100% + 20px)); }
	.tsc-root.is-open .tsc-drawer { transform: translateY(0); }
	.tsc-drawer::before { content: ""; position: absolute; z-index: 2; top: 7px; left: 50%; width: 42px; height: 4px; border-radius: 99px; background: #d3cbc8; transform: translateX(-50%); }
	.tsc-drawer__header { padding-top: 25px; }
	.tsc-toast { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); }
}

@media (max-width: 420px) {
	.tsc-drawer__header { padding-inline: 18px; }
	.tsc-drawer__content { padding-inline: 18px; }
	.tsc-drawer__footer { padding-inline: 18px; }
	.tsc-item { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
	.tsc-item__image { height: 104px; }
	.tsc-item__name { font-size: 15px; }
	.tsc-trust { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.tsc-root *,
	.tsc-root *::before,
	.tsc-root *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
