
/* Brew:38 Shopify Storefront v0.2 */
.brew38-storefront {
    width: min(1240px, calc(100vw - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 30px 0 70px;
    color: #222;
}
.brew38-storefront * { box-sizing: border-box; }

.brew38-intro {
    max-width: 780px;
    margin: 0 auto 64px;
    text-align: center;
}
.brew38-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .62;
}
.brew38-intro h1,
.brew38-section-copy h2,
.brew38-section-heading h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -.025em;
}
.brew38-intro h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
}
.brew38-intro p {
    max-width: 650px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.65;
    opacity: .7;
}

.brew38-feature-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
    gap: 54px;
    align-items: center;
    padding: 54px;
    margin-bottom: 34px;
    border-radius: 22px;
}
.brew38-subscriptions { background: #f1eee8; }
.brew38-preorders { background: #f7f7f5; }

.brew38-section-copy h2,
.brew38-section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}
.brew38-section-copy p,
.brew38-section-heading p {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.65;
    opacity: .72;
}

.brew38-feature-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    border-radius: 18px;
    background: #222;
    color: #fff;
}
.brew38-card-kicker {
    display: block;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}
.brew38-feature-card h3 {
    max-width: 500px;
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    color: inherit;
}
.brew38-feature-card p {
    max-width: 520px;
    margin: 16px 0 0;
    line-height: 1.6;
    opacity: .72;
}
.brew38-coming-pill {
    align-self: flex-start;
    display: inline-block;
    margin-top: 28px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.brew38-preorder-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 18px;
    background: #fff;
}
.brew38-preorder-placeholder span {
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}
.brew38-preorder-placeholder strong {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.brew38-coffee-section { padding-top: 50px; }
.brew38-section-heading {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}
.brew38-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.brew38-product-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.055);
    transition: transform .18s ease, box-shadow .18s ease;
}
.brew38-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.09);
}
.brew38-product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f1ed;
}
.brew38-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brew38-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
}
.brew38-product-body { padding: 24px; }
.brew38-product-body h3 {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.25;
}
.brew38-price {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}
.brew38-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    opacity: .7;
}
.brew38-variant-note {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .58;
}
.brew38-error, .brew38-empty {
    padding: 18px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 8px;
    background: #fff;
}

/* Twenty Seventeen constrains normal page content heavily.
   Allow only pages containing this shortcode to visually expand via the storefront itself. */
.entry-content .brew38-storefront {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 900px) {
    .brew38-storefront { width: min(100% - 32px, 760px); }
    .brew38-feature-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px;
    }
    .brew38-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .brew38-storefront { width: min(100% - 24px, 520px); padding-top: 15px; }
    .brew38-intro { margin-bottom: 42px; }
    .brew38-feature-section { padding: 26px; border-radius: 16px; }
    .brew38-feature-card { padding: 26px; min-height: 230px; }
    .brew38-product-grid { grid-template-columns: 1fr; gap: 20px; }
    .brew38-product-body { padding: 20px; }
}


/* v0.3 purchasing controls */
.brew38-price {
    font-size: 16px;
}
.brew38-buy-controls {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.09);
}
.brew38-buy-controls > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brew38-variant-select {
    width: 100%;
    min-height: 44px;
    padding: 9px 38px 9px 12px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}
.brew38-selected-price {
    min-height: 25px;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}
.brew38-purchase-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.brew38-qty {
    display: grid;
    grid-template-columns: 36px 44px 36px;
    height: 44px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 8px;
    overflow: hidden;
}
.brew38-qty button,
.brew38-qty input {
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #222;
    text-align: center;
    font-size: 16px;
    line-height: 42px;
}
.brew38-qty button { cursor: pointer; font-size: 20px; }
.brew38-qty input {
    -moz-appearance: textfield;
    appearance: textfield;
}
.brew38-qty input::-webkit-outer-spin-button,
.brew38-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.brew38-add-button {
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.brew38-add-button:hover { opacity: .88; }
.brew38-add-button:disabled { cursor: not-allowed; opacity: .45; }
.brew38-cart-status {
    min-height: 20px;
    margin-top: 9px;
    font-size: 12px;
    font-weight: 600;
    opacity: .72;
}
@media (max-width: 600px) {
    .brew38-purchase-row { grid-template-columns: 1fr; }
    .brew38-qty { width: 116px; }
}


/* =========================================================
   v0.4 — Currently Available Coffee card refinement
   Keeps subscription/upcoming-roast sections unchanged.
   ========================================================= */

.brew38-coffee-section .brew38-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.brew38-coffee-section .brew38-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(25, 25, 25, .18);
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .045);
}

