/* Black Friday popup and top bar (markup: inc/black-friday-popup.php, behaviour: [data-bf-popup] / [data-bf-bar]
   in custom.js). Self-contained: it also loads on the old Sierra/Elementor pages, where neither Tailwind nor
   custom.css exists and the parent theme styles every a, button, h2 and p. */
.bfp, .bfp *, .bfp-bar, .bfp-bar * { box-sizing: border-box; }

.bfp { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bfp[hidden] { display: none; }
.bfp .bfp-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.bfp .bfp-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #191919; color: #fff; border-radius: 20px; padding: 36px 32px 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); text-align: center; border-top: 4px solid #ff8a00; }
.bfp .bfp-card:focus { outline: none; }
.bfp .bfp-tag { display: inline-block; background: #2a2a2a; border-radius: 999px; padding: 6px 14px; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.bfp .bfp-tag b { color: #ff8a00; font-weight: 800; }
.bfp .bfp-card h2 { margin: 0 0 12px; padding: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; text-transform: none; color: #fff; }
.bfp .bfp-card h2 span { color: #ff8a00; }
.bfp .bfp-card p { margin: 0 0 8px; padding: 0; font-size: 15px; line-height: 1.5; color: #d4d4d4; }
.bfp .bfp-card p.bfp-fine { font-size: 12px; color: #8a8a8a; margin: 14px 0 0; }
.bfp .bfp-price { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.bfp .bfp-price s { color: #8a8a8a; font-size: 22px; font-weight: 600; text-decoration-color: #e5173f; }
.bfp .bfp-price strong { color: #e5173f; font-size: 44px; line-height: 1; font-weight: 800; }
.bfp .bfp-price small { color: #d4d4d4; font-size: 14px; }
.bfp .bfp-card p.bfp-clock { font-size: 13px; color: #9a9a9a; margin: 0 0 20px; }
.bfp .bfp-clock b { color: #fff; font-variant-numeric: tabular-nums; }
.bfp a.bfp-btn { display: block; width: 100%; margin: 0; padding: 16px 24px; background: #e5173f; color: #fff; font-size: 16px; line-height: 1.5; font-weight: 700; text-align: center; border: 0; border-radius: 12px; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(229, 23, 63, .8); animation: bfp-hot 1.8s ease-out infinite; }
.bfp a.bfp-btn:hover, .bfp a.bfp-btn:focus { background: #c9122f; color: #fff; text-decoration: none; }
.bfp a.bfp-btn:focus-visible, .bfp button.bfp-x:focus-visible, .bfp button.bfp-later:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bfp button.bfp-later { display: inline-block; width: auto; min-width: 0; min-height: 0; height: auto; margin: 14px 0 0; padding: 4px; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #9a9a9a; font-family: inherit; font-size: 13px; line-height: 1.5; font-weight: 400; letter-spacing: normal; text-transform: none; text-decoration: underline; cursor: pointer; }
.bfp button.bfp-later:hover, .bfp button.bfp-later:focus { background: transparent; color: #fff; box-shadow: none; }
.bfp button.bfp-x { position: absolute; top: 10px; right: 10px; width: 36px; min-width: 0; height: 36px; min-height: 0; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 50%; box-shadow: none; color: #9a9a9a; font-family: inherit; font-size: 24px; line-height: 36px; font-weight: 400; text-align: center; cursor: pointer; }
.bfp button.bfp-x:hover, .bfp button.bfp-x:focus { background: #2a2a2a; color: #fff; box-shadow: none; }
.bfp .bfp-card.is-in { animation: bfp-in .35s cubic-bezier(.16, 1, .3, 1); }

.bfp-bar { position: relative; z-index: 9998; width: 100%; margin: 0; padding: 10px 44px 10px 16px; background: #191919; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; }
.bfp-bar[hidden] { display: none; }
.bfp-bar a, .bfp-bar a:visited { color: #fff; text-decoration: none; }
.bfp-bar a:hover, .bfp-bar a:focus { color: #fff; text-decoration: underline; }
.bfp-bar a b { color: #ff8a00; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; margin-right: 8px; }
.bfp-bar .bfp-bar-arrow { color: #ff8a00; margin-left: 6px; }
.bfp-bar button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; min-width: 0; height: 32px; min-height: 0; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #9a9a9a; font-family: inherit; font-size: 22px; line-height: 32px; font-weight: 400; cursor: pointer; }
.bfp-bar button:hover, .bfp-bar button:focus { background: transparent; color: #fff; box-shadow: none; }

@keyframes bfp-hot { 0% { box-shadow: 0 10px 30px -12px rgba(229, 23, 63, .8), 0 0 0 0 rgba(229, 23, 63, .55); } 70% { box-shadow: 0 10px 30px -12px rgba(229, 23, 63, .8), 0 0 0 14px rgba(229, 23, 63, 0); } 100% { box-shadow: 0 10px 30px -12px rgba(229, 23, 63, .8), 0 0 0 0 rgba(229, 23, 63, 0); } }
@keyframes bfp-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .bfp { align-items: flex-end; padding: 0; }
    .bfp .bfp-card { max-width: none; max-height: 100vh; border-radius: 20px 20px 0 0; padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); }
    .bfp .bfp-card h2 { font-size: 26px; }
    .bfp .bfp-price strong { font-size: 38px; }
    .bfp-bar .bfp-bar-until { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bfp a.bfp-btn, .bfp .bfp-card.is-in { animation: none; }
}
