/* Cosara slide-out cart. Brand tokens are read from the theme where they exist
   (--color-button etc. are defined by Dawn's colour schemes) so the drawer stays
   in sync with the storefront instead of hard-coding a second palette. */
.fsc-root {
  --fsc-ink: var(--fsc-fg, 47, 5, 38);
  --fsc-bg: 255, 255, 255;
  --fsc-line: rgba(47, 5, 38, .14);
  --fsc-muted: rgba(47, 5, 38, .62);
  --fsc-radius: 40px;
  --fsc-w: 440px;
  font-family: Questrial, var(--font-body-family, sans-serif);
  color: rgb(var(--fsc-ink));
}
.fsc-scrim {
  display: block !important;   /* beats Dawn's div:empty{display:none} */
  position: fixed; inset: 0; background: rgba(20, 2, 16, .48);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 2147483000;
}
.fsc-scrim[data-open="1"] { opacity: 1; pointer-events: auto; }

.fsc-panel {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(var(--fsc-w), 100vw);
  background: #fff;                      /* opaque from frame one, never see-through */
  background: rgb(var(--fsc-bg, 255, 255, 255));
  z-index: 2147483001;
  isolation: isolate;                    /* own stacking context, no blending with the scrim */
  transform: translateX(100%); transition: transform .22s cubic-bezier(.32,.72,0,1);
  will-change: transform; backface-visibility: hidden;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(20, 2, 16, .18);
}
.fsc-panel[data-open="1"] { transform: none; }

/* On a phone a full-bleed panel leaves nothing to tap to dismiss, and the upsell rail
   sits exactly where a dismiss-tap lands. Keep a scrim strip so "tap outside to close"
   works on mobile too. */
@media (max-width: 749px) {
  .fsc-panel { width: min(440px, calc(100vw - 52px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fsc-scrim, .fsc-panel { transition: none; }
}

.fsc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--fsc-line);
}
.fsc-title {
  font-family: Domine, var(--font-heading-family, serif);
  font-size: 19px; margin: 0; letter-spacing: .01em;
}
.fsc-count { font-size: 13px; color: rgb(var(--fsc-ink)); opacity: .6; }
.fsc-x {
  background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px -6px -8px 0;
  line-height: 0; border-radius: 50%; color: inherit;
}
.fsc-x:hover { background: rgba(47, 5, 38, .07); }
.fsc-x:focus-visible { outline: 2px solid rgb(var(--fsc-ink)); outline-offset: 2px; }

.fsc-ship {
  padding: 12px 22px 4px; font-size: 13px; color: var(--fsc-muted);
}
.fsc-ship strong { font-weight: 700; color: rgb(var(--fsc-ink)); }

.fsc-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 8px; }

.fsc-empty { text-align: center; padding: 56px 10px; color: var(--fsc-muted); }
.fsc-empty p { margin: 0 0 20px; }

.fsc-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--fsc-line); }
.fsc-item-img { display: block; }
.fsc-item img { width: 78px; height: 92px; content-visibility: auto; object-fit: cover; border-radius: 10px; background: rgba(47,5,38,.05); }
.fsc-item-name { font-size: 14px; line-height: 1.35; margin: 0 0 2px; }
.fsc-item-name a { color: inherit; text-decoration: none; }
.fsc-item-name a:hover { text-decoration: underline; }
.fsc-item-variant { font-size: 12px; color: var(--fsc-muted); margin: 0 0 8px; }
.fsc-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fsc-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.fsc-was { color: var(--fsc-muted); text-decoration: line-through; margin-right: 6px; font-size: 12px; }