.brew38-coffee-section .brew38-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .075);
}

.brew38-coffee-section .brew38-product-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid rgba(25, 25, 25, .13);
    border-radius: 0;
    background: #f4f2ee;
    overflow: hidden;
}

.brew38-coffee-section .brew38-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brew38-coffee-section .brew38-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 19px 19px;
}

.brew38-coffee-section .brew38-product-body h3 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.2;
}

.brew38-coffee-section .brew38-price {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.brew38-coffee-section .brew38-description {
    min-height: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.48;
}

.brew38-coffee-section .brew38-buy-controls {
    margin-top: auto;
    padding-top: 15px;
}

.brew38-coffee-section .brew38-buy-controls > label {
    margin-bottom: 6px;
    font-size: 10px;
}

.brew38-coffee-section .brew38-variant-select {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 13px;
}

.brew38-coffee-section .brew38-selected-price {
    min-height: 22px;
    margin-top: 9px;
    font-size: 17px;
}

.brew38-coffee-section .brew38-purchase-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    margin-top: 7px;
}

.brew38-coffee-section .brew38-qty {
    grid-template-columns: 32px 40px 32px;
    width: 104px;
    height: 40px;
}

.brew38-coffee-section .brew38-qty button,
.brew38-coffee-section .brew38-qty input {
    height: 38px;
    line-height: 38px;
}

.brew38-coffee-section .brew38-add-button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
}

.brew38-coffee-section .brew38-cart-status {
    min-height: 16px;
    margin-top: 7px;
    font-size: 11px;
}

@media (min-width: 1180px) {
    .brew38-coffee-section .brew38-product-grid {
        grid-template-columns: repeat(3, minmax(0, 340px));
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .brew38-coffee-section .brew38-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .brew38-coffee-section .brew38-product-grid {
        grid-template-columns: 1fr;
    }

    .brew38-coffee-section .brew38-purchase-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}


/* v0.5 persistent Shopify cart indicator */
.brew38-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
    padding: 13px 16px;
    border: 1px solid rgba(25,25,25,.13);
    border-radius: 10px;
    background: #fff;
}
.brew38-cart-bar > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.brew38-cart-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .58;
}
.brew38-cart-bar strong {
    font-size: 14px;
}
.brew38-cart-note {
    font-size: 11px;
    opacity: .55;
}
@media (max-width: 600px) {
    .brew38-cart-note { display: none; }
}


