/*
 * Black Friday look for hostmargin.com (html.black-friday). Loaded by partials/black-friday-theme
 * only while the campaign dresses the site; without it none of this is on the page.
 * Near-black and kasavu gold over the existing layout, Anton for sale type, plus the header strip,
 * the homepage band (partials/black-friday-home) and the floating sticker.
 */

html.black-friday {
    --bfx-black: #07090A;
    --bfx-ink: #12333B;
    --bfx-ink-2: #0C1F24;
    --bfx-gold: #C9A227;
    --bfx-gold-2: #E9C64B;
    --bfx-display: Anton, Impact, "Arial Narrow", sans-serif;
    --bfx-body: "Hanken Grotesk", Inter, system-ui, sans-serif;

    /* The site's own theme colours: buttons and accents go black, so the gold stands out */
    --color-primary: #12333B;
    --color-secondary: #07090A;
    --color-secondary-dark: #050607;
}

html.black-friday ::selection { background: #C9A227; color: #07090A; }

/* ── Header top strip ── */
html.black-friday .rts-ht__bg,
html.black-friday .rts-ht { background: var(--bfx-black) !important; border-bottom: 1px solid #C9A22766; }
html.black-friday .rts-ht__email a,
html.black-friday .rts-ht__links a { color: #E7EEF0 !important; }
.bfx-strip { display: flex; align-items: center; justify-content: center; }
.bfx-strip a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; color: #fff !important; font: 600 14px/1.3 var(--bfx-body); text-decoration: none; }
.bfx-strip a:hover .bfx-strip__go { text-decoration: underline; }
.bfx-strip__tag { padding: 3px 10px 2px; border-radius: 4px; background: var(--bfx-gold); color: var(--bfx-black); font: 400 15px/1.1 var(--bfx-display); letter-spacing: .06em; text-transform: uppercase; }
.bfx-strip strong { color: var(--bfx-gold-2); letter-spacing: .06em; }
.bfx-strip__go { color: var(--bfx-gold-2); }

/* A thin gold line under the main header, a quiet reminder on every page */
html.black-friday .rts-header { box-shadow: 0 2px 0 0 var(--bfx-gold); }

/* The page hero used across the site (hosting, reseller, SSL, services…): near-black with a gold glow */
html.black-friday .rts-hosting-banner-bg { border-bottom: 3px solid var(--bfx-gold); }
/* The theme paints its blue gradient on ::before, above the element's own background */
html.black-friday .rts-hosting-banner-bg::before {
    background: radial-gradient(55% 80% at 85% 30%, #C9A22733, transparent 70%), radial-gradient(70% 90% at 15% 0%, #17434D 0%, #0C1F24 45%, #07090A 100%) !important;
}
html.black-friday .rts-hosting-banner-bg .banner-title { color: #fff; }

/* ── Shared buttons and screen-reader text ── */
.bfx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 30px; border-radius: 999px; font: 800 17px/1.2 var(--bfx-body); text-decoration: none !important; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background-color .2s; }
.bfx-btn--gold { background: linear-gradient(135deg, #E9C64B, #C9A227 60%, #A8851A); color: var(--bfx-black) !important; box-shadow: 0 14px 34px -14px #E9C64BCC; }
.bfx-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px #E9C64B; }
.bfx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Homepage band ── */
.bfx-home { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(70% 90% at 15% 0%, #16414B 0%, var(--bfx-ink-2) 45%, var(--bfx-black) 100%); color: #fff; padding: 64px 0 0; font-family: var(--bfx-body); }
.bfx-home::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(#ffffff14 1px, transparent 1px); background-size: 22px 22px; }
.bfx-home__glow { position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, #C9A22740, transparent); }
.bfx-home__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 992px) { .bfx-home__grid { grid-template-columns: 1.35fr 1fr; } }
.bfx-home__eyebrow { margin: 0 0 10px; font: 700 13px/1.3 var(--bfx-body); letter-spacing: .18em; text-transform: uppercase; color: var(--bfx-gold-2); }
.bfx-home__title { margin: 0 0 16px; color: #fff; font-family: var(--bfx-display); font-weight: 400; line-height: .9; }
.bfx-word { display: inline-block; font-size: clamp(64px, 9vw + 20px, 150px); text-transform: uppercase; letter-spacing: .01em; }
.bfx-word--outline { color: transparent; -webkit-text-stroke: 2px #fff; }
.bfx-word--gold { background: linear-gradient(180deg, #F6DD7E, #C9A227 55%, #9C7A14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfx-home__deal { display: block; margin-top: 14px; font: 400 clamp(26px, 2vw + 16px, 40px)/1.1 var(--bfx-display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.bfx-home__sub { max-width: 560px; margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: #D6E3E6; }
.bfx-home__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bfx-home__card { display: grid; gap: 18px; justify-items: center; }

/* Price-tag code card */
.bfx-tag { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "code copy"; align-items: center; gap: 6px 16px; width: min(100%, 380px); padding: 22px 22px 22px 54px; background: linear-gradient(135deg, #F1D46A, #C9A227 70%); color: var(--bfx-black); border-radius: 14px 40px 40px 14px; transform: rotate(-3deg); box-shadow: 0 24px 50px -24px #000, inset 0 0 0 2px #ffffff55; }
.bfx-tag__hole { position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bfx-ink-2); box-shadow: inset 0 2px 3px #0008; }
.bfx-tag__label { grid-area: label; font: 700 12px/1.2 var(--bfx-body); letter-spacing: .14em; text-transform: uppercase; }
.bfx-tag__code { grid-area: code; padding: 0; background: none; color: var(--bfx-black); font: 400 40px/1 var(--bfx-display); letter-spacing: .06em; }
.bfx-tag__copy { grid-area: copy; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--bfx-black); color: #fff; font: 700 14px/1.2 var(--bfx-body); cursor: pointer; }
.bfx-tag__copy:hover { background: var(--bfx-ink); }

/* Countdown tiles */
.bfx-count { display: flex; gap: 10px; }
.bfx-count__cell { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 10px 8px 8px; border: 1px solid #C9A22766; border-radius: 12px; background: #ffffff0A; }
.bfx-count__num { font: 400 38px/1 var(--bfx-display); color: #fff; font-variant-numeric: tabular-nums; }
.bfx-count__unit { margin-top: 4px; font: 600 11px/1 var(--bfx-body); letter-spacing: .12em; text-transform: uppercase; color: #BFD1D5; }

/* Ticker */
.bfx-ticker { overflow: hidden; background: var(--bfx-gold); color: var(--bfx-black); border-top: 1px solid #F1D46A; }
.bfx-ticker__track { display: flex; width: max-content; animation: bfx-marquee 38s linear infinite; }
.bfx-ticker__group { display: flex; align-items: center; flex: none; }
.bfx-ticker__group span { padding: 12px 18px; font: 400 18px/1 var(--bfx-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bfx-ticker__group i { font-style: normal; font-size: 10px; opacity: .7; }
@keyframes bfx-marquee { to { transform: translateX(-50%); } }

/* ── Floating sticker ── */
.bfx-sticker { position: fixed; left: 16px; bottom: 104px; /* above the chat button in the bottom-left corner */ z-index: 998; font-family: var(--bfx-body); animation: bfx-pop .5s cubic-bezier(.2, 1.4, .4, 1) both .8s; }
.bfx-sticker[hidden] { display: none; }
.bfx-sticker__link { display: grid; justify-items: center; place-content: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F6DD7E, #C9A227 60%, #9C7A14); color: var(--bfx-black) !important; text-decoration: none !important; box-shadow: 0 16px 34px -12px #000C, 0 0 0 4px var(--bfx-black), 0 0 0 6px var(--bfx-gold); transform: rotate(-10deg); transition: transform .25s; }
.bfx-sticker__link:hover { transform: rotate(0) scale(1.05); }
.bfx-sticker__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.bfx-sticker__eyebrow { font: 800 10px/1 var(--bfx-body); letter-spacing: .12em; text-transform: uppercase; }
.bfx-sticker__big { font: 400 36px/1 var(--bfx-display); }
.bfx-sticker__big small { font-size: 16px; margin-left: 2px; }
.bfx-sticker__code { font: 700 11px/1 var(--bfx-body); letter-spacing: .1em; }
.bfx-sticker__close { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bfx-gold); background: var(--bfx-black); color: #fff; font: 700 16px/1 var(--bfx-body); cursor: pointer; }
@keyframes bfx-pop { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    .bfx-home { padding-top: 44px; }
    .bfx-home .bfx-btn { width: 100%; }
    .bfx-count { width: 100%; }
    .bfx-count__cell { flex: 1; min-width: 0; }
    .bfx-sticker { bottom: 92px; left: 12px; }
    .bfx-sticker__link { width: 84px; height: 84px; }
    .bfx-sticker__big { font-size: 27px; }
    .bfx-tag { padding-left: 48px; }
    .bfx-tag__code { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .bfx-ticker__track, .bfx-sticker { animation: none !important; }
    .bfx-btn, .bfx-sticker__link { transition: none !important; }
}
