/* BoxspringFD Black Friday */
:root {
    --bfdbf-ink: #111111;
    --bfdbf-accent: #e30613;
    --bfdbf-accent-dark: #b8040f;
    --bfdbf-text: #2b2b2b;
    --bfdbf-muted: #6b6b6b;
    --bfdbf-line: #e3e3e3;
    --bfdbf-soft: #f5f5f4;
    --bfdbf-bar-h: 0px;
}

/* ---------- Actiebalk ---------- */
.bfdbf-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--bfdbf-accent);
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
}
body.admin-bar .bfdbf-bar { top: 32px; }
/* Ruimte voor de vaste balk; ::before staat altijd boven alle andere elementen in de body */
body.bfdbf-has-bar::before { content: ""; display: block; height: var(--bfdbf-bar-h, 48px); }
.bfdbf-bar__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.bfdbf-bar__text { margin: 0; padding: 0; font-weight: 600; color: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }
.bfdbf-bar__text.bfdbf-fit-wrap { white-space: normal; overflow: visible; line-height: 1.2; }
.bfdbf-bar__button,
.bfdbf-bar__link,
.bfdbf-countdown--bar { flex-shrink: 0; }
.bfdbf-bar__text-short { display: none; }
.bfdbf-bar__button,
.bfdbf-bar__button:visited {
    display: inline-block;
    background: #fff;
    color: var(--bfdbf-accent) !important;
    padding: 7px 14px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.bfdbf-bar__button:hover { background: #fbe6e7; }
.bfdbf-bar__link,
.bfdbf-bar__link:visited {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* BeTheme: plakkende header onder de balk laten vallen */
body.bfdbf-has-bar #Top_bar.is-sticky { top: var(--bfdbf-bar-h) !important; }
body.bfdbf-has-bar.admin-bar #Top_bar.is-sticky { top: calc(var(--bfdbf-bar-h) + 32px) !important; }

/* ---------- Aftelklok ---------- */
.bfdbf-countdown { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bfdbf-countdown span[data-unit] { font-weight: 700; }
.bfdbf-countdown small { font-size: .8em; margin-right: 6px; opacity: .8; }
.bfdbf-countdown__label { margin-right: 4px; }
.bfdbf-countdown--page { font-size: 20px; color: var(--bfdbf-ink); margin: 6px 0 4px; }

@media (max-width: 782px) {
    body.admin-bar .bfdbf-bar { top: 46px; }
    body.bfdbf-has-bar.admin-bar #Top_bar.is-sticky { top: calc(var(--bfdbf-bar-h) + 46px) !important; }
}
@media (max-width: 767px) {
    .bfdbf-bar { font-size: 14px; }
    .bfdbf-bar__inner { padding: 8px 12px; gap: 10px; justify-content: space-between; }
    .bfdbf-bar__text-full, .bfdbf-bar__link, .bfdbf-countdown--bar { display: none; }
    .bfdbf-bar__text-short { display: inline; }
    .bfdbf-bar__button { padding: 8px 12px; }
}
@media (max-width: 600px) {
    body.admin-bar .bfdbf-bar { top: 0; }
    body.bfdbf-has-bar.admin-bar #Top_bar.is-sticky { top: var(--bfdbf-bar-h) !important; }
}

/* ---------- Badge ---------- */
.bfdbf-badge,
.onsale.onsale-extra-label.bfdbf-badge {
    background: var(--bfdbf-accent) !important;
    color: #fff !important;
    border-color: var(--bfdbf-accent) !important;
    white-space: nowrap;
    width: auto !important;
    padding-left: .6em !important;
    padding-right: .6em !important;
}
/* Lange periodenaam die ook na verkleinen niet past: over twee regels */
[data-bfdbf-fit="badge"].bfdbf-fit-wrap {
    white-space: normal !important;
    max-width: calc(100% - 16px);
    line-height: 1.15 !important;
    height: auto !important;
    text-align: center;
}

/* ---------- Prijs ---------- */
.bfdbf-price del { opacity: .55; margin-right: 4px; }
.bfdbf-price ins { text-decoration: none; font-weight: 700; color: var(--bfdbf-accent); }
.bfdbf-price__from { font-size: .8em; color: var(--bfdbf-muted); }

/* ---------- Actieblok productpagina ---------- */
.bfdbf-box {
    border: 2px solid var(--bfdbf-accent);
    border-radius: 6px;
    padding: 14px 16px;
    margin: 16px 0;
    background: #fff;
}
.bfdbf-box__title { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--bfdbf-ink); }
.bfdbf-box__title span { font-weight: 400; color: var(--bfdbf-muted); font-size: 15px; }
.bfdbf-box__list { margin: 0 0 8px; padding-left: 18px; }
.bfdbf-box__list li { margin: 3px 0; }
.bfdbf-box__usps { margin: 0 0 6px; color: var(--bfdbf-muted); font-size: 14px; }
.bfdbf-box__link { font-weight: 600; color: var(--bfdbf-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Configurator ---------- */
.bfdbf-step-note { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--bfdbf-ink); }
.bsc-option-price .bfdbf-free { font-weight: 700; color: var(--bfdbf-accent); }
.bsc-option-price del { opacity: .55; }
#bsc-composition-list .bsc-composition-item[data-promo="1"] .bsc-composition-label { font-weight: 600; }

/* ---------- Actiepagina ---------- */
.bfdbf-page { max-width: 1120px; margin: 0 auto; padding: 10px 0 40px; color: var(--bfdbf-text); }
.bfdbf-page h1 { color: var(--bfdbf-ink); margin: 0 0 12px; font-size: 40px; line-height: 1.15; }
.bfdbf-page h2 { color: var(--bfdbf-ink); margin: 0 0 16px; font-size: 28px; line-height: 1.2; }
.bfdbf-page h3 { color: var(--bfdbf-ink); margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.bfdbf-hero { padding: 30px 0 26px; border-bottom: 1px solid var(--bfdbf-line); }
.bfdbf-hero__intro { font-size: 18px; line-height: 1.6; max-width: 760px; margin: 0 0 10px; }
.bfdbf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.bfdbf-btn,
.bfdbf-btn:visited {
    display: inline-block;
    background: var(--bfdbf-accent);
    color: #fff !important;
    border: 2px solid var(--bfdbf-accent);
    padding: 11px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.2;
}
.bfdbf-btn:hover { background: var(--bfdbf-accent-dark); border-color: var(--bfdbf-accent-dark); }
.bfdbf-btn--ghost, .bfdbf-btn--ghost:visited { background: #fff; color: var(--bfdbf-accent) !important; }
.bfdbf-btn--ghost:hover { background: var(--bfdbf-soft); border-color: var(--bfdbf-accent); }
.bfdbf-btn--small { padding: 9px 16px; }

.bfdbf-section { padding: 34px 0; border-bottom: 1px solid var(--bfdbf-line); }
.bfdbf-section:last-child { border-bottom: 0; }

.bfdbf-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bfdbf-tier { border: 1px solid var(--bfdbf-line); border-radius: 6px; padding: 20px 22px; }
.bfdbf-tier h3 span { display: block; font-size: 15px; font-weight: 400; color: var(--bfdbf-muted); margin-top: 2px; }
.bfdbf-tier ul { margin: 10px 0 0; padding-left: 18px; }
.bfdbf-tier li { margin: 5px 0; }

.bfdbf-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bfdbf-model { border: 1px solid var(--bfdbf-line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.bfdbf-model__image { display: block; background: var(--bfdbf-soft); aspect-ratio: 4 / 3; overflow: hidden; }
.bfdbf-model__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfdbf-model__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bfdbf-model__body h3 { font-size: 18px; margin: 0; }
.bfdbf-model__body h3 a { color: var(--bfdbf-ink); text-decoration: none; }
.bfdbf-model__tiers { margin: 0; color: var(--bfdbf-muted); font-size: 14px; }
.bfdbf-model__price { margin: 2px 0 8px; font-size: 18px; }
.bfdbf-model__price span { font-size: 14px; color: var(--bfdbf-muted); }
.bfdbf-model__price del { opacity: .55; margin-right: 4px; }
.bfdbf-model__price ins { text-decoration: none; font-weight: 700; color: var(--bfdbf-accent); }
.bfdbf-model .bfdbf-btn { margin-top: auto; align-self: flex-start; }

.bfdbf-usps { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none !important; margin: 0 !important; padding: 0 !important; font-size: 17px; }
.bfdbf-usps li { list-style: none !important; margin: 0 !important; }
.bfdbf-usps li { padding-left: 22px; position: relative; }
.bfdbf-usps li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--bfdbf-accent); border-bottom: 2px solid var(--bfdbf-accent); transform: rotate(-45deg); }

.bfdbf-showroom p { max-width: 720px; font-size: 17px; line-height: 1.6; }
.bfdbf-terms ul { padding-left: 18px; margin: 0; color: var(--bfdbf-muted); }
.bfdbf-terms li { margin: 5px 0; }

@media (max-width: 767px) {
    .bfdbf-page { padding: 0 0 30px; }
    .bfdbf-page h1 { font-size: 30px; }
    .bfdbf-page--m h1 { font-size: 27px; }
    .bfdbf-page--l h1 { font-size: 25px; }
    .bfdbf-page h2 { font-size: 23px; }
    .bfdbf-hero { padding: 20px 0; }
    .bfdbf-hero__intro { font-size: 16px; }
    .bfdbf-section { padding: 26px 0; }
    .bfdbf-actions .bfdbf-btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Actieruit homepage-hero ---------- */
.bedder-hero .hero .badge.bfdbf-hero-badge {
    background: var(--bfdbf-accent);
    color: #fff !important;
    text-decoration: none !important;
}
.bedder-hero .hero .bfdbf-hero-badge small { font-size: 13px; font-weight: 600; letter-spacing: .2px; line-height: 1.2; margin-bottom: 2px; }
.bedder-hero .hero .bfdbf-hero-badge span { font-size: 11px; }
/* Langere periodenaam in de ruit: bovenste regel kleiner */
.bedder-hero .hero .bfdbf-hero-badge--m small { font-size: 11.5px; letter-spacing: 0; }
.bedder-hero .hero .bfdbf-hero-badge--l small { font-size: 10.5px; letter-spacing: 0; }
@media (max-width: 1024px) {
    .bedder-hero .hero .bfdbf-hero-badge small { font-size: 11px; }
    .bedder-hero .hero .bfdbf-hero-badge span { font-size: 9.5px; }
    .bedder-hero .hero .bfdbf-hero-badge--m small { font-size: 10px; }
    .bedder-hero .hero .bfdbf-hero-badge--l small { font-size: 9px; }
}
@media (max-width: 600px) {
    .bedder-hero .hero .bfdbf-hero-badge small { font-size: 8.5px; margin-bottom: 1px; }
    .bedder-hero .hero .bfdbf-hero-badge span { font-size: 8px; }
    .bedder-hero .hero .bfdbf-hero-badge--m small { font-size: 7.5px; }
    .bedder-hero .hero .bfdbf-hero-badge--l small { font-size: 7px; }
}

/* ---------- Voordeel in winkelwagen ---------- */
tr.bfdbf-savings th,
tr.bfdbf-savings td { color: var(--bfdbf-ink); }
tr.bfdbf-savings td strong { font-weight: 700; }