/* v0.5.1 — floating cart + inventory-aware quantity controls */
.brew38-floating-cart {
    position: fixed !important;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #142b3b;
    color: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.22);
    cursor: pointer;
}
.brew38-floating-cart:hover {
    transform: translateY(-2px);
}
.brew38-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brew38-floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d96613;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}
.brew38-floating-cart-count.is-empty {
    background: #777;
}
.brew38-stock-message {
    min-height: 18px;
    margin-top: 7px;
    color: #9f2d20;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}
.brew38-qty button:disabled,
.brew38-qty button[disabled] {
    opacity: .32;
    cursor: not-allowed;
    background: #e7e7e7;
    color: #777;
}
@media (max-width: 600px) {
    .brew38-floating-cart {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}

/* v0.5.3 — informational Current Roasts */
.brew38-roast-availability {
  display:inline-flex; align-items:center; align-self:flex-start; gap:7px;
  margin-top:auto; padding-top:15px; font-size:12px; line-height:1.2; font-weight:800;
}
.brew38-availability-dot { width:8px; height:8px; border-radius:50%; background:currentColor; }
.brew38-roast-availability.is-available { color:#2d6b45; }
.brew38-roast-availability.is-unavailable { color:#777; }


/* v0.6.0 — live Shopify subscriptions */
.brew38-subscription-panel {
    min-height: 300px;
    padding: 32px;
    border-radius: 18px;
    background: #222;
    color: #fff;
}
.brew38-subscription-panel h3 {
    margin: 0 0 22px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
    color: inherit;
}
.brew38-subscription-options {
    display: grid;
    gap: 10px;
}
.brew38-subscription-option {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.brew38-subscription-option:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.35);
    transform: translateY(-1px);
}
.brew38-subscription-option:disabled {
    cursor: wait;
    opacity: .62;
}
.brew38-subscription-option span,
.brew38-subscription-option b {
    display: flex;
    flex-direction: column;
}
.brew38-subscription-option strong {
    font-size: 16px;
    color: inherit;
}
.brew38-subscription-option small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
    opacity: .68;
}
.brew38-subscription-option b {
    flex: 0 0 auto;
    align-items: flex-end;
    font-size: 18px;
}
.brew38-subscription-option b small {
    display: inline;
    margin: 1px 0 0;
}
.brew38-subscription-status {
    min-height: 20px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
}
.brew38-subscription-status.is-error { color: #ffb0a7; }
.brew38-subscription-note,
.brew38-subscription-empty {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.5;
    opacity: .66;
}
.brew38-floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 12px 9px 15px;
    border: 0;
    border-radius: 999px;
    background: #222;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    cursor: pointer;
}
.brew38-floating-cart-count {
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 11px;
    font-weight: 800;
}
.brew38-floating-cart-text {
    font-size: 12px;
    font-weight: 800;
}
.brew38-cart-icon { font-size: 15px; }

@media (max-width: 600px) {
    .brew38-subscription-panel { padding: 24px; }
    .brew38-floating-cart { right: 14px; bottom: 14px; }
}


/* v0.6.1 — single-choice subscription flow */
.brew38-subscription-option.is-selected {
    background: #fff;
    border-color: #fff;
    color: #222;
    transform: translateY(-1px);
}
.brew38-subscription-option.is-selected small {
    opacity: .65;
}
.brew38-subscribe-button {
    width: 100%;
    min-height: 48px;
    margin-top: 15px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.brew38-subscribe-button:hover:not(:disabled) {
    transform: translateY(-1px);
}
.brew38-subscribe-button:disabled {
    cursor: default;
    opacity: .42;
}


/* v0.6.2 — fixed shopping cart + cart drawer */
.brew38-floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
}
.brew38-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.34);
}
.brew38-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: min(420px, 92vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    color: #222;
    box-shadow: -12px 0 38px rgba(0,0,0,.18);
    transform: translateX(105%);
    transition: transform .22s ease;
}
.brew38-cart-drawer.is-open { transform: translateX(0); }
.brew38-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.brew38-cart-drawer-header h3 { margin: 5px 0 0; font-size: 30px; }
.brew38-cart-close {
    border: 0; background: transparent; color: #222;
    font-size: 32px; line-height: 1; cursor: pointer;
}
.brew38-cart-drawer-body { flex: 1; padding: 22px 0; }
.brew38-cart-empty { color: #777; font-size: 14px; }
.brew38-cart-item {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 16px; border: 1px solid #ddd; border-radius: 12px;
}
.brew38-cart-item > div { display: flex; flex-direction: column; gap: 4px; }
.brew38-cart-item-frequency { color: #777; font-size: 12px; }
.brew38-cart-drawer-footer { border-top: 1px solid #ddd; padding-top: 18px; }
.brew38-cart-total-row {
    display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 16px;
}
.brew38-cart-checkout {
    width: 100%; min-height: 50px; border: 0; border-radius: 9px;
    background: #222; color: #fff; font-weight: 900; cursor: pointer;
}
.brew38-cart-checkout:disabled { opacity: .4; cursor: default; }
.brew38-cart-remove {
    width: 100%; margin-top: 10px; border: 0; background: transparent;
    color: #777; font-size: 12px; text-decoration: underline; cursor: pointer;
}
body.brew38-cart-open { overflow: hidden; }

@media (max-width: 600px) {
    .brew38-cart-drawer { padding: 20px; }
    .brew38-floating-cart { right: 14px; bottom: 14px; }
}


/* v0.7.0 — live Upcoming Roasts */
.brew38-upcoming-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}
.brew38-upcoming-card{overflow:hidden;border:1px solid rgba(34,34,34,.15);border-radius:15px;background:#fff;color:#222}
.brew38-upcoming-image-wrap{position:relative;aspect-ratio:1/.82;overflow:hidden;background:#eee}
.brew38-upcoming-image{width:100%;height:100%;display:block;object-fit:cover}
.brew38-preorder-badge{position:absolute;top:14px;left:14px;padding:7px 10px;border-radius:999px;background:#222;color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em}
.brew38-upcoming-card-body{padding:18px}
.brew38-upcoming-card-body h3{margin:0 0 8px}
.brew38-upcoming-description{margin:0 0 16px;color:#666;font-size:13px;line-height:1.55}
.brew38-field-label{display:block;margin-bottom:6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.brew38-preorder-variant{width:100%;min-height:44px;padding:8px 10px;border:1px solid #ccc;border-radius:8px;background:#fff}
.brew38-preorder-actions{display:grid;grid-template-columns:105px 1fr;gap:10px;margin-top:12px}
.brew38-preorder-qty{display:grid;grid-template-columns:32px 1fr 32px;overflow:hidden;border:1px solid #ccc;border-radius:8px}
.brew38-preorder-qty button{border:0;background:#f3f3f3;cursor:pointer}
.brew38-preorder-quantity{width:100%;min-width:0;border:0!important;text-align:center}
.brew38-preorder-add{min-height:44px;padding:9px 12px;border:0;border-radius:8px;background:#222;color:#fff;font-weight:800;cursor:pointer}
.brew38-preorder-add:disabled{opacity:.45;cursor:default}
.brew38-preorder-status{min-height:18px;margin-top:9px;font-size:11px;font-weight:700}
.brew38-cart-line-dynamic+.brew38-cart-line-dynamic{margin-top:10px}
@media(max-width:900px){.brew38-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.brew38-upcoming-grid{grid-template-columns:1fr}.brew38-preorder-actions{grid-template-columns:100px 1fr}}


/* v0.7.1 — readable Upcoming Roasts + true modal cart preview */

/* Critical: the HTML hidden attribute must always win until JS explicitly opens cart. */
.brew38-cart-overlay[hidden] { display: none !important; }

/* Keep the cart launcher with the visitor while they scroll. */
.brew38-floating-cart {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 9998 !important;
}

/* Cart opens only when requested, over a darkened page. */
.brew38-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    background: rgba(0,0,0,.58) !important;
    backdrop-filter: blur(2px);
}
.brew38-cart-drawer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: min(720px, calc(100vh - 48px)) !important;
    padding: 26px !important;
    z-index: 10001 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.28) !important;
    transform: translate(-50%, -48%) scale(.98) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}
.brew38-cart-drawer.is-open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.brew38-cart-drawer-body {
    overflow-y: auto;
    min-height: 90px;
    max-height: 390px;
}
.brew38-cart-line-dynamic {
    flex-shrink: 0;
}

/* Upcoming section uses the full content width below the heading instead of squeezing
   three products into the narrow right side of the feature layout. */
.brew38-preorders {
    display: block !important;
}
.brew38-preorders .brew38-section-copy {
    width: 100% !important;
    max-width: 720px !important;
    margin-bottom: 28px !important;
}
.brew38-upcoming-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin-top: 0 !important;
}
.brew38-upcoming-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 100% !important;
    border-radius: 16px !important;
}
.brew38-upcoming-image-wrap {
    aspect-ratio: 16 / 10 !important;
    flex: 0 0 auto !important;
}
.brew38-upcoming-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 20px !important;
}
.brew38-upcoming-card-body h3 {
    font-size: 21px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}
.brew38-upcoming-description {
    font-size: 13px !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 18px !important;
}
.brew38-field-label {
    margin-top: auto !important;
}
.brew38-preorder-actions {
    grid-template-columns: 112px minmax(0, 1fr) !important;
}
.brew38-preorder-add {
    white-space: normal !important;
    line-height: 1.2 !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
}

@media (max-width: 950px) {
    .brew38-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
}
@media (max-width: 650px) {
    .brew38-upcoming-grid {
        grid-template-columns: 1fr !important;
    }
    .brew38-floating-cart {
        right: 14px !important;
        bottom: 14px !important;
    }
    .brew38-cart-drawer {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        padding: 20px !important;
    }
}


/* v0.7.2 — center the entire storefront inside Twenty Seventeen.
   The theme normally reserves a left column for the page title/meta. */
body .brew38-storefront {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    clear: both !important;
}

/* On the shortcode page, remove Twenty Seventeen's two-column content offset
   so the plugin receives the full centered content area. */
body.page .site-content .wrap:has(.brew38-storefront) {
    max-width: 1280px !important;
}
body.page .site-content .wrap:has(.brew38-storefront) #primary,
body.page .site-content .wrap:has(.brew38-storefront) .content-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.page .site-content .wrap:has(.brew38-storefront) .entry-content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Keep WordPress's page title above the storefront, but don't let its
   old left-column layout push the shop itself to the right. */
body.page .site-content .wrap:has(.brew38-storefront) .entry-header {
    float: none !important;
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    body .brew38-storefront,
    body.page .site-content .wrap:has(.brew38-storefront) .entry-header {
        width: calc(100vw - 28px) !important;
    }
}

/* v0.7.4 — breathing room between Current Roasts and Upcoming Roasts */
#current-roasts,
.brew38-current-roasts {
    margin-bottom: 32px !important;
}

/* v0.7.5 — viewport cart + estimated servings */
.brew38-cart-overlay[hidden]{display:none!important}
.brew38-cart-overlay{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:10000!important;background:rgba(0,0,0,.58)!important}
.brew38-cart-drawer{position:fixed!important;top:24px!important;left:50%!important;right:auto!important;bottom:auto!important;width:min(560px,calc(100vw - 32px))!important;max-height:calc(100vh - 48px)!important;margin:0!important;overflow:hidden!important;transform:translateX(-50%) scale(.98)!important}
.brew38-cart-drawer.is-open{transform:translateX(-50%) scale(1)!important}
.brew38-cart-drawer-body{overflow-y:auto!important;overscroll-behavior:contain}
.brew38-floating-cart{position:fixed!important;right:24px!important;bottom:24px!important}
.brew38-estimated-servings{display:block!important;margin-top:3px;font-size:10px!important;font-weight:700;opacity:.72}
.brew38-preorder-servings{margin-top:9px;font-size:11px;font-weight:700;color:#666}
@media(max-width:650px){.brew38-cart-drawer{top:12px!important;width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important}.brew38-floating-cart{right:14px!important;bottom:14px!important}}


/* v0.7.6 — spacing between Current Roasts and Upcoming Roasts */
.brew38-current-roasts + .brew38-preorders,
#current-roasts + #preorders,
.brew38-products-section + .brew38-preorders {
    margin-top: 36px !important;
}


/* v0.7.7 — expandable coffee cards / full descriptions */
.brew38-product-card,
.brew38-preorder-card {
    cursor: pointer;
    transition: box-shadow .22s ease, transform .22s ease;
}

.brew38-product-card:hover,
.brew38-preorder-card:hover {
    transform: translateY(-2px);
}

.brew38-product-card .brew38-description,
.brew38-preorder-card .brew38-description,
.brew38-product-card .brew38-product-description,
.brew38-preorder-card .brew38-product-description {
    transition: max-height .28s ease;
}

.brew38-product-card.is-expanded .brew38-description,
.brew38-preorder-card.is-expanded .brew38-description,
.brew38-product-card.is-expanded .brew38-product-description,
.brew38-preorder-card.is-expanded .brew38-product-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
    white-space: normal !important;
}

.brew38-card-expand-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    opacity: .62;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.brew38-product-card.is-expanded .brew38-card-expand-hint::after,
.brew38-preorder-card.is-expanded .brew38-card-expand-hint::after {
    content: "Show less";
}

.brew38-product-card:not(.is-expanded) .brew38-card-expand-hint::after,
.brew38-preorder-card:not(.is-expanded) .brew38-card-expand-hint::after {
    content: "Read full description";
}


/* v0.7.8 — reliable description dropdown arrow */
.brew38-card-expand-hint {
    display: none !important;
}

.brew38-expandable-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    max-height: none !important;
    white-space: normal !important;
}

.brew38-product-card.is-expanded .brew38-expandable-description,
.brew38-preorder-card.is-expanded .brew38-expandable-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

.brew38-description-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    margin: 5px auto 1px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.brew38-description-toggle:hover,
.brew38-description-toggle:focus {
    background: rgba(0,0,0,.055) !important;
    outline: none;
}

.brew38-description-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px,-2px);
    transition: transform .2s ease;
    opacity: .68;
}

.brew38-product-card.is-expanded .brew38-description-chevron,
.brew38-preorder-card.is-expanded .brew38-description-chevron {
    transform: rotate(225deg) translate(-2px,-2px);
}

/* v0.7.9 — force visible centered dropdown control */
.brew38-card .brew38-description-toggle,
.brew38-preorder-card .brew38-description-toggle {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:24px!important;
    min-width:34px!important;
    min-height:24px!important;
    margin:5px auto 7px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    cursor:pointer!important;
    color:#555!important;
}
.brew38-card .brew38-description-chevron,
.brew38-preorder-card .brew38-description-chevron {
    display:block!important;
    width:9px!important;
    height:9px!important;
    border-right:2px solid currentColor!important;
    border-bottom:2px solid currentColor!important;
    transform:rotate(45deg)!important;
    transition:transform .2s ease!important;
}
.brew38-card.is-expanded .brew38-description-chevron,
.brew38-preorder-card.is-expanded .brew38-description-chevron {
    transform:rotate(225deg)!important;
}
.brew38-card.is-expanded .brew38-expandable-description,
.brew38-preorder-card.is-expanded .brew38-expandable-description {
    display:block!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
    overflow:visible!important;
    max-height:none!important;
}

/* v0.8.0 — server-rendered Current Roasts expand arrow */
.brew38-current-description-toggle {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    height:26px!important;
    min-width:40px!important;
    min-height:26px!important;
    margin:5px auto 8px!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    background:rgba(0,0,0,.045)!important;
    box-shadow:none!important;
    cursor:pointer!important;
    color:#555!important;
}
.brew38-current-description-toggle:hover {
    background:rgba(0,0,0,.09)!important;
}
.brew38-current-chevron {
    display:block!important;
    width:9px!important;
    height:9px!important;
    border-right:2px solid currentColor!important;
    border-bottom:2px solid currentColor!important;
    transform:rotate(45deg) translate(-2px,-2px)!important;
    transition:transform .2s ease!important;
}
.brew38-card.brew38-description-open .brew38-current-chevron {
    transform:rotate(225deg) translate(-2px,-2px)!important;
}
/* Override every earlier clamp rule when the Current Roast card is open. */
.brew38-card.brew38-description-open p,
.brew38-card.brew38-description-open .brew38-desc,
.brew38-card.brew38-description-open .brew38-description,
.brew38-card.brew38-description-open .brew38-product-description {
    display:block!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
    overflow:visible!important;
    max-height:none!important;
    white-space:normal!important;
}

/* v0.8.1 — actual Current Roasts card selectors */
.brew38-product-card .brew38-description{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    line-clamp:3!important;
    overflow:hidden!important;
    white-space:normal!important;
}
.brew38-product-card.brew38-description-open .brew38-description{
    display:block!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
    overflow:visible!important;
}
.brew38-product-card .brew38-current-description-toggle{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    height:26px!important;
    margin:5px auto 8px!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    background:rgba(0,0,0,.06)!important;
    color:#555!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
.brew38-product-card .brew38-current-chevron{
    display:block!important;
    width:9px!important;
    height:9px!important;
    border-right:2px solid currentColor!important;
    border-bottom:2px solid currentColor!important;
    transform:rotate(45deg) translate(-2px,-2px)!important;
}
.brew38-product-card.brew38-description-open .brew38-current-chevron{
    transform:rotate(225deg) translate(-2px,-2px)!important;
}


/* v0.8.2 — clear separation between Current Roasts and Upcoming Roasts */
#coffee.brew38-coffee-section {
    margin-bottom: 44px !important;
}

#preorders.brew38-preorders {
    margin-top: 0 !important;
}


/* v0.8.3 — Upcoming Roasts description dropdown, matching Current Roasts */
.brew38-upcoming-card .brew38-upcoming-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    white-space: normal !important;
}

