/* Willow's Wellness: checkout window. Nothing here shows unless the new checkout is switched on. */

html.wwc-lock { overflow: hidden; }

.wwc-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(10, 32, 28, 0.78);
  padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.wwc-overlay.wwc-open { display: flex; }
.wwc-overlay [hidden] { display: none !important; }

.wwc-box {
  position: relative; width: 100%; max-width: 460px; margin: auto;
  background: var(--cream, #F5F3ED); color: var(--text-dark, #1a2e2b);
  border-radius: 20px; padding: 30px 24px 22px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
  font-family: 'Jost', sans-serif; line-height: 1.5; outline: none;
}
.wwc-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(27, 107, 95, 0.1); color: var(--emerald, #1B6B5F);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.wwc-close:hover { background: rgba(27, 107, 95, 0.2); }

.wwc-previewtag {
  background: var(--gold-pale, #f0e6c8); color: var(--text-dark, #1a2e2b);
  border-radius: 8px; padding: 6px 10px; margin: 0 40px 12px 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}

.wwc-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 1.9rem; line-height: 1.1; color: var(--emerald, #1B6B5F);
  margin: 0 36px 6px 0;
}
.wwc-sub, .wwc-msg-text { font-size: 0.92rem; color: var(--text-mid, #3d5550); font-weight: 300; margin: 0 0 16px; }
.wwc-msg-text { font-size: 1rem; }
/* The site centres every paragraph and heading on phones. Keep this window left aligned. */
.wwc-box { text-align: left; }
.wwc-title, .wwc-sub, .wwc-msg-text, .wwc-formerr { text-align: left; }

.wwc-field { display: block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 500; color: var(--text-mid, #3d5550); }
.wwc-field input, .wwc-field select, .wwc-field textarea {
  display: block; width: 100%; margin-top: 5px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text-dark, #1a2e2b);
  background: #fff; border: 1.5px solid rgba(27, 107, 95, 0.25); border-radius: 12px;
  padding: 12px 14px; outline: none; -webkit-appearance: none; appearance: none;
}
.wwc-field select {
  background-image: linear-gradient(45deg, transparent 50%, #1B6B5F 50%), linear-gradient(135deg, #1B6B5F 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.wwc-field textarea { resize: vertical; min-height: 78px; }
.wwc-field input:focus, .wwc-field select:focus, .wwc-field textarea:focus {
  border-color: var(--emerald, #1B6B5F); box-shadow: 0 0 0 3px rgba(27, 107, 95, 0.15);
}
.wwc-field.wwc-bad input, .wwc-field.wwc-bad select, .wwc-field.wwc-bad textarea { border-color: #b42318; }
.wwc-err { display: block; min-height: 0; color: #b42318; font-size: 0.78rem; font-weight: 500; margin-top: 4px; }
.wwc-err:empty { display: none; }

.wwc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wwc-total {
  background: var(--cream-dark, #EDE9DF); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px;
}
.wwc-total-line { font-size: 0.82rem; color: var(--text-mid, #3d5550); }
.wwc-total-sum { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--emerald, #1B6B5F); line-height: 1.2; }

.wwc-formerr { color: #b42318; font-size: 0.85rem; font-weight: 500; margin: 0 0 10px; }
.wwc-formerr:empty { display: none; }

.wwc-pay, .wwc-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: none; cursor: pointer; text-decoration: none;
  background: var(--emerald, #1B6B5F); color: #fff;
  padding: 15px 24px; border-radius: 50px;
  font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(27, 107, 95, 0.3); transition: background 0.2s, transform 0.2s;
}
.wwc-pay:hover, .wwc-btn:hover { background: var(--teal, #2D8B7C); transform: translateY(-1px); }
.wwc-pay[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.wwc-btn.wwc-ghost { background: transparent; color: var(--emerald, #1B6B5F); border: 1.5px solid var(--emerald, #1B6B5F); box-shadow: none; }
.wwc-btn.wwc-ghost:hover { background: var(--emerald, #1B6B5F); color: #fff; }
.wwc-msg-actions { display: grid; gap: 10px; }

.wwc-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: wwc-spin 0.8s linear infinite;
}
@keyframes wwc-spin { to { transform: rotate(360deg); } }

.wwc-fine { font-size: 0.72rem; color: var(--text-light, #6b8c84); margin: 12px 0 0; text-align: center; }

/* Delivery address block: small heading, optional marker, and two fields side by side (stacked on small phones) */
.wwc-group {
  margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid rgba(27, 107, 95, 0.15);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald, #1B6B5F); text-align: left;
}
.wwc-opt { font-weight: 300; color: var(--text-light, #6b8c84); }
.wwc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 380px) { .wwc-pair { grid-template-columns: 1fr; } }

.wwc-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 1500;
  display: flex; align-items: center; gap: 8px;
  background: var(--gold-pale, #f0e6c8); color: var(--text-dark, #1a2e2b);
  border-radius: 999px; padding: 6px 8px 6px 12px;
  font: 600 0.72rem 'Jost', sans-serif; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.wwc-flag button {
  border: none; border-radius: 999px; padding: 4px 10px; cursor: pointer;
  background: var(--emerald, #1B6B5F); color: #fff; font: inherit;
}

/* Order section: a product card with a quantity picker and one Order now button.
   checkout.js adds html.wwc-on and shows the card only when the new checkout is on.
   The five old cards stay in the page (they hold the backup links). They are only hidden. */
html.wwc-on #order > .center,
html.wwc-on #order .order-row-label,
html.wwc-on #order .order-grid,
html.wwc-on #order .order-carousel-wrap,
html.wwc-on #order .swipe-dots,
html.wwc-on #order .order-note { display: none !important; }

.wwc-order-one { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.wwc-order-one .section-intro { margin-bottom: 36px; }

.wwc-card {
  display: grid; grid-template-columns: 5fr 6fr;
  background: var(--cream, #F5F3ED); color: var(--text-dark, #1a2e2b);
  border-radius: 24px; overflow: hidden; text-align: left;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
.wwc-card-photo { position: relative; min-height: 340px; background: var(--cream-dark, #EDE9DF); }
.wwc-card-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.wwc-order-one.wwc-nophoto .wwc-card { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
.wwc-order-one.wwc-nophoto .wwc-card-photo { display: none; }
.wwc-card-body { padding: 38px 40px 32px; }

/* The site centres every paragraph and heading on phones. Keep the card text left aligned. */
.wwc-card .wwc-card-brand { margin: 0 0 4px; text-align: left; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold, #C9A961); }
.wwc-card .wwc-card-name { margin: 0 0 6px; text-align: left; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 2.2rem; line-height: 1.1; color: var(--text-dark, #1a2e2b); }
.wwc-card .wwc-card-meta { margin: 0 0 16px; text-align: left; font-size: 0.9rem; font-weight: 300; color: var(--text-mid, #3d5550); }
.wwc-card .wwc-card-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; text-align: left; font-size: 0.9rem; font-weight: 300; color: var(--text-mid, #3d5550); }
.wwc-card-price strong { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--emerald, #1B6B5F); font-variant-numeric: lining-nums; }

.wwc-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.wwc-qty-label, .wwc-total-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid, #3d5550); }
.wwc-stepper { display: inline-flex; align-items: center; padding: 3px; background: #fff; border: 1.5px solid rgba(27, 107, 95, 0.28); border-radius: 50px; }
.wwc-step {
  position: relative; width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--emerald, #1B6B5F); cursor: pointer; transition: background 0.2s;
}
.wwc-step::before, .wwc-step::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; }
.wwc-step::before { width: 14px; height: 2px; margin: -1px 0 0 -7px; }
.wwc-plus::after { width: 2px; height: 14px; margin: -7px 0 0 -1px; }
.wwc-step:hover { background: rgba(27, 107, 95, 0.1); }
.wwc-step[aria-disabled="true"] { opacity: 0.3; cursor: default; }
.wwc-step[aria-disabled="true"]:hover { background: transparent; }
.wwc-step:focus-visible { outline: 3px solid var(--emerald, #1B6B5F); outline-offset: 1px; }
.wwc-qty { display: inline-block; min-width: 44px; text-align: center; font-size: 1.15rem; font-weight: 600; color: var(--text-dark, #1a2e2b); }

.wwc-total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding-top: 16px; border-top: 1px solid rgba(27, 107, 95, 0.15); }
.wwc-total-label, .wwc-total-note { display: block; text-align: left; }
.wwc-total-note { margin-top: 2px; font-size: 0.8rem; font-weight: 300; color: var(--text-mid, #3d5550); }
.wwc-total-amt { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--emerald, #1B6B5F); font-variant-numeric: lining-nums; }

.wwc-order-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: none; cursor: pointer;
  background: var(--emerald, #1B6B5F); color: #fff;
  padding: 17px 24px; border-radius: 50px;
  font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(27, 107, 95, 0.32); transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wwc-order-btn:hover { background: var(--teal, #2D8B7C); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(27, 107, 95, 0.4); }
.wwc-order-btn:focus-visible { outline: 3px solid var(--emerald, #1B6B5F); outline-offset: 3px; }
.wwc-order-btn svg { flex: none; }
.wwc-card .wwc-assure { margin: 14px 0 0; text-align: center; font-size: 0.82rem; font-weight: 300; color: var(--text-mid, #3d5550); }
.wwc-order-one .wwc-help { margin: 24px auto 0; text-align: center; font-size: 0.92rem; font-weight: 300; color: rgba(255, 255, 255, 0.78); }
.wwc-help a { display: inline-block; color: var(--gold-light, #D4BC84); text-decoration: underline; }

/* Phones: a compact "cart row" so the Order now button is on the first screen.
   The photo becomes a small picture beside the name and price. */
@media (max-width: 720px) {
  .wwc-card { position: relative; grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; border-radius: 20px; }
  .wwc-card-photo { position: absolute; top: 22px; left: 20px; width: 108px; height: 136px; min-height: 0; border-radius: 14px; overflow: hidden; }
  .wwc-card-body { padding: 22px 20px 20px; }
  .wwc-card-head { min-height: 136px; margin: 0 0 16px 124px; }
  .wwc-order-one.wwc-nophoto .wwc-card-head { min-height: 0; margin-left: 0; }
  .wwc-card .wwc-card-brand { font-size: 0.62rem; letter-spacing: 0.18em; }
  .wwc-card .wwc-card-name { font-size: 1.6rem; }
  .wwc-card .wwc-card-meta { margin-bottom: 8px; font-size: 0.82rem; }
  .wwc-card .wwc-card-price { margin-bottom: 0; }
  .wwc-card-price strong { font-size: 2.2rem; }
  .wwc-qty-row { margin-bottom: 14px; }
  .wwc-total-row { margin-bottom: 16px; padding-top: 14px; }
  .wwc-total-amt { font-size: 2.2rem; }
  .wwc-order-one .section-intro { margin-bottom: 24px; }
  /* the link goes on its own line, clear of the round WhatsApp button that floats at the bottom right */
  .wwc-help a { display: block; margin-top: 4px; }
}

@media (max-width: 480px) {
  .wwc-overlay { padding: 10px; }
  .wwc-box { padding: 26px 18px 18px; border-radius: 18px; }
  .wwc-title { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wwc-spin { animation-duration: 2s; }
  .wwc-pay, .wwc-btn, .wwc-order-btn, .wwc-step { transition: none; }
}

/* Black Friday banner and sold-out notice.
   checkout.js adds the banner only while the sale runs, and the notice only when stock is set to 0. */
.wws-banner {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto 26px; padding: 26px 20px 20px; text-align: center; color: #fff;
  background: rgba(201, 169, 97, 0.14); border: 1px solid var(--gold, #C9A961); border-radius: 18px;
}
/* Gold stars and confetti round the edge of the banner. */
.wws-confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wws-confetti > * { position: absolute; display: block; }

/* Gold party poppers. On a phone they sit on the top corners of the banner. On a wide screen they stand either side of it. */
.wws-regalia { position: absolute; z-index: 2; top: -34px; width: 104px; height: auto; pointer-events: none; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28)); }
.wws-regalia-l { left: -16px; }
.wws-regalia-r { right: -16px; transform: scaleX(-1); }
@media (max-width: 699px) { .wws-banner { padding-top: 40px; } }
@media (min-width: 700px) {
  .wws-regalia { width: 150px; top: -40px; }
  .wws-regalia-l { left: -32px; }
  .wws-regalia-r { right: -32px; }
}
@media (min-width: 1100px) {
  .wws-regalia { width: 210px; top: 50%; margin-top: -98px; }
  .wws-regalia-l { left: -230px; }
  .wws-regalia-r { right: -230px; }
}
.wws-banner .wws-banner-title {
  margin: 0; text-align: center; font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(2.3rem, 11vw, 3.6rem); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-light, #D4BC84); text-wrap: balance;
}
.wws-banner .wws-banner-more { margin: 8px 0 18px; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.4rem; font-weight: 500; color: #fff; }
.wws-banner .wws-banner-deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.wws-banner-deals span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.wws-banner-deals i { font-style: normal; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); }
.wws-banner-deals b { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 700; line-height: 1.05; color: var(--gold-light, #D4BC84); font-variant-numeric: lining-nums; }
.wws-banner-deals em { font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold, #C9A961); }
.wws-banner .wws-banner-fine { margin: 0; text-align: center; font-size: 0.8rem; font-weight: 300; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); }

#order > .wws-stock {
  position: relative; z-index: 1; width: fit-content; max-width: 90%; margin: 0 auto 22px; padding: 6px 14px; text-align: center;
  border-radius: 999px; background: var(--gold-pale, #f0e6c8); color: var(--text-dark, #1a2e2b);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
}

/* The big "Order Your Oil" heading above the order card is not shown. */
.wwc-order-one .wwc-order-head .section-heading { display: none; }

.wws-was { margin-bottom: 4px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); text-decoration: line-through; }

/* Sold out: no way to order. */
html.wws-soldout #order .order-grid { display: none !important; }
html.wws-soldout .wwc-order-btn { opacity: 0.4; cursor: default; pointer-events: none; }
