/* White Plan cart drawer, checkout and order pages (replaces Snipcart's theme).
   Black on white with thin rules, like the Snipcart setup the site had. */
:root {
  --wp-ink: #000;
  --wp-muted: #6b6b6b;
  --wp-rule: rgba(0, 0, 0, .14);
  --wp-soft: #f5f5f5;
  --wp-error: #b42318;
  --wp-font: 'Montserrat', 'Lexend Deca', system-ui, sans-serif;
}

/* ---- shared ---------------------------------------------------------------------- */
.wp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 48px; padding: 0 1.5rem; border: 1px solid var(--wp-ink); border-radius: 0;
  background: var(--wp-ink); color: #fff; font: 500 .875rem/1 var(--wp-font); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.wp-btn:hover { background: #fff; color: var(--wp-ink); }
.wp-btn:focus-visible, .wp-link:focus-visible, .wp-icon-btn:focus-visible { outline: 2px solid var(--wp-ink); outline-offset: 2px; }
.wp-btn--block { display: flex; width: 100%; }
.wp-btn--ghost { background: #fff; color: var(--wp-ink); }
.wp-btn--ghost:hover { background: var(--wp-ink); color: #fff; }
.wp-btn[disabled], .wp-btn.is-disabled { opacity: .4; pointer-events: none; }
.wp-link { background: none; border: 0; padding: 0; color: var(--wp-muted); font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wp-link:hover { color: var(--wp-ink); }
.wp-link--center { display: block; margin: 1rem auto 0; }
.wp-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; flex: none; }
.wp-muted { color: var(--wp-muted); font-size: .8125rem; line-height: 1.5; }
.wp-small { font-size: .75rem; }
.wp-error { color: var(--wp-error); font-size: .8125rem; line-height: 1.4; margin: .5rem 0 0; }

/* ---- cart drawer ------------------------------------------------------------------------ */
html.wp-drawer-open { overflow: hidden; }
.wp-drawer { position: fixed; inset: 0; z-index: 10000; font-family: var(--wp-font); color: var(--wp-ink); }
.wp-drawer[hidden] { display: none; }
.wp-drawer p, .wp-drawer a, .wp-drawer span, .wp-drawer label, .wp-drawer button, .wp-drawer h2 { font-family: var(--wp-font); letter-spacing: normal; }
.wp-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .25s; }
.wp-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .08);
}
.wp-drawer.is-open .wp-drawer__backdrop { opacity: 1; }
.wp-drawer.is-open .wp-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .wp-drawer__panel, .wp-drawer__backdrop { transition: none; } }
.wp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--wp-rule); }
.wp-drawer__head h2 { margin: 0; font: 500 1.0625rem/1.2 var(--wp-font); }
.wp-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; -webkit-overflow-scrolling: touch; }
.wp-drawer__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