.brew38-upcoming-card.brew38-upcoming-description-open .brew38-upcoming-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

.brew38-upcoming-description-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 26px !important;
    min-width: 40px !important;
    min-height: 26px !important;
    margin: 5px auto 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.06) !important;
    color: #555 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.brew38-upcoming-description-toggle:hover {
    background: rgba(0,0,0,.09) !important;
}

.brew38-upcoming-chevron {
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) translate(-2px,-2px) !important;
    transition: transform .2s ease !important;
}

.brew38-upcoming-card.brew38-upcoming-description-open .brew38-upcoming-chevron {
    transform: rotate(225deg) translate(-2px,-2px) !important;
}


/* v0.8.4 — definitive cart scrolling fix */
.brew38-cart-drawer {
    position: fixed !important;
    top: 16px !important;
    bottom: 16px !important;
    left: 50% !important;
    right: auto !important;
    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 24px !important;

    display: flex !important;
    flex-direction: column !important;

    transform: translateX(-50%) scale(.98) !important;
    overflow: hidden !important;
}

.brew38-cart-drawer.is-open {
    transform: translateX(-50%) scale(1) !important;
}

.brew38-cart-drawer-header,
.brew38-cart-drawer-footer {
    flex: 0 0 auto !important;
}

.brew38-cart-drawer-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding-right: 6px !important;
}

