/* Bean Merchant conversion blocks (2026-10-16). Uses theme palette: #2c1810 / #d4a574 / #f8f6f3 */

/* Offer banner */
.bm-offer-bar { position: relative; background: #2c1810; color: #f8f6f3; text-align: center; font-size: 14px; line-height: 1.4; }
.bm-offer-bar__link { display: block; padding: 9px 44px 9px 16px; color: inherit; text-decoration: none; }
.bm-offer-bar__link strong { color: #d4a574; margin-right: 6px; }
.bm-offer-bar__link:hover span:last-child { text-decoration: underline; }
.bm-offer-bar__close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: none; border: 0; color: #f8f6f3; font-size: 22px; line-height: 1; cursor: pointer; padding: 6px 10px; }

/* Shared */
.bm-btn-quiz, .bm-btn-quiz:visited { display: inline-block; background: #d4a574; color: #2c1810 !important; padding: 1.1rem 2.25rem; border-radius: 5px; font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: all .3s ease; }
.bm-btn-quiz:hover, .bm-btn-quiz:focus { background: #c19660; color: #2c1810 !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,165,116,.4); text-decoration: none; }

/* Hero offer pill (sits above the hero buttons). High specificity + !important: the hero's own paragraph rules were winning. */
.hero-content .bm-hero-offer, .bm-hero-offer { display: inline-block; margin: 0 0 1.75rem; padding: .55rem 1.2rem; border: 1px solid #d4a574 !important; border-radius: 999px; color: #d4a574 !important; font-size: 1rem; background: rgba(212,165,116,.14) !important; opacity: 1 !important; }
.hero-content .bm-hero-offer strong, .bm-hero-offer strong { color: #d4a574 !important; font-weight: 700; }

/* Homepage section rhythm (white / soft alternating) */
.featured-coffees { background: #fff; }
.testimonials-premium { background: #f8f6f3; }
.meet-jono { background: #fff; }

/* Sample results */
.bm-sample { background: #fff; padding: 80px 0; }
.bm-sample h2 { text-align: center; margin: 0 0 8px; color: #2c1810; }
.bm-sample__sub { text-align: center; color: #666; margin: 0 auto 32px; max-width: 560px; }
.bm-sample__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.bm-sample-card { position: relative; background: #f8f6f3; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bm-sample-card__tag { position: absolute; top: 12px; right: 12px; background: #f1e6d8; color: #8b4513; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.bm-sample-card__pct { color: #8b4513; font-weight: 700; margin-bottom: 4px; }
.bm-sample-card h3 { margin: 0 0 4px; color: #2c1810; font-size: 20px; }
.bm-sample-card__meta { color: #666; font-size: 14px; margin: 0 0 12px; }
.bm-sample-card__notes { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.bm-sample-card__notes li { background: #fff; border: 1px solid #e8dccb; border-radius: 999px; padding: 3px 10px; font-size: 13px; color: #2c1810; }
.bm-sample-card__why { color: #555; font-size: 14px; margin: 0; }
.bm-sample__cta { text-align: center; margin: 32px 0 0; }

/* FAQ */
.bm-faq { background: #f8f6f3; padding: 80px 0; }
.bm-faq h2 { text-align: center; margin: 0 0 24px; color: #2c1810; }
.bm-faq__list { max-width: 760px; margin: 0 auto; }
.bm-faq__item { border-bottom: 1px solid #e8dccb; padding: 4px 0; }
.bm-faq__item summary { cursor: pointer; font-weight: 600; color: #2c1810; padding: 14px 0; }
.bm-faq__item p { margin: 0 0 14px; color: #555; }
.bm-faq__more { text-align: center; margin-top: 20px; }

/* Gifts + brew guide */
.bm-extras { background: #fff; padding: 80px 0; }
.bm-extras__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.bm-extras__card { background: #f8f6f3; border-radius: 14px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bm-extras__card h2 { margin: 0 0 8px; font-size: 22px; color: #2c1810; }
.bm-extras__card p { color: #555; margin: 0 0 16px; }

/* Brew guide form */
.bm-guide-form__row { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-guide-form select, .bm-guide-form input[type="email"] { flex: 1 1 180px; min-width: 0; padding: 12px 14px; border: 1px solid #d9cdbb; border-radius: 8px; font-size: 16px; background: #fff; }
.bm-guide-form__btn { flex: 1 1 100%; background: #2c1810; color: #fff; border: 0; border-radius: 8px; padding: 13px 18px; font-weight: 600; font-size: 16px; cursor: pointer; }
.bm-guide-form__btn:disabled { opacity: .6; cursor: default; }
.bm-guide-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bm-guide-form__note { font-size: 12px; color: #777; margin: 8px 0 0 !important; }
.bm-guide-form__msg { margin: 12px 0 0 !important; padding: 12px 14px; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.4; border-left: 5px solid transparent; }
.bm-guide-form__msg[hidden] { display: none; }
.bm-guide-form__msg.is-ok { background: #e8f5e9; color: #1b5e20; border-left-color: #2e7d32; }
.bm-guide-form__msg.is-error { background: #fdecea; color: #8c1d18; border-left-color: #d32f2f; }
.bm-guide-form__msg.is-error::before { content: "\26A0\FE0F  "; }
.bm-guide-form__msg.is-ok::before { content: "\2713  "; }
.bm-guide-form .is-invalid { border-color: #d32f2f !important; box-shadow: 0 0 0 3px rgba(211,47,47,.18); }

/* Shop card extras */
.bm-card-flavours { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.bm-card-flavours span { background: #f8f6f3; border: 1px solid #e8dccb; border-radius: 999px; padding: 2px 9px; font-size: 12px; color: #2c1810; }
.bm-card-sub-note { margin: 6px 0 0; font-size: 12px; color: #8b4513; font-weight: 600; }

/* Roaster tagline on homepage cards */
.roaster-tagline { display: block; font-size: 12px; color: #8b4513; margin-top: 4px; }

/* Single product: "(per cup)" was 0.5em and hard to read */
body.single-product .current-price .price-per-cup,
body.single-product .summary .price-per-cup,
body.single-product .woocommerce-variation-price .price-per-cup {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #5c4a3d !important;
    opacity: 1 !important;
    margin-top: .35rem !important;
}

/* Thank-you referral prompt */
.bm-thanks-referral { background: #fff; border-radius: 14px; padding: 28px 22px; margin: 32px auto; max-width: 560px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.bm-thanks-referral h3 { margin: 0 0 6px; color: #2c1810; }
.bm-thanks-referral p { margin: 0 0 18px; color: #555; }
.bm-thanks-referral .bm-thanks-referral__btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; background: #d4a574; color: #2c1810 !important; border: 0; transition: all .3s ease; }
.bm-thanks-referral .bm-thanks-referral__btn:hover { background: #c19660; color: #2c1810 !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,165,116,.4); }

@media (max-width: 768px) {
    .bm-sample__grid, .bm-extras__grid { grid-template-columns: 1fr; }
    .bm-sample, .bm-faq { padding: 44px 0; }
    .bm-offer-bar { font-size: 13px; }
}

/* Checkout processing overlay: fixed to the screen so it is always seen */
.bm-processing-overlay { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(44,24,16,.72); padding: 20px; }
.bm-processing-box { background: #fff; border-radius: 16px; padding: 36px 40px; text-align: center; max-width: 380px; width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.bm-processing-spinner { width: 56px; height: 56px; margin: 0 auto 20px; border: 5px solid #f1e6d8; border-top-color: #d4a574; border-radius: 50%; animation: bmProcessingSpin .9s linear infinite; }
.bm-processing-title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: #2c1810; }
.bm-processing-note { margin: 0; color: #666; font-size: .95rem; }
@keyframes bmProcessingSpin { to { transform: rotate(360deg); } }
/* hide WooCommerce's own small spinner while ours is showing */
form.checkout.processing .blockUI.blockOverlay::before, form.woocommerce-checkout.processing .blockUI.blockOverlay::before { display: none !important; }
@media (prefers-reduced-motion: reduce) { .bm-processing-spinner { animation-duration: 2.5s; } }
