/* Ask Wowie, the product helper on every page (Jeff, Nov 10). Its own file, so it never collides with site.css.
   Inter only (no Fraunces). Motion: strong ease-out, press feedback, no hover effects on touch, and nothing slides
   with reduced motion. Hidden until the age check is passed (.age-pending), and in print. */
.aw-launch, .aw-panel {
  --aw-deep: #0e3a2a; --aw-green: #006837; --aw-leaf: #8fd3a8; --aw-wash: #f6f3ec; --aw-tint: #e9f3ec;
  --aw-edge: #cfe1d5; --aw-ease: cubic-bezier(.23, 1, .32, 1);
  font-family: var(--sans);
}
.aw-i { display: inline-flex; flex: none; width: 18px; height: 18px; }
.aw-i svg { display: block; width: 100%; height: 100%; }
.age-pending .aw-launch, .age-pending .aw-panel { display: none !important; }

/* Launcher: the pill in the bottom-right corner */
.aw-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 21px 0 16px;
  border: 0; border-radius: 999px; background: var(--aw-deep); color: #fff;
  font: 600 15px/1 var(--sans); letter-spacing: .005em; cursor: pointer;
  /* the light ring keeps the pill visible over the dark green hero and footer */
  box-shadow: 0 0 0 1px rgba(143, 211, 168, .38), 0 10px 28px rgba(10, 42, 31, .32), 0 2px 6px rgba(10, 42, 31, .18);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .16s var(--aw-ease), box-shadow .16s var(--aw-ease), opacity .16s var(--aw-ease);
}
.aw-launch .aw-i { width: 22px; height: 22px; color: var(--aw-leaf); }
.aw-launch:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .aw-launch:hover { box-shadow: 0 0 0 1px rgba(143, 211, 168, .6), 0 14px 34px rgba(10, 42, 31, .38), 0 2px 6px rgba(10, 42, 31, .2); }
}
/* On phones, room under the footer so the pill never sits on its last line */
@media (max-width: 640px) { .site-footer { padding-bottom: 84px; } }
.aw-open .aw-launch { opacity: 0; transform: scale(.9); pointer-events: none; }

/* Panel */
.aw-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 400px; max-width: calc(100vw - 40px); height: 680px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ink); border-radius: 22px; font-size: 14.5px; line-height: 1.5;
  box-shadow: 0 28px 70px rgba(10, 42, 31, .3), 0 4px 14px rgba(10, 42, 31, .12);
  transform-origin: 100% 100%; opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .15s ease-in, transform .15s ease-in;
}
.aw-panel.is-in { opacity: 1; transform: none; transition: opacity .2s var(--aw-ease), transform .26s var(--aw-ease); }
.aw-panel[hidden] { display: none; }
.aw-panel *, .aw-panel *::before, .aw-panel *::after { box-sizing: border-box; }
.aw-panel :where(button, input) { font: inherit; color: inherit; }
.aw-panel :where(p, dl, dd, ul) { margin: 0; }

.aw-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, rgba(143, 211, 168, .18), transparent 60%), var(--aw-deep);
}
.aw-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--aw-leaf); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.aw-mark .aw-i { width: 24px; height: 24px; }
.aw-head-text { flex: 1; min-width: 0; }
.aw-title { font-size: 16.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.aw-sub { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.aw-x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); cursor: pointer; transition: background .15s, transform .12s var(--aw-ease); }
.aw-x .aw-i { width: 20px; height: 20px; }
.aw-x:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .aw-x:hover { background: rgba(255, 255, 255, .1); color: #fff; } }

.aw-log {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 22px; background: var(--aw-wash); scrollbar-width: thin;
}
.aw-loading { padding: 8px 4px; color: var(--muted); font-size: 13.5px; }
.aw-msg, .aw-opts, .aw-form { animation: aw-in .24s var(--aw-ease) both; }
.aw-opts, .aw-form { animation-delay: .05s; }
@keyframes aw-in { from { opacity: 0; transform: translateY(6px); } }
.aw-log.is-replay > * { animation: none; }
.aw-bot { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; box-shadow: 0 1px 2px rgba(16, 32, 24, .04); }
.aw-me { align-self: flex-end; max-width: 85%; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: var(--aw-green); color: #fff; font-weight: 500; overflow-wrap: anywhere; }

/* Text inside answers */
.aw-lead { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.aw-h { margin-top: 4px !important; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-green); }
.aw-small { font-size: 13px; color: var(--muted); }
.aw-note, .aw-src { font-size: 12.5px; color: var(--muted); }
.aw-answer p { margin: 0 0 .6em; }
.aw-answer p:last-child { margin-bottom: 0; }
.aw-answer a, .aw-src a, .aw-list a { color: var(--aw-green); }
.aw-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.aw-link { padding: 2px 0; border: 0; background: none; color: var(--aw-green) !important; font-weight: 500; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(0, 104, 55, .3); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .aw-link:hover { text-decoration-color: currentColor; } }
.aw-more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--aw-green); text-decoration: none; }
.aw-more-link .aw-i { width: 16px; height: 16px; }
.aw-prod > .aw-more-link { align-self: flex-start; }   /* Order on Wowie Essentials (essentials_store "current"): only the words are the link */

