/* Public design contract. Override --jtc-* on #jt-cart to bind any theme's tokens. */
.jtc {
  --jtc-bg: #f7f4ed;
  --jtc-surface: #fff;
  --jtc-text: #191b18;
  --jtc-muted: #666a62;
  --jtc-border: #deded5;
  --jtc-accent: #243c30;
  --jtc-button-bg: #243c30;
  --jtc-button-text: #fff;
  --jtc-font-body: inherit;
  --jtc-font-heading: Georgia, serif;
  --jtc-width: 480px;
  --jtc-radius: 2px;
  --jtc-image-radius: 0px;
  --jtc-heading-size: 32px;
  --jtc-body-size: 14px;
  --jtc-space: 28px;
  color: var(--jtc-text);
  font-family: var(--jtc-font-body);
  font-size: var(--jtc-body-size);
  line-height: 1.5;
}
.jtc *, .jtc *::before, .jtc *::after { box-sizing: border-box; }
.jtc [hidden] { display: none !important; }
.jtc p, .jtc h2, .jtc h3, .jtc dl, .jtc dd, .jtc ul { margin: 0; padding: 0; }
.jtc a { color: inherit; text-decoration: none; }
.jtc button, .jtc input, .jtc select { font: inherit; letter-spacing: normal; text-transform: none; }
.jtc button { cursor: pointer; min-width: 0; box-shadow: none; }
.jtc button:disabled { cursor: not-allowed; opacity: .45; }
.jtc :focus-visible { outline: 2px solid var(--jtc-accent); outline-offset: 4px; }
.jtc svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.jtc .jtc-dialog {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(var(--jtc-width), 100vw); max-width: 100vw;
  height: 100vh; height: 100dvh; max-height: 100dvh;
  border: 0; border-left: 1px solid var(--jtc-border); border-radius: 0;
  padding: 0; background: var(--jtc-bg); color: var(--jtc-text);
  font: inherit; overflow: hidden;
  box-shadow: -24px 0 80px rgb(0 0 0 / .12);
}
.jtc .jtc-dialog[open] { display: flex; flex-direction: column; animation: jtc-enter .28s cubic-bezier(.2,.7,.3,1); }
.jtc .jtc-dialog::backdrop { background: rgb(17 24 20 / .46); animation: jtc-fade .25s ease; }
.jtc[data-side="left"] .jtc-dialog { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--jtc-border); }
.jtc[data-side="left"] .jtc-dialog[open] { animation-name: jtc-enter-left; }
.jtc .jtc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px var(--jtc-space) 20px; border-bottom: 1px solid var(--jtc-border); flex-shrink: 0; }
.jtc .jtc-eyebrow { font-family: var(--jtc-font-body); font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: var(--jtc-muted); }
.jtc .jtc-title { display: flex; align-items: center; gap: 12px; margin-top: 5px; font-family: var(--jtc-font-heading); font-size: var(--jtc-heading-size); font-weight: 400; line-height: 1.2; color: var(--jtc-text); }
.jtc .jtc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--jtc-border); border-radius: 50%; font-family: var(--jtc-font-body); font-size: 12px; line-height: 1; }
.jtc .jtc-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--jtc-radius); background: transparent; color: var(--jtc-text); }
.jtc .jtc-icon-button:hover { background: color-mix(in srgb, var(--jtc-text) 6%, transparent); }
.jtc .jtc-message { margin: 12px var(--jtc-space) 0; padding: 12px; border: 1px solid var(--jtc-border); background: var(--jtc-surface); font-size: 12px; flex-shrink: 0; max-height: 100px; overflow-y: auto; }
.jtc .jtc-message a { text-decoration: underline; }
.jtc .jtc-body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; padding: 0 var(--jtc-space); scrollbar-width: thin; scrollbar-color: var(--jtc-border) transparent; }
.jtc .jtc-loading { padding-block: 32px; color: var(--jtc-muted); }
.jtc .jtc-rewards { padding: 20px 0; border-bottom: 1px solid var(--jtc-border); }
.jtc .jtc-milestone + .jtc-milestone { margin-top: 16px; }
.jtc .jtc-reward-row { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.jtc .jtc-reward-row svg { color: var(--jtc-accent); width: 20px; height: 20px; }
.jtc .jtc-progress { height: 4px; background: var(--jtc-border); margin-top: 12px; overflow: hidden; border-radius: 99px; }
.jtc .jtc-progress span { display: block; height: 100%; background: var(--jtc-accent); transition: width .25s ease; }
.jtc .jtc-reward-note { margin-top: 7px; font-size: 10px; line-height: 1.45; color: var(--jtc-muted); }
.jtc .jtc-items { list-style: none; }
.jtc .jtc-item { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--jtc-border); }
.jtc .jtc-product-image, .jtc .jtc-recommendation-image { display: flex; align-items: center; justify-content: center; background: var(--jtc-surface); border-radius: var(--jtc-image-radius); overflow: hidden; align-self: start; aspect-ratio: 6 / 7; }
.jtc .jtc-product-image img, .jtc .jtc-recommendation-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jtc .jtc-product-image > svg { width: 32px; height: 32px; color: var(--jtc-muted); }
.jtc .jtc-product-name { display: block; font-family: var(--jtc-font-heading); font-size: calc(var(--jtc-body-size) + 3px); font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.jtc .jtc-product-name:hover, .jtc .jtc-recommendation-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.jtc .jtc-product-meta { color: var(--jtc-muted); font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.jtc .jtc-product-price { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; }
.jtc .jtc-product-price del { color: var(--jtc-muted); }
.jtc .jtc-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.jtc .jtc-quantity { display: flex; align-items: center; border: 1px solid var(--jtc-border); border-radius: var(--jtc-radius); background: var(--jtc-surface); }
.jtc .jtc-quantity .jtc-icon-button { width: 38px; height: 38px; }
.jtc .jtc-quantity svg { width: 12px; height: 12px; }
.jtc .jtc-quantity-value { min-width: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.jtc .jtc-text-button { padding: 8px 0; color: var(--jtc-muted); background: transparent; border: 0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.jtc .jtc-gift-label { display: inline-block; margin-bottom: 5px; font-size: 9px; font-weight: 600; letter-spacing: .1em; color: var(--jtc-accent); }
.jtc .jtc-recommendations { padding: 24px 0; }
.jtc .jtc-section-title { font-family: var(--jtc-font-heading); font-weight: 400; font-size: 20px; line-height: 1.3; margin-top: 5px; margin-bottom: 16px; }
.jtc .jtc-recommendation { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; background: var(--jtc-surface); border: 1px solid var(--jtc-border); border-radius: var(--jtc-radius); }
.jtc .jtc-recommendation + .jtc-recommendation { margin-top: 8px; }
.jtc .jtc-recommendation-name { font-size: 12px; line-height: 1.35; display: block; overflow-wrap: anywhere; }
.jtc .jtc-recommendation-price { margin-top: 5px; color: var(--jtc-muted); font-size: 11px; }
.jtc .jtc-recommendation-price del { margin-right: 6px; }
.jtc .jtc-recommendation-price ins { text-decoration: none; color: var(--jtc-text); background: transparent; }
.jtc .jtc-small-button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; min-height: 40px; border: 1px solid var(--jtc-border); background: var(--jtc-surface); border-radius: var(--jtc-radius); color: var(--jtc-text); font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.jtc .jtc-small-button:hover { border-color: var(--jtc-accent); }
.jtc .jtc-choices { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--jtc-border); }
.jtc .jtc-choice-label { display: block; flex: 1 1 120px; color: var(--jtc-muted); font-size: 11px; }
.jtc .jtc-choice-select { display: block; width: 100%; margin-top: 4px; min-height: 40px; padding: 8px; border: 1px solid var(--jtc-border); border-radius: var(--jtc-radius); background: var(--jtc-surface); color: var(--jtc-text); font-size: 12px; }
.jtc .jtc-choice-info { width: 100%; font-size: 11px; }
.jtc .jtc-summary { flex: 0 0 auto; padding: 16px var(--jtc-space) max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--jtc-border); background: var(--jtc-bg); box-shadow: 0 -8px 24px rgb(0 0 0 / .025); max-height: 53%; overflow-y: auto; }
.jtc .jtc-coupon { border-bottom: 1px solid var(--jtc-border); padding-bottom: 12px; margin-bottom: 14px; font-size: 11px; }
.jtc .jtc-coupon summary { cursor: pointer; color: var(--jtc-muted); padding: 4px 0; }
.jtc .jtc-coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.jtc .jtc-coupon input { width: 100%; min-width: 0; border: 1px solid var(--jtc-border); padding: 10px 12px; border-radius: var(--jtc-radius); color: var(--jtc-text); background: var(--jtc-surface); font-size: 12px; }
.jtc .jtc-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 12px; }
.jtc .jtc-totals dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.jtc .jtc-coupon-row dt { display: flex; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.jtc .jtc-coupon-row .jtc-icon-button { width: 28px; height: 28px; flex-shrink: 0; }
.jtc .jtc-coupon-row svg { width: 12px; height: 12px; }
.jtc .jtc-totals .jtc-total-row { font-size: 18px; margin-top: 14px; color: var(--jtc-text); font-weight: 500; }
.jtc .jtc-tax-note { margin-top: 5px; font-size: 10px; color: var(--jtc-muted); }
.jtc .jtc-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 15px 20px; background: var(--jtc-button-bg); color: var(--jtc-button-text); border: 1px solid var(--jtc-button-bg); border-radius: var(--jtc-radius); font-size: 12px; font-weight: 500; text-decoration: none; letter-spacing: .04em; }
.jtc .jtc-button:hover { filter: brightness(1.12); color: var(--jtc-button-text); }
.jtc .jtc-checkout { margin-top: 16px; }
.jtc .jtc-button[aria-disabled="true"] { opacity: .55; cursor: progress; }
.jtc .jtc-continue { display: block; min-height: 32px; padding: 6px 0; margin: 6px auto 0; border: 0; background: transparent; color: var(--jtc-muted); font-size: 11px; }
.jtc .jtc-trust { font-size: 9px; color: var(--jtc-muted); text-align: center; letter-spacing: .025em; margin-top: 4px; }
.jtc .jtc-empty { padding: 70px 12px; text-align: center; }
.jtc .jtc-empty-emblem { width: 88px; height: 88px; margin: 0 auto 26px; display: grid; place-items: center; border: 1px solid var(--jtc-border); border-radius: 50%; }
.jtc .jtc-empty-emblem svg { width: 32px; height: 32px; color: var(--jtc-accent); }
.jtc .jtc-empty-title { font-family: var(--jtc-font-heading); font-size: 28px; font-weight: 400; line-height: 1.2; margin-top: 12px; }
.jtc .jtc-empty-text { margin: 14px auto 28px; color: var(--jtc-muted); max-width: 260px; font-size: 13px; }
.jtc .jtc-empty .jtc-button { max-width: 260px; margin: auto; }
.jtc .jtc-floating { position: fixed; right: 22px; bottom: 22px; z-index: 999; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 18px; background: var(--jtc-button-bg); color: var(--jtc-button-text); border: 0; border-radius: var(--jtc-radius); box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.jtc[data-side="left"] .jtc-floating { left: 22px; right: auto; }
.jtc .jtc-floating-count { font-size: 12px; }
.jtc .jtc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jtc.jtc--preview .jtc-dialog { position: relative; inset: auto; width: min(100%, var(--jtc-width)); max-width: 100%; height: 830px; max-height: none; box-shadow: none; border: 1px solid var(--jtc-border); animation: none; }
.jtc--preview { container-type: inline-size; }
@keyframes jtc-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes jtc-enter-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes jtc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 480px) {
  .jtc { --jtc-space: 20px; }
  .jtc .jtc-dialog { width: 100vw; }
  .jtc .jtc-header { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 16px; }
  .jtc .jtc-item { grid-template-columns: 76px minmax(0,1fr); gap: 14px; }
  .jtc .jtc-summary { padding-top: 12px; }
  .jtc .jtc-recommendation { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; padding: 10px; }
}
@container (max-width: 370px) {
  .jtc .jtc-recommendation { grid-template-columns: 48px minmax(0,1fr); }
  .jtc .jtc-recommendation > .jtc-small-button { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .jtc .jtc-dialog[open], .jtc .jtc-dialog::backdrop { animation: none; }
  .jtc .jtc-progress span { transition: none; }
}
