/* Vine Garden (Tulsa) cart drawer + checkout (owner 12-04). Uses the tokens from styles.css (--paper, --ink, --clay ...). */

/* header cart button */
.cartbtn { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s; }
.cartbtn:hover { background: var(--cream); border-color: rgba(42, 36, 32, .35); }
.cartbtn__ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cartbtn__n { position: absolute; top: -5px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--clay-deep); color: #fff; font: 700 12px/21px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.cartbtn__n[hidden] { display: none; }
.cartbtn.is-bump .cartbtn__n { animation: cdbump .45s var(--ease); }
@keyframes cdbump { 40% { transform: scale(1.3); } }
@media (max-width: 1100px) { .head__in .cartbtn { margin-left: auto; } .head__in .cartbtn + .burger { margin-left: 0; } .head__in { gap: 12px; } }

/* "Add" buttons: treatment rows + package cards */
.addcart { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--ink); border-radius: var(--pill); background: transparent; color: var(--ink);
  font: 600 14px/1 var(--sans); cursor: pointer; position: relative; z-index: 2; transition: background .25s, color .25s, border-color .25s; }
.addcart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.addcart:hover { background: var(--ink); color: var(--paper); }
.addcart.is-added { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.menu__meta .addcart { justify-self: end; margin-top: 6px; }
.pkg .addcart { align-self: flex-start; margin-top: 10px; min-height: 46px; padding: 0 22px 0 16px; background: var(--ink); color: var(--paper); }
.pkg .addcart:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

/* drawer */
.cd { position: fixed; inset: 0; z-index: 200; }
.cd[hidden] { display: none; }
.cd__ov { position: absolute; inset: 0; background: rgba(32, 27, 23, .5); opacity: 0; transition: opacity .4s var(--ease); cursor: pointer; }
.cd__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  box-shadow: -30px 0 60px -30px rgba(32, 27, 23, .45); transform: translateX(104%); transition: transform .45s var(--ease); outline: none; }
.cd.is-open .cd__ov { opacity: 1; } .cd.is-open .cd__panel { transform: none; }
html.cd-open, html.cd-open body { overflow: hidden; }
.cd__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.cd__h { font: 400 28px/1.1 var(--serif); letter-spacing: -.01em; }
.cd__n { font: 500 16px/1 var(--sans); color: var(--muted); }
.cd__x { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.cd__x:hover { background: var(--cream); }
.cd__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cd__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px; }
.cd__items { list-style: none; margin: 0; padding: 0; }
.cd__item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info price" "qty rm"; gap: 12px 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cd__info { grid-area: info; min-width: 0; }
.cd__name { font: 400 20px/1.25 var(--serif); text-decoration: none; color: var(--ink); }
.cd__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cd__line, .cd__unit { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cd__unit { margin-top: 2px; }
.cd__price { grid-area: price; margin: 0; align-self: start; font: 400 22px/1.2 var(--serif); }
.cd__qty { grid-area: qty; display: inline-flex; align-items: center; justify-self: start; border: 1px solid rgba(42, 36, 32, .35); border-radius: var(--pill); }
.cd__qty button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; }
.cd__qty button:hover:not(:disabled) { background: var(--cream); }
.cd__qty button:disabled { color: #8a7f76; cursor: default; }
.cd__qty svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cd__q { min-width: 26px; text-align: center; font: 600 16px/1 var(--sans); }
.cd__rm { grid-area: rm; justify-self: end; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--clay-deep); font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cd__rm:hover { color: var(--ink); }
.cd__empty { padding: 48px 0 24px; text-align: left; }
.cd__empty p { margin: 0 0 8px; color: var(--muted); }
.cd__empty .cd__emptyh { font: 300 30px/1.15 var(--serif); color: var(--ink); margin-bottom: 10px; }
.cd__emptyl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px !important; }
.cd__emptyl .btn { min-height: 46px; padding: 0 20px; }
.cd__foot { padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); display: grid; gap: 10px; }
.cd__foot[hidden] { display: none; }
.cd__sub { display: flex; justify-content: space-between; align-items: baseline; }
.cd__sub span { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd__sub strong { font: 400 30px/1 var(--serif); font-weight: 400; }
.cd__fine { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cd__go { width: 100%; margin-top: 4px; }
.cd__keep { justify-self: center; min-height: 40px; border: 0; background: none; color: var(--ink); font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) {
  .cd__panel { width: 100%; }
  .cd__head { padding: 16px 18px 14px; } .cd__body { padding: 0 18px; } .cd__foot { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cd__ov, .cd__panel { transition: none; } .cartbtn.is-bump .cartbtn__n { animation: none; } }

/* checkout */
.co { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.co__in--narrow { max-width: 760px; }
.co__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.co__banner { margin-top: 20px; padding: 14px 18px; border-radius: 8px; background: #f7e3dc; color: #6e2a17; border: 1px solid #e2b5a5; font-weight: 500; }
.co__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.co__set { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.co__legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font: 400 26px/1.2 var(--serif); }
.co__legend span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); }
.co__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld:first-child, .fld--wide { grid-column: 1 / -1; }
.fld__l { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.fld__opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(42, 36, 32, .45); border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); }
.fld textarea { resize: vertical; min-height: 90px; }
.fld input:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.fld input[aria-invalid="true"] { border-color: #a3261b; }
.fld__e { min-height: 0; font-size: 14px; color: #a3261b; font-weight: 500; }
.fld__e:empty { display: none; }
.co__pay { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.co__element { min-height: 40px; }
.co__card .fld__e { margin: 10px 0 0; }
.co__loading { margin: 0; color: var(--muted); }
.co__loading[hidden], .co__card[hidden], .co__soon[hidden] { display: none; }
.co__soon { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; }
.co__tab { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--clay-deep); border-radius: 8px; background: #fff; font: 600 14px/1 var(--sans); color: var(--clay-deep); }
.co__tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.co__cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.co__cardgrid input[disabled] { background: #f3eee8; color: var(--muted); cursor: not-allowed; opacity: 1; -webkit-text-fill-color: var(--muted); }
.co__inwrap { position: relative; display: block; }
.co__inwrap input { width: 100%; padding-right: 168px; }
.co__brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; }
.co__brands i { font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .04em; padding: 5px 5px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--muted); }
.co__soonnote { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); padding: 12px 14px; border-radius: 8px; background: var(--cream); }
.co__soonnote a { color: var(--clay-deep); font-weight: 700; }
@media (max-width: 520px) { .co__brands { display: none; } .co__inwrap input { padding-right: 14px; } }
.co__pay-btn { width: 100%; min-height: 56px; margin-top: 18px; font-size: 16px; }
.co__pay-btn:disabled { --bg: #6f665f; border-color: #6f665f; color: #fff; cursor: not-allowed; opacity: 1; }
.co__pay-btn:disabled::before { display: none; }
.co__policy { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.co__policy a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.co__sum { position: sticky; top: calc(var(--head) + 20px); padding: 28px; background: var(--cream); border-radius: 12px; }
.co__sumh { font: 400 26px/1.2 var(--serif); margin-bottom: 8px; }
.co__items { list-style: none; margin: 0; padding: 0; }
.co__item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.co__item p { margin: 0; }
.co__iname { font: 400 19px/1.3 var(--serif); }
.co__iline { font-size: 14px; color: var(--muted); margin-top: 3px !important; }
.co__iprice { font: 400 19px/1.3 var(--serif); }
.co__empty { padding: 16px 0; } .co__empty p { margin: 0 0 6px; }
.co__empty[hidden] { display: none; }
.co__tot { margin: 16px 0 0; display: grid; gap: 8px; }
.co__tot div { display: flex; justify-content: space-between; align-items: baseline; }
.co__tot dt { color: var(--muted); font-size: 15px; } .co__tot dd { margin: 0; font-size: 17px; }
.co__total { padding-top: 12px; border-top: 1px solid rgba(42, 36, 32, .3); }
.co__total dt { color: var(--ink); font-weight: 600; } .co__total dd { font: 400 32px/1 var(--serif); }
.co__fine { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.co__fine a { color: var(--ink); text-underline-offset: 3px; }
.co__ref { margin-top: 18px; font-size: 15px; color: var(--muted); }
.co--done [hidden] { display: none; }
@media (max-width: 900px) {
  .co__grid { grid-template-columns: 1fr; }
  .co__sum { position: static; order: -1; padding: 22px 20px; }
}
@media (max-width: 560px) { .co__fields { grid-template-columns: 1fr; } .co__pay { padding: 16px; } }
/* checkout pages: the mobile quick-action bar would sit over the Pay button */
body:has([data-checkout]) .mbar, body:has([data-co-done]) .mbar { display: none; }
/* payment options shown switched off until Affirm approval (owner 12-04 20:55) */
.co__opt { border: 1px solid rgba(42, 36, 32, .22); border-radius: 10px; padding: 16px 18px; background: #fff; }
.co__opt--on { border: 2px solid var(--clay-deep); background: #fbf8f4; }
.co__optt { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.co__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(42, 36, 32, .45); flex: none; }
.co__opt--on .co__radio { border: 5px solid var(--clay-deep); }
.co__optd { margin: 8px 0 0 28px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.co__opt .co__cardgrid { margin-top: 14px; }