.fsc-qty { display: inline-flex; align-items: center; border: 1px solid var(--fsc-line); border-radius: 99px; }
.fsc-qty button {
  width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 15px;
  color: inherit; border-radius: 50%; line-height: 1;
}
.fsc-qty button:hover:not(:disabled) { background: rgba(47, 5, 38, .07); }
.fsc-qty button:disabled { opacity: .35; cursor: default; }
.fsc-qty span { min-width: 26px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.fsc-remove { background: none; border: 0; padding: 0; font-size: 12px; color: var(--fsc-muted); cursor: pointer; text-decoration: underline; }
.fsc-remove:hover { color: rgb(var(--fsc-ink)); }

/* upsell rail */
.fsc-reco { border-top: 1px solid var(--fsc-line); padding: 16px 0 4px; }
.fsc-reco h3 { font-family: Domine, var(--font-heading-family, serif); font-size: 14px; margin: 0 0 12px; font-weight: 400; }
.fsc-add {
  width: 100%; border: 1px solid rgb(var(--fsc-ink)); background: none; color: rgb(var(--fsc-ink));
  border-radius: 99px; padding: 7px 6px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.fsc-add:hover:not(:disabled) { background: rgb(var(--fsc-ink)); color: #fff; }
.fsc-add:disabled { opacity: .5; cursor: default; }
/* Margins, not gap: a collapsing row has to take its spacing with it, or the rows
   below jump the moment the node is removed. */
.fsc-reco-list { display: flex; flex-direction: column; }
.fsc-up + .fsc-up { margin-top: 10px; }
.fsc-up {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--fsc-line); border-radius: 12px; background: rgba(47,5,38,.025);
  transition: border-color .18s ease, background-color .18s ease;
}
.fsc-up.is-added { border-color: rgba(47,5,38,.42); background: rgba(47,5,38,.06); }
.fsc-up-img { flex: 0 0 64px; }
.fsc-up-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; background: rgba(47,5,38,.05); }
.fsc-up-txt { flex: 1 1 auto; min-width: 0; }
.fsc-up-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0 0 2px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fsc-up-name a { color: inherit; text-decoration: none; }
.fsc-up-pitch { font-size: 12px; line-height: 1.35; color: var(--fsc-muted); margin: 0 0 4px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fsc-up-price { font-size: 13px; margin: 0; font-variant-numeric: tabular-nums; }
.fsc-up-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
.fsc-up-was { color: var(--fsc-muted); font-size: 12px; }
.fsc-up-now { font-weight: 600; }
.fsc-up-saving { color: rgb(var(--fsc-ink)); font-size: 11px; font-weight: 600; white-space: nowrap; }
.fsc-up-price [hidden] { display: none !important; }

/* Fixed width across Add / Adding / Added, so the row never resizes mid-interaction. */
.fsc-up-add { flex: 0 0 auto; width: auto; min-width: 88px; min-height: 44px; padding: 10px 12px;
  font-size: 13px; font-weight: 600; transition: background-color .18s ease, color .18s ease, opacity .18s ease; }
.fsc-up-add.is-busy { opacity: .6; }
.fsc-up-add.is-done, .fsc-up-add.is-done:disabled {
  background: rgb(var(--fsc-ink)); color: #fff; border-color: rgb(var(--fsc-ink)); opacity: 1;
}

/* enter / leave */
@keyframes fsc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fsc-in { animation: fsc-pop .22s cubic-bezier(.32,.72,0,1) both; }
.fsc-collapse {
  overflow: hidden;
  transition: height .2s ease, opacity .18s ease, margin .2s ease, padding .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fsc-in { animation: none; }
  .fsc-collapse, .fsc-up, .fsc-up-add, .fsc-row-busy { transition: none; }
}
@media (max-width: 749px) {
  .fsc-up { gap: 10px; padding: 8px; }
  .fsc-up-img { flex-basis: 56px; }
  .fsc-up-img img { width: 56px; height: 56px; }
}

.fsc-foot { border-top: 1px solid var(--fsc-line); padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); background: #fff; background: rgb(var(--fsc-bg, 255, 255, 255)); }
.fsc-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 15px; }
.fsc-sub strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.fsc-note { font-size: 12px; color: var(--fsc-muted); margin: 0 0 14px; }
.fsc-checkout {
  display: block; width: 100%; text-align: center; background: rgb(var(--fsc-ink)); color: #fff;
  border: 0; border-radius: var(--fsc-radius); padding: 16px; font-size: 15px; cursor: pointer;
  text-decoration: none; font-family: inherit; letter-spacing: .02em;
}
.fsc-checkout:hover { opacity: .9; }
.fsc-checkout:disabled { opacity: .4; cursor: default; }
.fsc-continue { display: block; width: 100%; margin-top: 10px; background: none; border: 0; color: var(--fsc-muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit; }

/* A row that is updating, never the whole panel: dimming everything made an add
   look like the drawer was reloading. */
.fsc-row-busy { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
.fsc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* search results (the mirrored /search snapshot is empty, so we render our own) */
.fsc-search-in { max-width: 1200px; margin: 0 auto; padding: 48px 20px 80px; }
.fsc-search-in h1 { font-family: Domine, var(--font-heading-family, serif); font-size: 30px; margin: 0 0 20px; font-weight: 400; }
.fsc-search-form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 10px; }
.fsc-search-form input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--fsc-line); border-radius: 99px;
  font-family: inherit; font-size: 15px; color: inherit; background: #fff;
}
.fsc-search-form input:focus-visible { outline: 2px solid rgb(var(--fsc-ink)); outline-offset: 1px; }
.fsc-search-form button {
  border: 0; background: rgb(var(--fsc-ink)); color: #fff; border-radius: 99px;
  padding: 13px 28px; cursor: pointer; font-family: inherit; font-size: 15px;
}
.fsc-search-meta { color: var(--fsc-muted); font-size: 14px; margin: 0 0 28px; }
.fsc-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 22px; }
.fsc-sr-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: rgba(47,5,38,.05); display: block; }
.fsc-sr-name { font-size: 14px; margin: 10px 0 2px; line-height: 1.3; }
.fsc-sr-name a { color: inherit; text-decoration: none; }
.fsc-sr-name a:hover { text-decoration: underline; }
.fsc-sr-price { font-size: 13px; color: var(--fsc-muted); margin: 0 0 10px; font-variant-numeric: tabular-nums; }

