/* BUYAMTO Pulse pop-up campaigns. One look for the site and the admin preview. */
.bpop-root { --bpp-bg: var(--by-surface, #fff); --bpp-ink: var(--by-ink, #1A1815); --bpp-soft: var(--by-ink-soft, #4B463F); --bpp-tint: var(--by-warm, #F1EDE6); --bpp-line: var(--by-line, #E7E2D9); --bpp-accent: var(--by-teal, #0E7C86); --bpp-on-accent: #fff; --bpp-r: 26px;
	position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--bpp-ink); }
.bpop-root *, .bpop-root *::before, .bpop-root *::after { box-sizing: border-box; }
.bpop-root[data-theme="teal"] { --bpp-bg: #0E7C86; --bpp-ink: #fff; --bpp-soft: #D5EEF0; --bpp-tint: #0A6068; --bpp-line: #2C949D; --bpp-accent: #F2A672; --bpp-on-accent: #1A1815; }
.bpop-root[data-theme="night"] { --bpp-bg: #141311; --bpp-ink: #F7F3EC; --bpp-soft: #BDB5A8; --bpp-tint: #24211D; --bpp-line: #34302A; --bpp-accent: #DE6420; --bpp-on-accent: #fff; }
.bpop-root[data-theme="cream"] { --bpp-bg: #FBF6EC; --bpp-ink: #1A1815; --bpp-soft: #5A544B; --bpp-tint: #F1E7D3; --bpp-line: #E6DAC2; --bpp-accent: #0E7C86; --bpp-on-accent: #fff; }
.bpop-root[data-theme="orange"] { --bpp-bg: #C94F0A; --bpp-ink: #fff; --bpp-soft: #FBE3D3; --bpp-tint: #A94008; --bpp-line: #DA7036; --bpp-accent: #1A1815; --bpp-on-accent: #fff; }

.bpop-shade { position: absolute; inset: 0; background: rgba(20, 19, 17, .55); opacity: 0; transition: opacity .25s ease; }
.bpop-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bpp-bg); color: var(--bpp-ink); border-radius: var(--bpp-r); box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 40px 80px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .28s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.bpop-root.is-in .bpop-shade { opacity: 1; }
.bpop-root.is-in .bpop-card { opacity: 1; transform: none; }
.bpop-card:focus { outline: none; }
.bpop-card.has-side { max-width: 720px; display: grid; grid-template-columns: 1fr 1.15fr; }
.bpop-img { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--bpp-tint); }
.bpop-card.has-side .bpop-img { height: 100%; min-height: 320px; }
.bpop-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.bpop-eyebrow { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--bpp-tint); color: var(--bpp-ink); }
.bpop-title { margin: 2px 0 0; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.bpop-text { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--bpp-soft); white-space: pre-line; }
.bpop-count { display: flex; gap: 8px; margin: 4px 0 2px; }
.bpop-count span { flex: 1; text-align: center; padding: 9px 4px 7px; border-radius: 14px; background: var(--bpp-tint); font-variant-numeric: tabular-nums; }
.bpop-count b { display: block; font-size: 22px; line-height: 1; font-weight: 800; }
.bpop-count small { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bpp-soft); }
.bpop-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.bpop-form input[type="email"], .bpop-form input[type="text"] { width: 100%; height: 50px; margin: 0; padding: 0 16px; border: 1.5px solid var(--bpp-line); border-radius: 999px; background: var(--by-surface, #fff); color: var(--by-ink, #1A1815); -webkit-text-fill-color: var(--by-ink, #1A1815); font: 500 16px/1 inherit; box-shadow: none; }
.bpop-form input:focus { outline: none; border-color: var(--bpp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpp-accent) 30%, transparent); }
.bpop-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--bpp-soft); cursor: pointer; margin: 2px 4px; }
.bpop-consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--bpp-accent); flex: none; }
.bpop-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bpop-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 6px 0 0; padding: 0 22px; border: 0; border-radius: 999px; background: var(--bpp-accent); color: var(--bpp-on-accent) !important; font: 700 16px/1 inherit; letter-spacing: 0; text-transform: none; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 22px -12px var(--bpp-accent); transition: transform .15s ease, filter .15s ease; }
.bpop-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bpop-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.bpop-no { align-self: center; margin: 2px 0 0; padding: 8px 12px; border: 0; background: none; color: var(--bpp-soft); font: 600 14px/1 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.bpop-fine { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--bpp-soft); opacity: .85; text-align: center; }
.bpop-msg { margin: 0; font-size: 13.5px; color: #B3261E; }
.bpop-root[data-theme="night"] .bpop-msg, .bpop-root[data-theme="teal"] .bpop-msg, .bpop-root[data-theme="orange"] .bpop-msg { color: #FFD7CF; }
.bpop-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bpp-bg) 82%, transparent); color: var(--bpp-ink); font-size: 22px; line-height: 36px; text-align: center; cursor: pointer; min-height: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.bpop-x:focus-visible, .bpop-btn:focus-visible, .bpop-no:focus-visible, .bpop-copy:focus-visible { outline: 3px solid #F2A672; outline-offset: 2px; }
.bpop-code { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 8px 8px 18px; border: 2px dashed var(--bpp-accent); border-radius: 18px; background: var(--bpp-tint); }
.bpop-code b { flex: 1; font-size: 20px; letter-spacing: .08em; font-weight: 800; overflow-wrap: anywhere; }
.bpop-copy { flex: none; margin: 0; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bpp-accent); color: var(--bpp-on-accent); font: 700 14px/1 inherit; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.bpop-done { font-size: 14px; color: var(--bpp-soft); margin: 0; }

/* Bottom sheet and corner: no dark backdrop, the page stays usable. */
.bpop-root[data-layout="sheet"], .bpop-root[data-layout="corner"] { inset: auto 0 0 0; padding: 0 16px 16px; pointer-events: none; }
.bpop-root[data-layout="sheet"] .bpop-shade, .bpop-root[data-layout="corner"] .bpop-shade { display: none; }
.bpop-root[data-layout="sheet"] .bpop-card, .bpop-root[data-layout="corner"] .bpop-card { pointer-events: auto; }
.bpop-root[data-layout="sheet"] .bpop-card { max-width: 560px; }
.bpop-root[data-layout="corner"] { justify-content: flex-end; }
.bpop-root[data-layout="corner"] .bpop-card { max-width: 360px; }
.bpop-root[data-layout="corner"] .bpop-card.has-side { display: block; }
.bpop-root[data-layout="corner"] .bpop-card.has-side .bpop-img { min-height: 0; height: 150px; }
.bpop-root[data-layout="corner"] .bpop-body { padding: 20px 20px 16px; }

/* Phones (the script adds is-narrow): every layout becomes a sheet from the bottom. */
.bpop-root.is-narrow { align-items: flex-end; padding: 0; }
.bpop-root.is-narrow .bpop-card { max-width: none; max-height: 88vh; border-radius: var(--bpp-r) var(--bpp-r) 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
.bpop-root.is-narrow.is-in .bpop-card { transform: none; }
.bpop-root.is-narrow .bpop-card.has-side { display: block; }
.bpop-root.is-narrow .bpop-card.has-side .bpop-img, .bpop-root.is-narrow .bpop-img { min-height: 0; height: 160px; }
.bpop-root.is-narrow .bpop-body { padding: 22px 20px 18px; }
/* While a pop-up is open, the small sale notifications wait. */
html.bpop-open .bpulse { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .bpop-card, .bpop-shade { transition: opacity .01s !important; transform: none !important; } }

/* Admin preview: the same pop-up drawn inside a box instead of over the page. */
.bpop-stage { position: relative; min-height: 520px; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(45deg, #EEE9E0 0 12px, #E8E2D7 12px 24px); }
.bpop-stage .bpop-root { position: absolute; }
.bpop-stage.is-phone { width: 390px; max-width: 100%; min-height: 700px; margin: 0 auto; border: 8px solid #1A1815; border-radius: 36px; }

/* Tall card (2026-11-09): narrow and tall like a sign-up form, centred on phones too (not a bottom sheet). */
.bpop-root[data-layout="tall"] .bpop-card { max-width: 360px; min-height: min(620px, calc(100vh - 48px)); display: flex; flex-direction: column; }
.bpop-root[data-layout="tall"] .bpop-img { height: clamp(190px, 36vh, 290px); flex: none; }
.bpop-root[data-layout="tall"] .bpop-body { flex: 1; justify-content: center; align-items: stretch; text-align: center; padding: 24px 24px 20px; }
.bpop-root[data-layout="tall"] .bpop-eyebrow { align-self: center; }
.bpop-root[data-layout="tall"].is-narrow { align-items: center; padding: 20px; }
.bpop-root[data-layout="tall"].is-narrow .bpop-card { max-width: 340px; width: 100%; max-height: calc(100vh - 40px); border-radius: var(--bpp-r); padding-bottom: 0; transform: translateY(18px) scale(.98); }
.bpop-root[data-layout="tall"].is-narrow.is-in .bpop-card { transform: none; }
.bpop-root[data-layout="tall"].is-narrow .bpop-img { height: clamp(170px, 30vh, 250px); }
.bpop-root[data-layout="tall"].is-narrow .bpop-body { padding: 22px 20px 16px; }