/* Keep the page behind the modal stationary; scrolling happens inside the cart. */
body.brew38-cart-open {
    overflow: hidden !important;
}

@media (max-width: 650px) {
    .brew38-cart-drawer {
        top: 8px !important;
        bottom: 8px !important;
        width: calc(100vw - 16px) !important;
        padding: 18px !important;
    }
}


/* v0.8.5 — natural-height, scrollable cart modal */
.brew38-cart-drawer {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;

    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;

    margin: 0 !important;
    padding: 24px !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    transform: translate(-50%, -50%) scale(.98) !important;
}

.brew38-cart-drawer.is-open {
    transform: translate(-50%, -50%) scale(1) !important;
}

.brew38-cart-drawer-header,
.brew38-cart-drawer-footer {
    flex: 0 0 auto !important;
}

.brew38-cart-drawer-body {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 250px)) !important;
    max-height: min(420px, calc(100dvh - 250px)) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;

    padding: 18px 6px 18px 0 !important;
}

/* Do not force the empty cart area to fill the whole modal. */
.brew38-cart-empty {
    min-height: 0 !important;
}

/* Keep the page behind the cart still. */
body.brew38-cart-open {
    overflow: hidden !important;
}

@media (max-width: 650px) {
    .brew38-cart-drawer {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        padding: 18px !important;
    }

    .brew38-cart-drawer-body {
        max-height: calc(100vh - 220px) !important;
        max-height: calc(100dvh - 220px) !important;
    }
}