/* Checkout+ (order protection) — auto-attached, opt-out, mirroring the Shopify widget */
.fsc-cp { border-top: 1px solid var(--fsc-line); padding: 14px 0 10px; margin-bottom: 4px; }
.fsc-cp-row { display: flex; align-items: center; gap: 9px; }
.fsc-cp-badge { flex: 0 0 18px; color: rgb(var(--fsc-ink)); line-height: 0; }
.fsc-cp-badge svg { width: 18px; height: 18px; }
.fsc-cp-name { font-size: 14px; font-weight: 600; }
.fsc-cp-price { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.fsc-cp-sub { font-size: 11.5px; line-height: 1.5; color: var(--fsc-muted); margin: 5px 0 0; }
.fsc-cp-out, .fsc-cp-readd {
  display: block; width: 100%; text-align: center; background: none; border: 0;
  font-family: inherit; font-size: 12.5px; color: var(--fsc-muted);
  text-decoration: underline; cursor: pointer; padding: 9px 0 2px;
}
.fsc-cp-out:hover, .fsc-cp-readd:hover { color: rgb(var(--fsc-ink)); }
.fsc-cp--off { border-top: 1px solid var(--fsc-line); padding: 10px 0 6px; }

/* ---- /cart, rendered live from the FunnelStudio cart -------------------- */
.fsc-cartpage { padding: 48px 20px 80px; }
.fsc-cp-in { max-width: 960px; margin: 0 auto; }
.fsc-cp-in h1 { font-family: Domine, var(--font-heading-family, serif); font-size: 32px; margin: 0 0 28px; font-weight: 400; }
.fsc-cp-loading, .fsc-cp-empty { color: var(--fsc-muted); margin: 0 0 24px; }
.fsc-cp-table { width: 100%; border-collapse: collapse; }
.fsc-cp-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fsc-muted); font-weight: 400; padding: 0 0 12px; border-bottom: 1px solid var(--fsc-line); }
.fsc-cp-table td { padding: 20px 0; border-bottom: 1px solid var(--fsc-line); vertical-align: top; }
.fsc-cp-r { text-align: right; }
.fsc-cp-img { width: 92px; padding-right: 18px !important; }
.fsc-cp-img img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.fsc-cp-name { font-size: 16px; text-decoration: none; color: inherit; }
.fsc-cp-name:hover { text-decoration: underline; }
.fsc-cp-unit { margin: 6px 0 0; font-size: 13px; color: var(--fsc-muted); }
.fsc-cp-foot { margin-left: auto; max-width: 380px; padding-top: 24px; }
.fsc-cp-ship { font-size: 13px; color: var(--fsc-muted); margin: 0 0 14px; }
.fsc-cp-ship strong { color: rgb(var(--fsc-ink)); }
@media (max-width: 749px) {
  .fsc-cartpage { padding: 28px 16px 60px; }
  .fsc-cp-table thead { display: none; }
  .fsc-cp-table tr { display: grid; grid-template-columns: 92px 1fr; gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--fsc-line); }
  .fsc-cp-table td { border: 0; padding: 0; }
  .fsc-cp-img { grid-row: span 3; }
  .fsc-cp-r { text-align: left; margin-top: 8px; font-weight: 700; }
  .fsc-cp-foot { max-width: none; }
}

.fsc-disc {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; color: #1a7f4b; padding: 2px 0 6px;
}
.fsc-disc strong { font-weight: 700; }

/* ---- cart count badge -------------------------------------------------------
   The theme ships .cart-count-bubble as position:relative with right:-22px, which
   lays it out in normal flow BESIDE the cart icon (measured: icon ends at x=1394,
   badge started at x=1404) and, as a flex child, stretches it to the parent's full
   44px height - a 12x44 sliver with border-radius:100%, i.e. an oval floating off
   the icon. Pin it to the icon's top-right corner instead. #cart-icon-bubble is
   already position:relative, so absolute positioning anchors correctly.            */
#cart-icon-bubble { position: relative; overflow: visible; }
#cart-icon-bubble .cart-count-bubble,
.header__icon--cart .cart-count-bubble {
  position: absolute !important;
  top: 4px !important;
  right: 2px !important;
  left: auto !important;
  bottom: auto !important;
  min-width: 17px !important;
  width: auto !important;
  height: 17px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: rgb(var(--fsc-fg, 47, 5, 38)) !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  font-variant-numeric: tabular-nums;
  /* a hairline ring so the badge separates from the icon strokes behind it */
  box-shadow: 0 0 0 2px var(--fsc-header-bg, #fff) !important;
  pointer-events: none;
  transform: translateZ(0);
}
#cart-icon-bubble .cart-count-bubble > span[aria-hidden="true"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
