/* Online shop pages in the site style (tokens from /assets/static.css). */
:root { --ep-radius: 10px; --ep-note: #fff6c7; --ep-note-ink: #5a4500; --ep-note-line: #d9b500; }

/* header Shop / Basket buttons reuse the CMS button markup; the <a> must not change the layout */
a.ep-hbtn { display: contents; color: inherit; text-decoration: none; }
.ep-bcount { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  align-items: center; justify-content: center; background: var(--ep-orange); color: #111; font: 700 13px/1 SourceSansPro, Arial, sans-serif; }
.ep-bcount[data-zero] { background: #3a3a3a; color: #ddd; }

/* prototype layer */
.ep-mockbar { position: fixed; left: 12px; bottom: 12px; z-index: 3000; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  max-width: calc(100vw - 24px); background: #1f1630; color: #efe9ff; padding: 8px 12px; border-radius: 10px;
  font: 500 13px/1.4 ui-monospace, Menlo, monospace; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ep-mockbar a { color: #cfe8a8; }
.ep-mockbar button { font: inherit; background: #3b2d57; color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; min-height: 32px; cursor: pointer; }
body.no-ann .ann { display: none; }

/* layout */
.ep-shop *, .ep-shop *::before, .ep-shop *::after, .ep-mockbar, .ep-toast { box-sizing: border-box; }
.ep-shop .ep-wrap { max-width: 1200px; padding-top: 28px; }
.ep-home-shop { border-bottom: 1px solid var(--ep-line); }
.ep-home-shop .ep-wrap { padding-top: 40px; padding-bottom: 40px; }
.ep-shop h2 { margin-top: 36px; }
.ep-sub { margin: 28px 0 12px !important; font-size: 22px !important; }
.ep-center { text-align: center; margin-top: 8px; }
.ep-muted { color: var(--ep-muted); }

.ep-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; color: var(--ep-muted); }
.ep-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #999; }
.ep-content .ep-crumbs a { color: var(--ep-green-text); text-decoration: none; }

/* buttons */
.ep-content .ep-btn, .ep-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 8px; background: #bb5111; color: #fff !important; text-decoration: none !important; cursor: pointer;
  font: 700 16px/1 MuseoSansBold, SourceSansPro, Arial, sans-serif; letter-spacing: .02em; }
.ep-btn:hover { background: #9a420d; }
.ep-btn:focus-visible, .ep-dtab:focus-visible, .ep-chips a:focus-visible { outline: 3px solid var(--ep-green-text); outline-offset: 2px; }
.ep-btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* search */
.ep-search { display: flex; gap: 10px; margin: 0 0 20px; max-width: 760px; }
.ep-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 2px solid #cfd9c2; border-radius: 8px; font: 17px SourceSansPro, Arial, sans-serif; }
.ep-search input:focus { border-color: var(--ep-green-text); outline: none; }

/* chips */
.ep-chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ep-content .ep-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ep-green-text); color: #fff; text-decoration: none; font-weight: 700; }
.ep-content .ep-chips-soft a { background: var(--ep-soft); color: var(--ep-green-text); border: 1px solid #dfe8d3; font-weight: 600; }
.ep-rel { margin: 6px 0 8px !important; font-weight: 700; }

/* trust strip */
.ep-trust { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ep-trust li { background: var(--ep-soft); border: 1px solid #e3ead9; border-radius: var(--ep-radius); padding: 12px 14px; display: flex; flex-direction: column; }
.ep-trust b { font-family: MuseoSansBold, SourceSansPro, Arial, sans-serif; color: var(--ep-green-text); }
.ep-trust span { color: #333; font-size: 15px; }
@media (min-width: 900px) { .ep-trust { grid-template-columns: repeat(4, 1fr); } }

/* health area groups */
.ep-groups { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 700px) { .ep-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .ep-groups { grid-template-columns: repeat(4, 1fr); } }
.ep-group { border: 1px solid var(--ep-line); border-top: 4px solid var(--ep-green); border-radius: var(--ep-radius); padding: 16px 18px 10px; background: #fff; }
.ep-group h3 { margin-bottom: 6px !important; }
.ep-group ul { list-style: none; margin: 0; padding: 0; }
.ep-content .ep-group a { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center;
  border-bottom: 1px solid #f0f0f0; color: var(--ep-ink); text-decoration: none; }
.ep-group a span { color: var(--ep-muted); font-size: 14px; }
.ep-content .ep-group a:hover { color: var(--ep-orange-text); }

/* product grid + card */
.ep-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
@media (min-width: 760px) { .ep-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .ep-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.ep-pcard { border: 1px solid var(--ep-line); border-radius: var(--ep-radius); background: #fff; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.ep-pcard[hidden] { display: none; }
.ep-content .ep-pcard > a:first-child { color: var(--ep-ink); text-decoration: none; }
.ep-pcard h3 { font-size: 18px !important; margin: 10px 0 2px !important; overflow-wrap: anywhere; }
.ep-pimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fafbf8; border-radius: 8px; }
.ep-ph { display: flex; align-items: center; justify-content: center; color: #545b4e; font-size: 13px; border: 1px dashed #cfd6c6; }
.ep-pact { color: var(--ep-muted); font-size: 15px; margin: 0 0 4px !important; overflow-wrap: anywhere; }
.ep-pdose { font-size: 14px; color: #444; margin: 0 0 6px !important; }
.ep-pprice { margin: auto 0 10px !important; font-size: 15px; }
.ep-pprice b { font-size: 19px; color: var(--ep-ink); }
.ep-pcard .ep-btn { width: 100%; padding: 0 8px; white-space: normal; text-align: center; }

/* filters */
.ep-filters { display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--ep-soft); border: 1px solid #e3ead9; border-radius: var(--ep-radius); padding: 14px; margin: 8px 0 10px; }
@media (min-width: 760px) { .ep-filters { grid-template-columns: 2fr 2fr 1fr 2fr; } }
.ep-filters label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ep-filters input, .ep-filters select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #cfd9c2; border-radius: 8px; background: #fff; font: 16px SourceSansPro, Arial, sans-serif; }
.ep-count, .ep-sres { color: var(--ep-muted); margin: 0 0 12px !important; }
.ep-intro { max-width: 860px; margin-bottom: 18px; }

/* product page */
.ep-prod { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .ep-prod { grid-template-columns: 340px 1fr; gap: 40px; } }
.ep-prod-img .ep-pimg { max-width: 340px; margin: 0 auto; border: 1px solid var(--ep-line); }
.ep-pact-l { font-size: 18px; margin-bottom: 6px !important; }
.ep-other { color: var(--ep-muted); font-size: 15px; }
.ep-short { font-size: 17px; }
.ep-h2s { margin-top: 22px !important; font-size: 21px !important; }
.ep-dtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ep-dtab { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 8px; border: 2px solid #cfd9c2; background: #fff; cursor: pointer;
  font: 700 16px SourceSansPro, Arial, sans-serif; color: var(--ep-ink); }
.ep-dtab.is-on { border-color: var(--ep-green-text); background: var(--ep-green-text); color: #fff; }
.ep-packs { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.ep-packs th, .ep-packs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #ececec; vertical-align: middle; }
.ep-packs thead th { font-size: 14px; color: var(--ep-muted); font-weight: 700; }
.ep-packs tbody th { font-weight: 700; }
.ep-packs td:last-child { text-align: right; }
.ep-packs tr[hidden] { display: none; }
.ep-save { display: inline-block; margin-left: 6px; color: var(--ep-green-text); font-size: 14px; font-weight: 700; }
.ep-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fdebd9; color: #8a3c12; font-size: 12px; font-weight: 700; }
@media (max-width: 560px) {
  .ep-packs thead { display: none; }
  .ep-packs tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #ececec; }
  .ep-packs tr[hidden] { display: none; }
  .ep-packs th, .ep-packs td { border: 0; padding: 2px 0; }
  .ep-packs td:nth-child(2) { grid-column: 1; color: var(--ep-muted); font-size: 14px; }
  .ep-packs td:nth-child(2)::after { content: " per unit"; }
  .ep-packs td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .ep-packs td:last-child { grid-column: 1 / -1; }
  .ep-packs td:last-child .ep-btn { width: 100%; }
}
.ep-rx { border: 1px solid #f0d9c6; border-left: 5px solid var(--ep-orange); background: #fff8f2; border-radius: var(--ep-radius); padding: 16px 18px 6px; margin: 24px 0; }
.ep-rx h3 { color: #8a3c12 !important; }
.ep-sec { border: 1px solid var(--ep-line); border-radius: var(--ep-radius); margin: 0 0 10px; background: #fff; }
.ep-sec summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 16px; font: 18px MuseoSansBold, SourceSansPro, Arial, sans-serif; color: var(--ep-green-text); }
.ep-sec > div { padding: 0 16px 14px; line-height: 1.65; }
.ep-steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .ep-steps { grid-template-columns: repeat(3, 1fr); } }
.ep-steps li { counter-increment: s; background: var(--ep-soft); border-radius: var(--ep-radius); padding: 16px 16px 16px 60px; position: relative; display: flex; flex-direction: column; }
.ep-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ep-green-text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ep-azlist { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 700px) { .ep-azlist { columns: 2; } }
@media (min-width: 1050px) { .ep-azlist { columns: 3; } }
.ep-azlist li { break-inside: avoid; padding: 2px 0; }
.ep-content .ep-azlist a { display: inline-block; padding: 10px 0; font-weight: 700; }
.ep-azlist span { color: var(--ep-muted); font-size: 14px; }

/* basket */
.ep-btable { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.ep-btable th, .ep-btable td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #ececec; }
.ep-btable td:last-child { text-align: right; }
.ep-qty { display: inline-flex; align-items: center; gap: 6px; }
.ep-qty button, .ep-remove { min-width: 44px; min-height: 44px; border: 1px solid #cfd9c2; border-radius: 8px; background: #fff; cursor: pointer; font-size: 18px; }
.ep-remove { font-size: 14px; padding: 0 10px; }
.ep-total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; background: var(--ep-soft); border-radius: var(--ep-radius); margin-bottom: 20px; }
.ep-total b { font-size: 24px; }
.ep-note { background: #eef5e6; border-radius: 8px; padding: 12px 14px; }
@media (max-width: 560px) {
  .ep-btable thead { display: none; }
  .ep-btable tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid #ececec; }
  .ep-btable td { border: 0; padding: 4px 0; }
}

/* toast */
.ep-toast { position: fixed; right: 16px; bottom: 70px; z-index: 3001; background: #1f1f1f; color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.3); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.ep-toast a { color: #cfe8a8; font-weight: 700; }

/* Easton Pharmacy artifact additions. Single light look on purpose (the site has no dark theme). */
:root { color-scheme: light; --ep-bg: #ffffff; --ep-ink: #1f1f1f; }
html, body { background: var(--ep-bg); color: var(--ep-ink); }
/* text wordmark in place of the old logo image */
.ep-textlogo { display: flex !important; align-items: center; background: none !important; }
.ep-textlogo a { font: 34px/1 MuseoSansBold, SourceSansPro, Arial, sans-serif; color: #fff !important; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.ep-textlogo b { color: var(--ep-green) !important; font-weight: inherit; }
.ep-textlogo, .ep-textlogo a { cursor: pointer; }
.ep-textlogo a { display: flex; align-items: center; height: 100%; min-height: 44px; }
.ep-textlogo a:focus-visible { outline: 2px solid var(--ep-green); outline-offset: 4px; }
@media (max-width: 760px) { .ep-textlogo a { font-size: 28px; } }
.ep-page[hidden] { display: none !important; }
.ep-chipbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--ep-soft); color: var(--ep-green-text); border: 1px solid #dfe8d3; font: 600 16px SourceSansPro, Arial, sans-serif; }
.ep-mockbar { left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.ep-toast { right: calc(16px + env(safe-area-inset-right, 0px)); }

/* ---------- comments round 1 ---------- */
/* header search: in the header row on desktop, a row under it below 1100px */
._a2m { height: auto !important; }
.ep-hsearch { display: flex; gap: 8px; margin: 0 !important; padding: 0 16px 12px; max-width: none; }
.ep-hsearch input { min-height: 44px; border: 0; border-radius: 8px; font-size: 16px; padding: 0 14px; background: #fff; color: #1f1f1f; }
.ep-hsearch .ep-btn { min-height: 44px; padding: 0 16px; }
@media (min-width: 1100px) {
  .ep-hsearch { position: absolute; top: 23px; left: 300px; width: clamp(220px, calc(100vw - 990px), 420px); padding: 0; }
}
/* hero: low band, no button; first products row visible on desktop, two products + sort on a phone */
[data-ep-hero] ._kn, [data-ep-hero] ._xg, [data-ep-hero] ._xc, [data-ep-hero] ._xl, [data-ep-hero] ._xy, [data-ep-hero] ._x2 { min-height: 0 !important; height: 210px !important; }
[data-ep-hero] { height: auto !important; min-height: 0 !important; }
[data-ep-hero] ._x9 { font-size: 30px !important; line-height: 1.15 !important; }
[data-ep-hero] ._x0 { font-size: 18px !important; line-height: 1.35 !important; }
@media (max-width: 759px) {
  [data-ep-hero] ._kn, [data-ep-hero] ._xg, [data-ep-hero] ._xc, [data-ep-hero] ._xl, [data-ep-hero] ._xy, [data-ep-hero] ._x2 { height: 112px !important; }
  [data-ep-hero] ._x9 { font-size: 20px !important; }
  [data-ep-hero] ._x0 { font-size: 14px !important; }
}
.ep-home-shop .ep-wrap { padding-top: 18px !important; padding-bottom: 28px !important; }
.ep-first { margin-top: 0 !important; margin-bottom: 8px !important; font-size: 24px !important; }
/* compact page band on shop pages */
[data-page="shop-app"] ._axm, [data-page="shop-app"] ._axm > div, [data-page="shop-app"] ._axp, [data-page="shop-app"] ._axw, [data-page="shop-app"] ._axq { min-height: 0 !important; }
[data-page="shop-app"] ._axm { height: auto !important; }
[data-page="shop-app"] ._axq { position: relative !important; height: auto !important; padding: 26px 16px !important; }
[data-page="shop-app"] ._axp, [data-page="shop-app"] ._axw { position: absolute !important; inset: 0; height: auto !important; }
[data-page="shop-app"] ._aka { position: relative !important; top: auto !important; transform: none !important; }
[data-page="shop-app"] .ep-wrap { padding-top: 16px !important; }
/* product grid: 2 / 3 / 4 / 6 columns, 24 per page */
@media (min-width: 1200px) { .ep-pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 16px !important; } .ep-pcard h3 { font-size: 17px !important; } }
@media (max-width: 559px) {
  .ep-pgrid { gap: 10px !important; }
  .ep-pcard { padding: 10px !important; }
  .ep-pcard h3 { font-size: 16px !important; margin-top: 8px !important; }
  .ep-pdose { display: none; }
  .ep-pprice { margin-bottom: 8px !important; font-size: 14px; }
  .ep-pprice b { font-size: 17px; }
}
.ep-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.ep-tools .ep-count { margin: 0 !important; }
.ep-sortbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border: 2px solid var(--ep-green-text); border-radius: 8px; background: #fff; }
.ep-sortbtn span { font-weight: 700; color: var(--ep-green-text); }
.ep-sortbtn select { border: 0; background: transparent; min-height: 40px; font: 16px SourceSansPro, Arial, sans-serif; color: #1f1f1f; max-width: 220px; }
.ep-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 24px; }
.ep-pager button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #cfd9c2; border-radius: 8px; background: #fff; cursor: pointer; font: 600 16px SourceSansPro, Arial, sans-serif; }
.ep-pager button[aria-current] { background: var(--ep-green-text); border-color: var(--ep-green-text); color: #fff; }
.ep-pager button[disabled] { color: #595959; border-color: #dcdcdc; background: #f7f7f7; opacity: 1; cursor: default; }
.ep-pager span { align-self: center; padding: 0 4px; }
.ep-trust-bottom { margin-top: 36px !important; }
/* side menu: health areas */
.ep-mshop { padding: 0 0 8px; }
.ep-mgroup p { margin: 14px 4px 4px; font: 13px MuseoSansBold, SourceSansPro, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #545b4e; }
.ep-mcat { display: grid; grid-template-columns: 1fr 44px; align-items: center; }
.ep-mcat > a span { color: #545b4e; font-size: 13px; margin-left: 6px; }
.ep-mtoggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.ep-mtoggle::before { content: ""; position: absolute; left: 17px; top: 15px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.ep-mtoggle[aria-expanded="true"]::before { transform: rotate(225deg); top: 19px; }
.ep-mcat ul { grid-column: 1 / -1; list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; max-height: 320px; overflow-y: auto; border-left: 2px solid #e3ead9; }
.ep-mcat ul a { min-height: 36px !important; font-size: 15px; }
/* footer: three columns aligned the same way */
._a5v { align-items: flex-start !important; }
#_2t, ._a5w { text-align: left !important; }
._a5w ._a2a { text-align: left !important; }
._a5w ._ff ._f2 { display: grid !important; grid-template-columns: minmax(110px, 42%) 1fr; gap: 4px 12px; align-items: start; padding: 8px 0 !important; text-align: left !important; }
._a5w ._ff ._f1, ._a5w ._ff ._fi { text-align: left !important; float: none !important; width: auto !important; }
._a5w ._ff ._f4, ._a5w ._ff ._fo { text-align: left !important; float: none !important; }
/* true-meds cart + checkout copy */
.tm-banner { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; background: #fff3e8; border: 1px solid #f3cfae; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.tm-banner b { color: #8a3c12; }
.tm-tablewrap { overflow-x: auto; }
.tm-upgrade { display: block; margin-top: 8px; padding: 8px 12px; min-height: 40px; border: 1px dashed var(--ep-green-text); border-radius: 8px; background: #f3f8ec; color: var(--ep-green-text); font: 600 14px SourceSansPro, Arial, sans-serif; cursor: pointer; text-align: left; }
.tm-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 8px 0 24px; }
@media (min-width: 900px) { .tm-grid { grid-template-columns: 3fr 2fr; } }
.tm-ship, .tm-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ep-line); border-radius: 10px; margin: 0 0 10px; cursor: pointer; background: #fff; }
.tm-ship.is-on { border-color: var(--ep-green-text); background: #f6faf0; }
.tm-ship input, .tm-opt input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: #4a7a1c; }
.tm-ship small, .tm-opt small { color: var(--ep-muted); }
.tm-hint { color: var(--ep-green-text) !important; font-weight: 600; }
.tm-free { color: var(--ep-green-text); }
.tm-sum { background: var(--ep-soft); border: 1px solid #e3ead9; border-radius: 10px; padding: 16px 18px; align-self: start; }
.tm-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 12px; }
.tm-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tm-total { font: 22px MuseoSansBold, SourceSansPro, Arial, sans-serif; padding-top: 8px; border-top: 1px solid #dfe6d4; }
.tm-pay { width: 100%; }
.tm-back { display: inline-block; margin-top: 10px; padding: 10px 0; }
.tm-co { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .tm-co { grid-template-columns: 3fr 2fr; } }
.tm-co-main { min-width: 0; }
.tm-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 14px; }
@media (min-width: 600px) { .tm-fields { grid-template-columns: 1fr 1fr; } }
.tm-f label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.tm-f input, .tm-f select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #cfd9c2; border-radius: 8px; font: 16px SourceSansPro, Arial, sans-serif; background: #fff; }
.tm-pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tm-pay-tabs button { min-height: 44px; padding: 0 14px; border: 2px solid #cfd9c2; border-radius: 8px; background: #fff; font: 600 15px SourceSansPro, Arial, sans-serif; cursor: pointer; }
.tm-pay-tabs button.is-on { border-color: var(--ep-green-text); background: var(--ep-green-text); color: #fff; }
.tm-items { list-style: none; margin: 0 0 10px; padding: 0; }
.tm-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e6ece0; }
[data-page="shop-app"] ._aka { padding: 6px 0 !important; }
@media (max-width: 759px) {
  [data-page="shop-app"] ._axq { padding: 14px 16px !important; }
  [data-page="shop-app"] ._aka { padding: 0 !important; }
  [data-page="shop-app"] .ep-wrap { padding-top: 10px !important; }
  .ep-crumbs ol { margin-bottom: 8px !important; font-size: 14px; }
  .ep-tools .ep-pagenum { display: none; }
  .ep-sortbtn select { max-width: 170px; }
}
body [data-ep-hero] ._xc ._x2, body [data-ep-hero] ._xc ._x5 { height: 210px !important; min-height: 0 !important; padding: 0 16px !important; box-sizing: border-box; display: flex !important; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
body [data-ep-hero] ._xc ._x2 { padding: 0 !important; }
@media (max-width: 759px) { body [data-ep-hero] ._xc ._x2, body [data-ep-hero] ._xc ._x5 { height: 112px !important; } }
body [data-ep-hero] ._xc { background: linear-gradient(120deg, #23310f 0%, #3c5a1a 55%, #6b3a17 100%) !important; position: relative; overflow: hidden; }
body [data-ep-hero] ._xl, body [data-ep-hero] ._xy { position: absolute !important; inset: 0 !important; height: auto !important; min-height: 0 !important; background-size: cover !important; background-position: center !important; }
body [data-ep-hero] ._xy { background-color: rgba(10, 14, 6, .45) !important; }
body [data-ep-hero] ._x2 { position: relative !important; z-index: 1; }
body [data-ep-hero] ._x9, body [data-ep-hero] ._x0 { position: static !important; margin: 0 !important; transform: none !important; text-align: center; }
body [data-ep-hero] ._x0 { margin-top: 8px !important; }
@media (max-width: 759px) {
  body [data-ep-hero] ._xl, body [data-ep-hero] ._xl.ep-nobg { background: linear-gradient(120deg, rgba(10,14,6,.7), rgba(10,14,6,.45)), linear-gradient(120deg, #4f7a22 0%, #6f9a35 50%, #b8622a 100%) !important; }
  body [data-ep-hero] ._xy { display: none !important; }
}
@media (max-width: 759px) { body [data-ep-hero] ._ztz { display: none !important; } }

/* ---------- comments round 2 ---------- */
/* buttons: green, a little lighter than the header's green; dark text for contrast */
.ep-content .ep-btn, .ep-btn, .ep-hsearch .ep-btn { background: #a5d660 !important; color: #14210a !important; }
.ep-content .ep-btn:hover, .ep-btn:hover { background: #91c647 !important; }
.ep-btn:focus-visible { outline: 3px solid #14210a !important; outline-offset: 2px; }
/* catalog: categories column left of the product grid */
.ep-catlayout { display: grid; grid-template-columns: 1fr; gap: 0 28px; align-items: start; }
.ep-catmain { min-width: 0; }
.ep-side { display: none; border: 1px solid var(--ep-line); border-radius: 10px; padding: 6px 12px 10px; margin: 0 0 14px; background: #fff; }
.ep-side.is-open { display: block; }
.ep-side-title { margin: 8px 4px 0 !important; font: 18px MuseoSansBold, SourceSansPro, Arial, sans-serif; color: var(--ep-green-text); }
.ep-side .ep-mcat > a { display: flex; align-items: center; min-height: 40px; padding: 0 4px; color: var(--ep-ink); text-decoration: none; font-size: 16px; }
.ep-side .ep-mcat > a[aria-current] { color: var(--ep-green-text); font-weight: 700; }
.ep-side .ep-mcat > a:hover { color: var(--ep-orange-text); }
.ep-side .ep-msub > a { padding-left: 18px; font-size: 15px; }
.ep-side .ep-mcat ul a { display: block; padding: 8px 4px; color: var(--ep-ink); text-decoration: none; font-size: 15px; }
.ep-catbtn { min-height: 44px; padding: 0 14px; border: 2px solid var(--ep-green-text); border-radius: 8px; background: #fff; color: var(--ep-green-text); font: 700 16px SourceSansPro, Arial, sans-serif; cursor: pointer; }
.ep-catbtn[aria-expanded="true"] { background: var(--ep-green-text); color: #fff; }
@media (min-width: 900px) {
  .ep-catlayout { grid-template-columns: 250px minmax(0, 1fr); }
  .ep-side { display: block; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .ep-catbtn { display: none; }
}
@media (min-width: 900px) and (max-width: 1199px) { .ep-catmain .ep-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1200px) { .ep-catmain .ep-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 559px) { .ep-catlayout .ep-tools .ep-count { display: none; } .ep-catlayout .ep-sortbtn select { max-width: 150px; } }
/* list title in the toolbar row (home): keeps the first product row above the fold */
.ep-tools .ep-ltitle { margin: 0 auto 0 0 !important; }
.ep-tools .ep-ltitle + .ep-catbtn + .ep-count, .ep-tools .ep-ltitle + .ep-count { display: none; }
@media (max-width: 559px) { .ep-tools .ep-ltitle { flex-basis: 100%; } }

/* ---------- design_ep (server-rendered shop pages) ---------- */
[hidden] { display: none !important; }
.ep-bcount:empty { display: none; }
/* compact page band on shop pages (was [data-page="shop-app"] in the prototype) */
.ep-shoppage ._axm, .ep-shoppage ._axm > div, .ep-shoppage ._axp, .ep-shoppage ._axw, .ep-shoppage ._axq { min-height: 0 !important; }
.ep-shoppage ._axm { height: auto !important; }
.ep-shoppage ._axq { position: relative !important; height: auto !important; padding: 26px 16px !important; }
.ep-shoppage ._axp, .ep-shoppage ._axw { position: absolute !important; inset: 0; height: auto !important; }
.ep-shoppage ._aka { position: relative !important; top: auto !important; transform: none !important; padding: 6px 0 !important; }
.ep-shoppage .ep-wrap { padding-top: 16px !important; }
.ep-shoppage ._akf:empty { display: none; }
@media (max-width: 759px) {
  .ep-shoppage ._axq { padding: 14px 16px !important; }
  .ep-shoppage ._aka { padding: 0 !important; }
  .ep-shoppage .ep-wrap { padding-top: 10px !important; }
}
/* pack table: add-to-basket is a real form posting to the shop */
.ep-packs form { margin: 0; }
.ep-packs .ep-dose-l { color: var(--ep-muted); font-weight: normal; }
.ep-dtabs + .ep-packs .ep-dose-l { display: none; }
.ep-prod-main .ep-pact-l a, .ep-prod-main .ep-other a { color: var(--ep-green-text); }
/* product description from the shop database */
.ep-desc { line-height: 1.55; overflow-wrap: anywhere; }
.ep-desc p, .ep-desc ul, .ep-desc ol { margin: 0 0 12px; }
.ep-desc ul, .ep-desc ol { padding-left: 22px; }
.ep-desc strong, .ep-desc b { font-family: MuseoSansBold, SourceSansPro, Arial, sans-serif; font-weight: normal; color: var(--ep-green-text); }
.ep-desc table { border-collapse: collapse; max-width: 100%; }
.ep-desc td, .ep-desc th { border: 1px solid var(--ep-line); padding: 6px 8px; }
/* chips as links */
.ep-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ep-content .ep-chips-soft a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; }
/* scoped design_1 content (cart, about, FAQ ...) sits inside the restored page */
.tm-scope { font-size: 16px; }
/* back-to-top button used by the shop's app.js */
.btn-up { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ep-btn, #a5d660); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: opacity .2s; }
.btn-up::before { content: ""; position: absolute; left: 17px; top: 20px; width: 12px; height: 12px; border-left: 3px solid #14210a; border-top: 3px solid #14210a; transform: rotate(45deg); }
.btn-up_hide { opacity: 0; pointer-events: none; }
.ep-sortbtn select { -webkit-appearance: menulist; appearance: auto; border: 0 !important; box-shadow: none !important; background: transparent !important;
  font: 16px SourceSansPro, Arial, sans-serif !important; color: #1f1f1f !important; padding: 0 4px !important; height: 40px; }
@media (min-width: 1100px) { .ep-hsearch { width: clamp(200px, calc(100vw - 1030px), 420px) !important; } }


/* Restored Easton Pharmacy logo link */
._a2n ._88.ep-imglogo a { display: block; width: 100%; height: 100%; text-decoration: none; }
._a2n ._88.ep-imglogo a:focus-visible { outline: 2px solid var(--ep-green); outline-offset: 4px; }


/* ---------- UI/UX Audit Fixes for Header, Shop Grid & Popups ---------- */
/* Hide legacy unstyled popups (#thanks, .popup_white) unless explicitly opened as modal */
.popup.thanks, .popup_white.hide, .popup_white { display: none !important; }
.popup.thanks.popup_show {
  display: flex !important; position: fixed; inset: 0; z-index: 4000;
  background: rgba(0, 0, 0, 0.55); align-items: center; justify-content: center; padding: 16px;
}
.popup.thanks.popup_show .popup__content {
  background: #fff; border-radius: 12px; padding: 28px 32px; max-width: 420px; width: 100%;
  position: relative; box-shadow: 0 12px 36px rgba(0,0,0,0.25); text-align: center;
}

/* Header flex alignment on desktop so Logo (84..298px), Search, and Action buttons never collide */
@media (min-width: 1100px) {
  ._a2m {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 28px 10px 84px !important;
    box-sizing: border-box;
    min-height: 86px;
  }
  ._a2n {
    float: none !important;
    margin: 0 !important;
    width: 215px !important;
    height: 66px !important;
    flex: 0 0 215px;
  }
  .ep-hsearch {
    position: static !important;
    flex: 1 1 320px;
    max-width: 460px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  ._a2b {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
  }
  ._a2b ._8z { margin-bottom: 0 !important; }
}

/* Below 1100px: clean stacked header with >=44x44px touch targets */
@media (max-width: 1099px) {
  ._a2n {
    margin: 12px 76px 6px 76px !important;
    height: 62px !important;
  }
  ._a2b {
    padding-top: 4px !important;
    padding-bottom: 8px !important;
  }
  ._a2b ._8y {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .ep-hsearch {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 4px 16px 14px !important;
  }
}

/* Hero banner readability & spacing */
body [data-ep-hero] ._xy { background-color: rgba(10, 14, 6, 0.58) !important; }
body [data-ep-hero] ._x9 { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65); letter-spacing: 0.02em; }
body [data-ep-hero] ._x0 { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65); max-width: 680px; }

/* Shop section & Category sidebar: remove nested scroll trap, improve breathing room & card alignment */
.ep-shop .ep-wrap {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 28px 24px 44px !important;
}
.ep-home-shop .ep-wrap {
  padding-top: 28px !important;
  padding-bottom: 40px !important;
}
@media (min-width: 900px) {
  .ep-catlayout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 0 32px !important;
  }
  .ep-side {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px 16px 18px !important;
  }
}
.ep-side-title {
  margin: 4px 4px 8px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ep-line);
}
.ep-mgroup p {
  margin: 16px 4px 6px !important;
  font-size: 12.5px !important;
  font-weight: 700;
}
.ep-side .ep-mcat > a {
  justify-content: space-between;
  padding: 4px 6px !important;
  border-radius: 6px;
}
.ep-side .ep-mcat > a:hover {
  background: var(--ep-soft);
}
.ep-pcard {
  padding: 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ep-pcard:hover {
  border-color: #c5d6b0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.ep-tools {
  margin: 0 0 18px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ep-line);
}
.ep-sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px 0 14px;
  border: 1.5px solid #cfd9c2;
  border-radius: 8px;
  background: #fff;
}
.ep-sortbtn label {
  font-weight: 700;
  color: var(--ep-green-text);
  cursor: pointer;
  margin: 0;
}

/* Back-to-top button: clean placement in bottom-right without overlapping red promo widget */
.btn-up {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  right: calc(20px + env(safe-area-inset-right, 0px)) !important;
}