/* v0.8.6 — cart opens at the user's current page position */
.brew38-cart-drawer {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 96px) !important;
    max-height: calc(100dvh - 96px) !important;

    margin: 0 !important;
    padding: 24px !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    transform: translateX(-50%) scale(.98) !important;
}

.brew38-cart-drawer.is-open {
    transform: translateX(-50%) scale(1) !important;
}

/* Only the contents of a long cart scroll. */
.brew38-cart-drawer-body {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 260px)) !important;
    max-height: min(420px, calc(100dvh - 260px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Do not freeze the page when the cart is open. */
body.brew38-cart-open {
    overflow: auto !important;
}

/* Floating icon follows the customer everywhere on the page. */
.brew38-floating-cart {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 9998 !important;

    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
}

.brew38-floating-cart-text {
    display: none !important;
}

.brew38-cart-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.brew38-cart-icon svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
}

.brew38-floating-cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* Overlay still darkens the visible browser window, but the page isn't repositioned. */
.brew38-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
}

@media (max-width: 650px) {
    .brew38-cart-drawer {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 64px) !important;
        max-height: calc(100dvh - 64px) !important;
        padding: 18px !important;
    }

    .brew38-floating-cart {
        right: 14px !important;
        bottom: 14px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
}


/* v0.8.7 — cart UI is moved directly under <body>; use true viewport positioning */
body > .brew38-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483000 !important;
}