/* Options under the last answer */
.aw-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.aw-opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--aw-edge); border-radius: 999px; background: #fff; color: var(--aw-deep) !important;
  font-size: 14px; font-weight: 500; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .15s, border-color .15s, transform .12s var(--aw-ease);
}
.aw-opt .aw-i { width: 16px; height: 16px; color: var(--aw-green); }
.aw-opt:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .aw-opt:hover { background: var(--aw-tint); border-color: var(--aw-green); } }
.aw-tiles { display: grid; grid-template-columns: 1fr 1fr; }
.aw-tiles .aw-opt { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(16, 32, 24, .04); }
.aw-tiles .aw-opt .aw-tile-i { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--aw-tint); }
/* An odd tile out (no "Price my order" while essentials_store is "current") takes the whole row. */
.aw-tiles .aw-opt:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
.aw-rows-opts { flex-direction: column; align-items: stretch; }
.aw-rows-opts .aw-opt { justify-content: space-between; border-radius: 14px; }

/* Size lists */
.aw-rows { display: flex; flex-direction: column; gap: 6px; }
.aw-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s, transform .12s var(--aw-ease);
}
.aw-row:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .aw-row:hover { border-color: var(--aw-green); background: #fbfdfb; } }
.aw-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aw-row-name { font-weight: 600; }
.aw-row-meta { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.aw-row .aw-i { width: 16px; height: 16px; color: var(--aw-green); }

/* Product card */
.aw-prod { display: flex; flex-direction: column; gap: 10px; }
.aw-prod-head { display: flex; align-items: flex-start; gap: 12px; }
.aw-prod-head img { flex: none; width: 64px; height: 64px; padding: 4px; object-fit: contain; border-radius: 12px; background: var(--aw-wash); }
.aw-prod-name { margin-bottom: 6px !important; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.aw-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.aw-tags li { padding: 3px 8px; border-radius: 999px; background: #f1ede5; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.aw-tags li.is-key { background: var(--aw-tint); color: var(--aw-green); font-weight: 600; }
.aw-specs { border-top: 1px solid var(--line); }
.aw-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.aw-specs dt { color: var(--muted); }
.aw-specs dd { font-weight: 500; text-align: right; }
.aw-fit { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--aw-tint); }
.aw-fit .aw-h { margin-top: 0 !important; }
.aw-all summary { padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--aw-green); cursor: pointer; list-style: none; }
.aw-all summary::-webkit-details-marker { display: none; }
.aw-all summary::before { content: "+ "; }
.aw-all[open] summary::before { content: "− "; }

/* Buttons */
.aw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.aw-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px;
  border: 1.5px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .15s, color .15s, border-color .15s, transform .12s var(--aw-ease);
}
.aw-btn .aw-i { width: 16px; height: 16px; }
.aw-btn:active { transform: scale(.97); }
.aw-btn-primary { background: var(--aw-green); color: #fff !important; }
.aw-btn-ghost { border-color: var(--aw-green); background: #fff; color: var(--aw-green) !important; }
@media (hover: hover) and (pointer: fine) {
  .aw-btn-primary:hover { background: var(--aw-deep); }
  .aw-btn-ghost:hover { background: var(--aw-tint); }
}
.aw-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.aw-btn[aria-disabled="true"]:active { transform: none; }

/* Price breakdown */
.aw-quote { display: flex; flex-direction: column; gap: 10px; }
.aw-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--aw-green); }
.aw-line { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.aw-line-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.aw-line-head a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .aw-line-head a:hover { color: var(--aw-green); text-decoration: underline; } }
.aw-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-line-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aw-total { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.aw-tip { padding: 9px 12px; border: 1px solid #ecdcae; border-radius: 12px; background: #fff8e6; color: #57460f; font-size: 13.5px; }
.aw-steps table { width: 100%; margin: 4px 0 8px; border-collapse: collapse; font-size: 13px; }
.aw-steps th, .aw-steps td { padding: 5px 8px; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.aw-steps td { text-align: right; font-variant-numeric: tabular-nums; }
.aw-steps tr.is-on { background: var(--aw-tint); color: var(--aw-deep); font-weight: 600; }
.aw-steps tr.is-on th, .aw-steps tr.is-on td { font-weight: 600; }

/* Quantity */
.aw-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.aw-q-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aw-q-row { display: flex; gap: 8px; }
.aw-q { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid #cfd8d2; border-radius: 12px; background: #fff; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aw-q:focus { outline: none; border-color: var(--aw-green); box-shadow: 0 0 0 3px rgba(0, 104, 55, .16); }
.aw-q[aria-invalid="true"] { border-color: #b3261e; }
.aw-seg { flex: none; display: inline-flex; padding: 3px; border-radius: 12px; background: #efebe3; }
.aw-seg-opt { position: relative; display: flex; cursor: pointer; }
.aw-seg-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.aw-seg-opt span { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .15s, color .15s, box-shadow .15s; }
.aw-seg-opt input:checked + span { background: #fff; color: var(--aw-deep); box-shadow: 0 1px 3px rgba(16, 32, 24, .14); }
.aw-seg-opt input:focus-visible + span { outline: 3px solid #4f9d76; outline-offset: 1px; }
.aw-cap { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.aw-cap input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--aw-green); }
.aw-err { color: #b3261e; font-size: 13px; }
.aw-err:empty { display: none; }
.aw-go { width: 100%; }
.aw-quick { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.aw-quick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-quick .aw-opt { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }

/* Sample picker */
.aw-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-check {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px 6px 8px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, transform .12s var(--aw-ease);
}
.aw-check:active { transform: scale(.97); }
.aw-check .aw-i { width: 20px; height: 20px; padding: 3px; border: 1.5px solid #cfd8d2; border-radius: 999px; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.aw-check[aria-pressed="true"] { border-color: var(--aw-green); background: var(--aw-tint); color: var(--aw-deep); }
.aw-check[aria-pressed="true"] .aw-i { border-color: var(--aw-green); background: var(--aw-green); color: #fff; }

/* Footer */
.aw-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: #fff; }
.aw-home, .aw-talk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .12s var(--aw-ease); }
.aw-home { color: var(--aw-deep); }
.aw-talk { color: var(--aw-green); }
.aw-home .aw-i, .aw-talk .aw-i { width: 16px; height: 16px; color: var(--aw-green); }
.aw-home:active, .aw-talk:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .aw-home:hover, .aw-talk:hover { background: var(--aw-wash); } }

/* Phones: full screen */
@media (max-width: 640px) {
  .aw-launch { right: 14px; bottom: 14px; height: 48px; padding: 0 19px 0 14px; font-size: 14.5px; }
  .aw-panel { inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; transform-origin: 50% 100%; transform: translateY(24px); }
  .aw-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .aw-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .aw-lock, .aw-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-launch, .aw-panel, .aw-panel.is-in { transform: none !important; transition: opacity .01s; }
  .aw-msg, .aw-opts, .aw-form { animation: none; }
}
@media print { .aw-launch, .aw-panel { display: none !important; } }
