/* Bodyfirst 18+ age check: pop-up and product page notice */
.bfage-overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(10, 37, 64, 0.62); backdrop-filter: blur(3px); animation: bfage-fade 0.18s ease; }
.bfage-modal { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 32px 28px 26px; border-radius: 24px; background: #fff; color: #555; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; box-shadow: 0 24px 60px rgba(10, 37, 64, 0.3); animation: bfage-pop 0.2s ease; }
.bfage-modal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 24px 24px 0 0; background: linear-gradient(135deg, #0F75BC 0%, #05ABEF 100%); }
.bfage-badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 16px; border-radius: 50%; background: #111; color: #A6FF00; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; box-shadow: 0 0 0 6px #EEF6FC; }
.bfage-modal.is-no .bfage-badge { background: #F4F6F8; color: #111; font-size: 0; }
.bfage-modal.is-no .bfage-badge::after { content: ""; width: 34px; height: 34px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6l12.8 12.8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6l12.8 12.8'/%3E%3C/svg%3E") center/contain no-repeat; }
.bfage-modal h2 { margin: 0 0 10px; color: #111; font-size: 24px; font-weight: 800; line-height: 1.2; }
.bfage-modal p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
.bfage-modal p strong { color: #111; }
.bfage-actions { display: grid; gap: 10px; }
.bfage-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 12px 20px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease; }
.bfage-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bfage-btn:focus-visible, .bfage-link:focus-visible { outline: 3px solid rgba(15, 117, 188, 0.35); outline-offset: 2px; }
.bfage-yes { background: #0F75BC; color: #fff; }
.bfage-no { background: #fff; color: #111; border-color: #E8E8E9; }
.bfage-link { margin-top: 6px; padding: 6px; border: 0; background: none; color: #0F75BC; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.bfage-small { margin: 16px 0 0 !important; font-size: 12px !important; color: #777; }
.bfage-lock { overflow: hidden; }

/* Product page: shown under the buy button until the shopper confirms */
.bfage-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: #F4F6F8; border-left: 4px solid #111; color: #111; font-size: 14px; font-weight: 500; line-height: 1.5; }
.bfage-notice strong { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 999px; background: #111; color: #A6FF00; font-size: 12px; font-weight: 800; }
.bfage-notice button { margin-left: auto; padding: 8px 14px; border: 0; border-radius: 999px; background: #0F75BC; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bfage-blocked { opacity: 0.45 !important; cursor: not-allowed !important; }

@keyframes bfage-fade { from { opacity: 0; } }
@keyframes bfage-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .bfage-overlay, .bfage-modal { animation: none; } }