body > .brew38-cart-drawer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;

    margin: 0 !important;
    padding: 24px !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    z-index: 2147483001 !important;
    transform: translate(-50%, -50%) scale(.98) !important;
}

body > .brew38-cart-drawer.is-open {
    transform: translate(-50%, -50%) scale(1) !important;
}

body > .brew38-cart-drawer .brew38-cart-drawer-body {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 250px)) !important;
    max-height: min(420px, calc(100dvh - 250px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* The cart launcher is also moved to <body>, so it stays attached to the browser window. */
body > .brew38-floating-cart {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    left: auto !important;
    top: auto !important;

    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;

    z-index: 2147482999 !important;
    transform: none !important;
}

body > .brew38-floating-cart .brew38-cart-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 650px) {
    body > .brew38-cart-drawer {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        padding: 18px !important;
    }

    body > .brew38-floating-cart {
        right: 14px !important;
        bottom: 14px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
}


/* v0.8.8 — Roaster's Choice horizontal coffee wheel */
.brew38-roaster-choice-section {
    overflow: visible !important;
}

.brew38-roaster-wheel-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.brew38-roaster-wheel {
    flex: 1 1 auto;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 4px 12px;
    overscroll-behavior-x: contain;
}

.brew38-roaster-wheel-card {
    flex: 0 0 min(310px, 82vw);
    scroll-snap-align: start;
}

.brew38-roaster-wheel-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    background: #fff;
    color: #333;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brew38-roaster-wheel-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* Specialty Coffee is contact-only */
.brew38-specialty-contact {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #1f1f1f;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
}

.brew38-specialty-contact:hover {
    opacity: .9;
}

/* Cart note to seller */
.brew38-cart-note-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #333;
}

.brew38-cart-note-label span {
    font-weight: 500;
    color: #777;
}

.brew38-cart-note {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    margin: 0 0 6px;
    padding: 10px 11px;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.brew38-cart-note:focus {
    outline: 2px solid rgba(0,0,0,.12);
    outline-offset: 1px;
}

.brew38-cart-note-status {
    min-height: 16px;
    margin-bottom: 8px;
    color: #666;
    font-size: 11px;
}

/* Slightly more room in cart now that the note field is present. */
body > .brew38-cart-drawer .brew38-cart-drawer-body {
    max-height: min(360px, calc(100vh - 360px)) !important;
    max-height: min(360px, calc(100dvh - 360px)) !important;
}

@media (max-width: 700px) {
    .brew38-roaster-wheel-shell {
        gap: 6px;
    }

    .brew38-roaster-wheel-arrow {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .brew38-roaster-wheel-card {
        flex-basis: min(280px, 78vw);
    }
}


/* v0.8.9 — pagination replaces horizontal item scrolling */
.brew38-pagination-view {
    margin-top: 24px;
}

.brew38-roaster-wheel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
}

.brew38-roaster-wheel-card {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
}

.brew38-roaster-wheel-card[hidden],
.brew38-upcoming-card[hidden] {
    display: none !important;
}

.brew38-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}

.brew38-pagination-controls[hidden] {
    display: none !important;
}

.brew38-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.brew38-page-prev,
.brew38-page-next,
.brew38-page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.brew38-page-prev,
.brew38-page-next {
    font-size: 22px;
}

.brew38-page-number:hover,
.brew38-page-prev:hover:not(:disabled),
.brew38-page-next:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #f5f5f5;
}

