/* Product page (woocommerce/single-product.php).
 *
 * Navy page, image pinned on the left, one white buy card on the right: the
 * same white-on-navy treatment as the checkout cards.
 *
 * Rules of the page, so it stays tidy as things are added:
 *   - two text colors in the card (ink, text) plus one muted, one blue for
 *     actions and chosen states, green only for stock and savings
 *   - two corner sizes: 18px for the card and image, 10px for controls
 *   - five type sizes: 13, 15, 17, 20, and the title
 *   - a claim is made once. Testing lives under the image, shipping and
 *     payment in the facts list
 *
 * Tailwind's stylesheet loads after this one, so every rule here uses at least
 * two classes to win over a single utility class on the same element.
 */

.epd {
    --epd-ink: #0b2239;
    --epd-text: #33475b;
    --epd-muted: #5b6f84;
    --epd-line: #dfe6ee;
    --epd-field: #c5d0dc;
    --epd-tint: #f3f6fa;
    --epd-blue: #0b63ce;
    --epd-blue-dark: #0a55b3;
    --epd-blue-tint: #eef5fe;
    --epd-green: #0a7d55;
    --epd-green-tint: #e8f7f0;
    --epd-amber: #a15c07;
    --epd-red: #b42318;
    /* Height of the sticky site header plus breathing room. */
    --epd-top: 142px;

    background: #011a2e;
    padding: 28px 0 64px;
}
.admin-bar .epd {
    --epd-top: 174px;
}

section.epd-crumbs {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ---------------------------------------------------------------- Layout */

.epd .epd__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
/* Phones and tablets: image, buy card, then the proof block. */
.epd .epd__media,
.epd .epd__pin {
    display: contents;
}
.epd .epd__gallery { order: 1; }
.epd .epd__buy { order: 2; min-width: 0; }
.epd .epd__proof { order: 3; }

@media (min-width: 1024px) {
    .epd .epd__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }
    .epd .epd__media {
        display: block;
        /* Stretch to the buy column's height so the image has room to stay pinned. */
        align-self: stretch;
        min-width: 0;
    }
    .epd .epd__pin {
        display: block;
        position: sticky;
        top: var(--epd-top);
        /* Never taller than the screen: the image shrinks before it gets cut off. */
        max-width: max(340px, min(100%, calc(100vh - var(--epd-top) - 270px)));
        margin-inline: auto;
    }
}

/* ----------------------------------------------------------------- Image */

.epd .epd__stage {
    border-radius: 18px;
    background: #03284f;
}
.epd .epd__thumbs button {
    border-radius: 10px;
}

/* ------------------------------------- Lab record under the image (navy) */

.epd .epd__proof {
    margin-top: 16px;
    padding: 18px;
    background: #03284f;
    border: 1px solid #0a5a9e;
    border-radius: 18px;
    color: #a3c4d9;
    font-size: 13px;
    line-height: 1.5;
}
.epd .epd__proof-claim {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.epd .epd__proof-ico {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: #6bb3fb;
}
.epd .epd__proof-head {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.epd .epd__proof-sub {
    margin: 2px 0 0;
}
.epd .epd__batch {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px 18px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #0a5a9e;
}
.epd .epd__batch[hidden],
.epd .epd__batch-cell[hidden],
.epd .epd__batch-hint[hidden] {
    display: none;
}
.epd .epd__batch dt {
    margin: 0 0 2px;
    font-weight: 500;
}
.epd .epd__batch dd {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.epd .epd__batch-hint {
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #0a5a9e;
}
/* The COA is the proof, so it gets a real button, in the card's white. */
.epd .epd__coa {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin-top: 16px;
    padding: 9px 14px;
    background: #ffffff;
    border-radius: 10px;
    color: #0b2239;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.epd .epd__coa:hover {
    background: #eef5fe;
}
.epd .epd__coa-doc {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #0b63ce;
}
.epd .epd__coa-text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}
.epd .epd__coa-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.epd .epd__coa-sub {
    color: #5b6f84;
    font-size: 13px;
    line-height: 1.4;
}
.epd .epd__coa-go {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #0b63ce;
}
.epd .epd__proof > .epd__coa:first-child {
    margin-top: 0;
}

/* ------------------------------------------------------------- Buy card */

.epd .epd__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 28px 26px;
    color: var(--epd-text);
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(1, 10, 22, 0.35);
}

.epd .epd__status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.epd .epd__stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--epd-muted);
}
.epd .epd__stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.epd .epd__stock--in { color: var(--epd-green); }
.epd .epd__stock--soon { color: var(--epd-blue); }
.epd .epd__stock--pre,
.epd .epd__low { color: var(--epd-amber); }
.epd .epd__stock--out { color: var(--epd-red); }