.wp-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.wp-line { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 0 0 1.25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--wp-rule); }
.wp-line__img { display: block; width: 80px; height: 100px; background: var(--wp-soft); overflow: hidden; }
.wp-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-line__body { min-width: 0; display: flex; flex-direction: column; gap: .625rem; }
.wp-line__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.wp-line__name { color: inherit; text-decoration: none; font: 600 .875rem/1.3 var(--wp-font); text-transform: uppercase; letter-spacing: .02em; padding-top: .5rem; }
.wp-line__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wp-line__price { font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-line__size, .wp-line__extra { display: flex; flex-direction: column; gap: .25rem; font-size: .6875rem; color: var(--wp-muted); }
.wp-line__size select, .wp-line__extra textarea { font: .8125rem/1.4 var(--wp-font); color: var(--wp-ink); border: 1px solid var(--wp-rule); border-radius: 0; background: #fff; padding: .4rem .5rem; }
.wp-line__size select { max-width: 8rem; }
.wp-line__extra textarea { resize: vertical; min-height: 2.5rem; }
.wp-qty { display: inline-flex; align-items: center; border: 1px solid var(--wp-rule); height: 32px; }
.wp-qty button { width: 32px; height: 30px; border: 0; background: none; font: 400 1rem/1 var(--wp-font); cursor: pointer; color: inherit; }
.wp-qty span { min-width: 1.75rem; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.wp-total { display: flex; justify-content: space-between; margin: .5rem 0 1rem; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }

/* checkout notice (from the Webflow template) */
.wp-notice .snipcart-checkout-notice { margin: 1rem 0 1.25rem; padding: 1.25rem 0 0; border-top: 1px solid var(--wp-rule); font-size: .75rem; line-height: 1.5; }
.wp-notice .snipcart-checkout-notice__benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.wp-notice .snipcart-checkout-notice__benefit { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; font-size: .75rem; line-height: 1.35; }
.wp-notice .snipcart-checkout-notice__icon { width: 1.5rem; height: 1.5rem; flex: none; }
.wp-notice .snipcart-checkout-notice__note { margin: 1rem 0 0; padding: .75rem; background: var(--wp-soft); color: var(--wp-muted); font-size: .6875rem; }

/* ---- standalone pages (checkout, order, find order) ------------------------------------------------ */
body.wp-page { margin: 0; background: #fff; color: var(--wp-ink); font: 400 .875rem/1.5 var(--wp-font); -webkit-font-smoothing: antialiased; }
.wp-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.25rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--wp-rule); }
.wp-top a { color: inherit; text-decoration: none; font-size: .8125rem; }
.wp-top__logo { font-weight: 700 !important; font-size: 1.125rem !important; letter-spacing: .12em; }
.wp-top__orders { justify-self: end; color: var(--wp-muted) !important; }
.wp-top__back:hover, .wp-top__orders:hover { text-decoration: underline !important; }
.wp-h1 { font: 600 clamp(1.375rem, 3vw, 1.75rem)/1.2 var(--wp-font); margin: 0 0 1rem; text-wrap: balance; }
.wp-h2 { font: 600 1rem/1.3 var(--wp-font); margin: 0; }
.wp-eyebrow { color: var(--wp-muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .75rem; }
.wp-narrow { max-width: 30rem; margin: 3rem auto; padding: 0 1rem; }
.wp-form { display: grid; gap: 1rem; margin-top: 1.5rem; }

.wp-checkout { max-width: 72rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; }
.wp-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.wp-checkout__form { display: grid; gap: 1rem; max-width: 36rem; }
.wp-step { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--wp-rule); }
.wp-step[hidden] { display: none; }
.wp-step__title { display: flex; align-items: center; gap: .75rem; margin: 0 0 .25rem; font: 600 1rem/1 var(--wp-font); }
.wp-step__n { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--wp-ink); color: #fff; font-size: .8125rem; }
.wp-address { display: grid; gap: 1rem; }
.wp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wp-grid3[hidden] { display: none; }
.wp-field { display: flex; flex-direction: column; gap: .375rem; font-size: .75rem; color: var(--wp-muted); min-width: 0; }
.wp-field input, .wp-field select, .wp-field textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: .625rem .75rem;
  border: 1px solid var(--wp-rule); border-radius: 0; background: #fff; color: var(--wp-ink);
  font: 400 .875rem/1.4 var(--wp-font);
}
.wp-field textarea { resize: vertical; }
.wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus { outline: none; border-color: var(--wp-ink); }
.wp-field.is-invalid input, .wp-field.is-invalid select { border-color: var(--wp-error); }
.wp-field.is-invalid > span { color: var(--wp-error); }
.wp-check { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; cursor: pointer; }
.wp-check input { width: 18px; height: 18px; accent-color: var(--wp-ink); }

.wp-methods { display: grid; gap: .5rem; }
.wp-method { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .25rem; align-items: center; padding: 1rem; border: 1px solid var(--wp-rule); cursor: pointer; }
.wp-method.is-selected { border-color: var(--wp-ink); }
.wp-method input { accent-color: var(--wp-ink); width: 18px; height: 18px; margin: 0; }
.wp-method__name { font-weight: 500; }
.wp-method small { grid-column: 2; color: var(--wp-muted); font-size: .75rem; }
.wp-method .wp-bank { grid-column: 1 / -1; margin-top: .5rem; }
.wp-bank { white-space: pre-line; background: var(--wp-soft); padding: 1rem; font-size: .8125rem; line-height: 1.6; }

.wp-summary { position: sticky; top: 1.5rem; padding: 1.5rem; background: var(--wp-soft); display: grid; gap: .75rem; }
.wp-summary__head { display: flex; justify-content: space-between; align-items: baseline; }
.wp-summary__lines { list-style: none; margin: 0; padding: 0 0 .75rem; border-bottom: 1px solid var(--wp-rule); display: grid; gap: .75rem; }
.wp-summary__line { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: start; font-size: .8125rem; }
.wp-summary__line img { width: 48px; height: 60px; object-fit: cover; background: #fff; }
.wp-summary__line > div { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.wp-summary__line a { color: inherit; text-decoration: none; }
.wp-summary__line small { color: var(--wp-muted); font-size: .75rem; }
.wp-summary__line > span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.wp-summary__row > span:last-child { text-align: right; }
.wp-summary__total { font-weight: 600; font-size: .9375rem; padding-top: .75rem; border-top: 1px solid var(--wp-rule); }

.wp-order { max-width: 72rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 3rem) 4rem; display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.wp-order__main > p { max-width: 40rem; line-height: 1.6; }
.wp-order .wp-bank { margin: 1.25rem 0; max-width: 32rem; }
.wp-retry { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.wp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--wp-rule); }
.wp-facts dt { color: var(--wp-muted); font-size: .75rem; margin-bottom: .25rem; }
.wp-facts dd { margin: 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .wp-checkout__grid, .wp-order { grid-template-columns: 1fr; }
  .wp-summary { position: static; order: -1; }
  .wp-order .wp-summary { order: 0; }
  .wp-checkout__form { max-width: none; }
}
@media (max-width: 560px) {
  .wp-top { grid-template-columns: auto 1fr; }
  .wp-top__orders { display: none; }
  .wp-top__logo { justify-self: end; }
  .wp-grid3 { grid-template-columns: 1fr; }
  .wp-facts { grid-template-columns: 1fr; }
  .wp-notice .snipcart-checkout-notice__benefits { grid-template-columns: 1fr; }
}