.brew38-page-number.is-active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}

.brew38-page-prev:disabled,
.brew38-page-next:disabled {
    opacity: .35;
    cursor: default;
}

/* Keep Specialty Coffee cards in a clean 3-column paginated layout. */
.brew38-preorders .brew38-upcoming-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
    .brew38-roaster-wheel,
    .brew38-preorders .brew38-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .brew38-roaster-wheel,
    .brew38-preorders .brew38-upcoming-grid {
        grid-template-columns: 1fr !important;
    }

    .brew38-pagination-controls {
        gap: 6px;
    }

    .brew38-page-prev,
    .brew38-page-next,
    .brew38-page-number {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
    }
}


/* v0.9.4 — automatically center the visible Current Rotation coffee cards */
.brew38-roaster-wheel {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 18px !important;
}

.brew38-roaster-wheel-card {
    flex: 0 1 360px !important;
    width: min(360px, 100%) !important;
    max-width: 360px !important;
}

@media (max-width: 900px) {
    .brew38-roaster-wheel-card {
        flex-basis: min(340px, calc(50% - 9px)) !important;
        width: min(340px, calc(50% - 9px)) !important;
    }
}

@media (max-width: 650px) {
    .brew38-roaster-wheel-card {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 420px !important;
    }
}


/* v0.10.1 — continuous 3-card carousel; JS drives entry/exit animation */
.brew38-coffee-carousel {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 24px !important;
}

.brew38-carousel-track {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 0 14px !important;
    will-change: transform;
}

.brew38-carousel-item {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    width: calc((100% - 36px) / 3) !important;
    max-width: none !important;
    min-width: 0 !important;
    opacity: 1;
    transform: translateX(0) scale(1);
    will-change: opacity, transform;
}

/* Keep coffee titles on one line for consistent card height. */
.brew38-carousel-item h3 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    min-height: 1.25em !important;
    max-height: 1.25em !important;
}

.brew38-carousel-arrow {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0,0,0,.14) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #333 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.brew38-carousel-arrow:hover {
    transform: translateY(-1px) !important;
    background: #f7f7f7 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
}

.brew38-carousel-arrow[hidden] {
    visibility: hidden !important;
}

.brew38-pagination-controls {
    display: none !important;
}

.brew38-roaster-wheel,
.brew38-preorders .brew38-upcoming-grid {
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
}

@media (max-width: 980px) {
    .brew38-carousel-item {
        flex-basis: calc((100% - 18px) / 2) !important;
        width: calc((100% - 18px) / 2) !important;
    }
}

@media (max-width: 650px) {
    .brew38-coffee-carousel {
        grid-template-columns: 38px minmax(0, 1fr) 38px !important;
        gap: 8px !important;
    }

    .brew38-carousel-arrow {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 24px !important;
    }

    .brew38-carousel-item {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}


/* v0.10.6 — incoming coffee is temporarily placed in a visible carousel slot */
.brew38-carousel-track {
    position: relative !important;
}


/* v0.10.7 — restore centered coffee cards when no scrolling is required */
.brew38-carousel-track.brew38-carousel-centered {
    justify-content: center !important;
}