.epd .epd__title {
    margin: 0 0 12px;
    color: var(--epd-ink);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(30px, 3.1vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Price. The markup is shared with older sale modules, so colors are set on
   whatever sits inside rather than on new class names. */
.epd .epd__card .everest-pdp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 0 0 20px;
    color: var(--epd-ink);
    font-variant-numeric: tabular-nums;
}
.epd .epd__card .everest-pdp-price[hidden] {
    display: none;
}
.epd .epd__card .everest-pdp-price > span,
.epd .epd__card .everest-pdp-price .price,
.epd .epd__card .everest-pdp-price .woocommerce-Price-amount,
.epd .epd__card .everest-pdp-from__price,
.epd .epd__card .everest-pdp-from__price .woocommerce-Price-amount {
    color: var(--epd-ink);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.epd .epd__card .everest-pdp-price del,
.epd .epd__card .everest-pdp-price del .woocommerce-Price-amount,
.epd .epd__card .everest-pdp-price .line-through,
.epd .epd__card .everest-pdp-price .line-through .woocommerce-Price-amount,
.epd .epd__card .everest-pdp-from__was,
.epd .epd__card .everest-pdp-from__was del {
    color: var(--epd-muted);
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}
.epd .epd__card .everest-pdp-price ins {
    text-decoration: none;
}
.epd .epd__card .everest-pdp-from {
    gap: 0 8px;
}
.epd .epd__card .everest-pdp-from__unit {
    color: var(--epd-muted);
    font-size: 15px;
    font-weight: 500;
}
/* "Save up to N% with packs": the pack tiles say it with real numbers. */
.epd .epd__card .everest-pdp-from__packs,
.epd .epd__card .everest-pack__hint {
    display: none;
}
/* Once a size is picked the price shows under the title (everest-pdp.js). */
.epd-has-vprice .epd .single_variation .woocommerce-variation-price {
    display: none;
}

/* Field labels */
.epd .epd__card .epd-label,
.epd .epd__card .everest-pack__label {
    display: block;
    margin: 0 0 8px;
    color: var(--epd-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
/* Attribute names can be stored lowercase ("size"). */
.epd .epd__card .epd-label::first-letter {
    text-transform: uppercase;
}

/* Size buttons */
.epd .epd__card .everest-variation-row {
    margin-bottom: 18px;
}
.epd .epd__card .everest-dosage-buttons {
    gap: 8px;
}
.epd .epd__card .everest-dosage-btn {
    min-width: 84px;
    height: 46px;
    padding: 0 20px;
    background: #ffffff;
    border: 1.5px solid var(--epd-field);
    border-radius: 10px;
    box-shadow: none;
    color: var(--epd-ink);
    font-size: 15px;
    font-weight: 600;
}
.epd .epd__card .everest-dosage-btn:hover {
    background: #ffffff;
    border-color: var(--epd-ink);
    color: var(--epd-ink);
}
.epd .epd__card .everest-dosage-btn.active {
    background: var(--epd-blue-tint);
    border-color: var(--epd-blue);
    box-shadow: inset 0 0 0 1px var(--epd-blue);
    color: var(--epd-blue-dark);
}
.epd .epd__card .everest-dosage-btn--static,
.epd .epd__card .everest-dosage-btn--static:hover {
    background: var(--epd-tint);
    border-color: var(--epd-line);
    box-shadow: none;
    color: var(--epd-ink);
}
/* "Clear selection" sits on the label row so it never pushes the page down. */
.epd .epd__card .everest-variation-row {
    position: relative;
}
/* A size is always selected (the page opens on one), so there is nothing to
   clear: switching size is the only move. */
.epd .epd__card .variations_form .epd-reset {
    display: none !important;
}
.epd .epd__card .epd-reset {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    color: var(--epd-muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.epd .epd__card .epd-reset:hover {
    color: var(--epd-ink);
}

/* Pack tiles */
.epd .epd__card .everest-pack {
    margin-bottom: 16px;
}
.epd .epd__card .everest-pack__head {
    margin-bottom: 0;
}
.epd .epd__card .everest-pack__tiles {
    gap: 8px;
}
.epd .epd__card .everest-pack__tile {
    min-height: 0;
    gap: 2px;
    padding: 12px 12px 11px;
    background: #ffffff;
    border: 1.5px solid var(--epd-field);
    border-radius: 10px;
    box-shadow: none;
    color: var(--epd-text);
    transform: none;
}
.epd .epd__card .everest-pack__tile:hover {
    background: #ffffff;
    border-color: var(--epd-ink);
    color: var(--epd-text);
    transform: none;
}
.epd .epd__card .everest-pack__tile.is-selected {
    background: var(--epd-blue-tint);
    border-color: var(--epd-blue);
    box-shadow: inset 0 0 0 1px var(--epd-blue);
}
.epd .epd__card .everest-pack__tile.is-unavailable,
.epd .epd__card .everest-pack__tile.is-unavailable:hover {
    border-color: var(--epd-line);
}
.epd .epd__card .everest-pack__name,
.epd .epd__card .everest-pack__tile:hover .everest-pack__name,
.epd .epd__card .everest-pack__tile.is-selected .everest-pack__name {
    color: var(--epd-text);
    font-size: 13px;
    font-weight: 600;
}
.epd .epd__card .everest-pack__total {
    margin-top: 2px;
    color: var(--epd-ink);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}
.epd .epd__card .everest-pack__per {
    color: var(--epd-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.epd .epd__card .everest-pack__pill {
    margin-top: 6px;
    padding: 1px 8px;
    background: var(--epd-green-tint);
    border: 0;
    color: var(--epd-green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.epd .epd__card .everest-pack__check {
    background: var(--epd-blue);
    color: #ffffff;
}

/* Summary line: quantity or total mg, rate, and what you pay */
.epd .epd__card .everest-pack__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    margin-top: 14px;
    padding: 12px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--epd-line);
    border-radius: 0;
}
.epd .epd__card .everest-pack__cell {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 0;
    border: 0;
    text-align: left;
}
.epd .epd__card .everest-pack__cell--pay {
    margin-left: auto;
}
.epd .epd__card .everest-pack__k {
    color: var(--epd-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.epd .epd__card .everest-pack__v {
    color: var(--epd-ink);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.epd .epd__card .everest-pack__v--pay {
    color: var(--epd-ink);
    font-size: 20px;
    font-weight: 800;
}

/* Quantity and Add to Cart: one row, the button takes all the room left. */
.epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart,
.epd .epd__card .everest-simple-addtocart-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: none;
    margin-bottom: 0;
}
.epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity,
.epd .epd__card .everest-simple-addtocart-row .everest-simple-qty {
    height: 56px;
    background: #ffffff;
    border: 1.5px solid var(--epd-field);
    border-radius: 10px;
}
/* custom.css forces the dark theme's utility colors with !important. */
.epd .epd__card .everest-simple-addtocart-row .everest-simple-qty {
    background-color: #ffffff !important;
    border-color: var(--epd-field) !important;
}
.epd .epd__card .everest-simple-qty span {
    border-color: var(--epd-line) !important;
}
.epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity .qty-btn,
.epd .epd__card .everest-simple-qty button {
    width: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    color: var(--epd-text);
}
.epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity .qty-btn:hover,
.epd .epd__card .everest-simple-qty button:hover {
    background: var(--epd-tint);
    color: var(--epd-ink);
}
.epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity .qty,
.epd .epd__card .everest-simple-qty span {
    width: 40px;
    min-width: 40px;
    border-color: var(--epd-line);
    color: var(--epd-ink);
    font-size: 15px;
}
.epd .epd__card .single_variation_wrap .single_add_to_cart_button,
.epd .epd__card .everest-simple-addtocart-row .everest-simple-atc {
    flex: 1 1 auto;
    width: auto;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    background: var(--epd-blue) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px !important;
    font-weight: 700;
    letter-spacing: 0;
}
.epd .epd__card .single_variation_wrap .single_add_to_cart_button:hover,
.epd .epd__card .everest-simple-addtocart-row .everest-simple-atc:hover {
    background: var(--epd-blue-dark) !important;
}
/* "Added!" state on simple products (Alpine swaps in the green class). */
.epd .epd__card .everest-simple-addtocart-row .everest-simple-atc[class*="bg-[#10b981]"] {
    background: var(--epd-green) !important;
}
/* This size cannot be bought right now. */
.epd .epd__card .single_variation_wrap .single_add_to_cart_button.disabled {
    background: #9db4d0 !important;
    cursor: not-allowed;
}
.epd .epd__card .mb-6:has(> .variations_form),
.epd .epd__card .everest-simple-addtocart-row.mb-6 {
    margin-bottom: 0;
}

.epd .epd__card .woocommerce-variation-availability[hidden] {
    display: none;
}
.epd .epd__card .woocommerce-variation-availability p {
    margin: 0 0 10px;
    color: var(--epd-green);
    font-size: 13px;
}
.epd .epd__card .woocommerce-variation-availability p.out-of-stock {
    color: var(--epd-red);
}
.epd .epd__card .woocommerce-variation-description p {
    color: var(--epd-text);
}

.epd .epd__card .epd__soldout {
    display: block;
    width: 100%;
    height: 56px;
    background: var(--epd-tint);
    border: 1.5px solid var(--epd-line);
    border-radius: 10px;
    color: var(--epd-muted);
    font-size: 17px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Dark panels that live inside the white card keep their own light text. */
.epd .epd__card .epd-inset {
    padding: 16px;
    background: #03284f;
    border-radius: 10px;
}
.epd .epd__card .epd-inset:not(:has(*)) {
    display: none;
}
.epd .epd__card .epd-dark,
.epd .epd__card .ep-first-order {
    margin-top: 16px;
    margin-bottom: 0;
}

/* First-order offer (markup and base styles in inc/first-order-discount.php).
   On the white card it is a light gold panel: the same gold, mixed into white,
   with ink text. Gold stays reserved for first-order messaging. */
.epd .epd__card .ep-first-order {
    background: rgba(255, 209, 102, 0.16);
    border-color: rgba(245, 194, 66, 0.75);
    border-radius: 12px;
    box-shadow: none;
}
.epd .epd__card .ep-first-order .ep-first-order__ico {
    width: 40px;
    height: 40px;
    background: #ffd166;
    color: var(--epd-ink);
}
.epd .epd__card .ep-first-order .ep-first-order__ico svg {
    width: 20px;
    height: 20px;
    stroke: var(--epd-ink);
}
.epd .epd__card .ep-first-order .everest-fo-callout__head {
    color: var(--epd-ink);
}
.epd .epd__card .ep-first-order .everest-fo-callout__sub {
    color: var(--epd-text);
}
.epd .epd__card .ep-first-order .everest-fo-btn {
    box-shadow: none;
}
.epd .epd__card .ep-first-order .everest-fo-link,
.epd .epd__card .ep-first-order .everest-fo-link:visited {
    color: var(--epd-ink) !important;
}
.epd .epd__card .ep-first-order .everest-fo-link:hover {
    color: var(--epd-blue) !important;
}

/* Free shipping line (cart fragment, markup in inc/everest-cache-safety.php) */
.epd .epd__card #everest-pdp-freeship > div {
    margin: 14px 0 0;
    font-size: 13px;
}
.epd .epd__card #everest-pdp-freeship svg {
    width: 16px;
    height: 16px;
}

/* Older blocks in the card still carry the dark theme's Tailwind colors.
   Map them onto the card's palette. */
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-white"] { color: var(--epd-ink); }
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#b8d4ed]"],
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#a3c4d9]"] { color: var(--epd-text); }
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#93b4cc]"],
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#7fa8c9]"] { color: var(--epd-muted); }
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#6bb3fb]"] { color: var(--epd-blue); }
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#10b981]"] { color: var(--epd-green); }
.epd .epd__card :not(.epd-dark, .epd-dark *)[class*="text-[#fde68a]"] { color: var(--epd-amber); }
/* The price is always ink, whatever older markup wraps it in. */
.epd .epd__card .everest-pdp-price[class] [class*="text-[#6bb3fb]"] { color: var(--epd-ink); }

/* Facts and summary */
.epd .epd__facts {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--epd-line);
    list-style: none;
    font-size: 15px;
}
.epd .epd__facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.epd .epd__facts svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--epd-blue);
}
.epd .epd__facts strong {
    color: var(--epd-ink);
    font-weight: 600;
}
.epd .epd__summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--epd-line);
    color: var(--epd-text);
    font-size: 15px;
    line-height: 1.6;
}
.epd .epd__summary p {
    margin: 0;
}
.epd .epd__summary p + p {
    margin-top: 10px;
}

/* Keyboard focus */
.epd .epd__card :is(button, a, input):focus-visible {
    outline: 2px solid var(--epd-blue);
    outline-offset: 2px;
}
.epd .epd__coa:focus-visible {
    outline: 2px solid #6bb3fb;
    outline-offset: 3px;
}

/* --------------------------------------------- Overview, specs, compliance */

section.epd-detail {
    background: #03284f;
    padding: 56px 0 64px;
}
.epd-detail .epd-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
.epd-detail .epd-detail__h {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.epd-detail .epd-detail__overview .prose {
    max-width: 68ch;
}
.epd-detail .epd-detail__overview .prose > :first-child {
    margin-top: 0;
}
.epd-detail .epd-detail__specs .everest-spec-block h3 {
    margin-top: 28px;
}
.epd-detail .epd-detail__specs .everest-spec-table {
    width: 100%;
}
.epd-detail .epd-detail__rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #0a5a9e;
}
.epd-detail .epd-detail__rule .epd-detail__h {
    margin-bottom: 10px;
    font-size: 17px;
}
.epd-detail .epd-detail__rule .everest-compliance-copy p {
    max-width: 68ch;
    color: #a3c4d9;
    font-size: 15px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .epd-detail .epd-detail__rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
    }
}
@media (min-width: 1024px) {
    .epd-detail .epd-detail__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 64px;
        align-items: start;
    }
    .epd-detail .epd-detail__grid--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------------------------------------------------------------- Phones */

@media (max-width: 1023px) {
    .epd {
        padding: 16px 0 44px;
    }
    /* Tablets: keep the image from filling the whole screen. */
    .epd .epd__gallery,
    .epd .epd__proof {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
    }
    .epd .epd__buy {
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
    }
    .epd .epd__proof {
        margin-top: 0;
    }
    section.epd-detail {
        padding: 40px 0 48px;
    }
}
@media (max-width: 640px) {
    .epd .epd__card {
        padding: 20px 18px;
        border-radius: 16px;
    }
    .epd .epd__stage {
        border-radius: 16px;
    }
    .epd .epd__card .everest-pdp-price > span,
    .epd .epd__card .everest-pdp-price .price,
    .epd .epd__card .everest-pdp-price .woocommerce-Price-amount,
    .epd .epd__card .everest-pdp-from__price,
    .epd .epd__card .everest-pdp-from__price .woocommerce-Price-amount {
        font-size: 26px;
    }
    .epd .epd__card .everest-dosage-btn {
        flex: 1 1 0;
        min-width: 72px;
        padding: 0 12px;
    }
}
@media (max-width: 480px) {
    /* A slimmer stepper leaves the button most of the row. */
    .epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity .qty-btn,
    .epd .epd__card .everest-simple-qty button,
    .epd .epd__card .single_variation_wrap .woocommerce-variation-add-to-cart .quantity .qty,
    .epd .epd__card .everest-simple-qty span {
        width: 34px;
        min-width: 34px;
        flex-basis: 34px;
    }
    /* Tiles stack as rows: name and saving left, prices right. */
    .epd .epd__card .everest-pack__tile {
        padding: 10px 40px 10px 12px;
    }
    .epd .epd__card .everest-pack__total {
        margin-top: 0;
        font-size: 17px;
    }
    .epd .epd__card .everest-pack__pill {
        margin-top: 0;
    }
    .epd .epd__card .everest-pack__cell--pay {
        flex-basis: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epd .epd__card * {
        transition: none !important;
    }
}
