.bfadv-shell{position:relative;overflow:hidden;background:var(--bf-outer,#e8e4dc);padding:15px;border-radius:9px;box-shadow:0 20px 50px rgba(37,33,26,.10)}.bfadv{position:relative;isolation:isolate;overflow:hidden;padding:74px 27px 62px;border-radius:7px;background:radial-gradient(ellipse at 50% -3%,rgba(245,228,204,.26),transparent 44%),radial-gradient(ellipse at 48% 0%,rgba(241,217,185,.18),transparent 60%),radial-gradient(ellipse at 5% 100%,rgba(40,51,42,.31),transparent 65%),linear-gradient(135deg,#878073,var(--bf-background) 50%,#60685e);font-family:Raleway,Arial,sans-serif;color:#fff7eb;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.bfadv *,.bfadv *::before,.bfadv *::after,.bfadv-overlay *,.bfadv-overlay *::before,.bfadv-overlay *::after{box-sizing:border-box}
.bfadv::before{content:"";pointer-events:none;position:absolute;inset:0;opacity:.23;background:repeating-linear-gradient(0deg,transparent 0px,rgba(255,255,255,.05) 1px,transparent 2px,transparent 5px),repeating-linear-gradient(90deg,transparent 0px,rgba(30,25,20,.05) 1px,transparent 2px,transparent 6px)}
.bfadv::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 30%,transparent 100%);opacity:.55;z-index:0}.bfadv-atmosphere{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}.bfadv-mist{position:absolute;left:50%;top:-2%;width:min(92%,980px);height:240px;transform:translateX(-50%);background:radial-gradient(ellipse at center,rgba(255,255,255,.18) 0,rgba(255,255,255,.11) 22%,rgba(220,233,240,.09) 40%,rgba(220,233,240,0) 72%);filter:blur(26px);opacity:.78}.bfadv-luxe{position:absolute;display:block;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle,rgba(255,247,232,.96) 0,rgba(243,215,173,.82) 34%,rgba(243,215,173,0) 72%);box-shadow:0 0 18px rgba(243,215,173,.28);opacity:.55;animation:bfadv-luxePulse 6.8s ease-in-out infinite}.bfadv-luxe::before,.bfadv-luxe::after{content:"";position:absolute;left:50%;top:50%;background:rgba(255,243,219,.78);transform:translate(-50%,-50%)}.bfadv-luxe::before{width:1px;height:18px;border-radius:999px}.bfadv-luxe::after{width:18px;height:1px;border-radius:999px}.bfadv-luxe-1{top:56px;left:16%;animation-delay:0s;transform:scale(.82)}.bfadv-luxe-2{top:112px;right:18%;animation-delay:1.2s;transform:scale(.62)}.bfadv-luxe-3{top:215px;left:8%;animation-delay:2.6s;transform:scale(.55)}.bfadv-luxe-4{top:250px;right:9%;animation-delay:3.4s;transform:scale(.7)}
.bfadv-inner{position:relative;z-index:2;max-width:1040px;margin:auto}.bfadv-inner::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:min(76%,760px);height:180px;background:radial-gradient(ellipse at center,rgba(255,251,242,.08),rgba(255,251,242,0) 72%);pointer-events:none;z-index:-1}
.bfadv-heading{text-align:center;margin:0 0 40px;text-shadow:0 1px 0 rgba(0,0,0,.08)}.bfadv-eyebrow{display:block;margin-bottom:17px;font-size:11px;letter-spacing:3px;font-weight:600;color:#ecdbc0}.bfadv-heading h2{padding:0;margin:0 0 18px;color:#fffaf1;font-family:'Playfair Display',Georgia,serif;font-size:clamp(31px,4.2vw,50px);line-height:1.22;font-weight:400}.bfadv-heading p{font-size:15px;line-height:1.9;max-width:560px;margin:auto;color:#faf0e4}.bfadv-ornament{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:26px;font-size:24px;color:#ead6b4;opacity:.92}.bfadv-ornament::before,.bfadv-ornament::after{content:'';width:65px;height:1px;background:linear-gradient(90deg,rgba(232,216,186,0),rgba(232,216,186,.62),rgba(232,216,186,0))}
.bfadv-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}
.bfadv-door,.bfadv-flying{appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;width:100%;aspect-ratio:1;padding:12px;border:1px solid #d4c7b3;border-radius:3px;background-color:var(--bf-paper);background-image:radial-gradient(ellipse at 25% 18%,rgba(255,255,255,.7),transparent 62%),radial-gradient(circle at 7px 12px,rgba(101,80,58,var(--bf-fiber-alpha,.04)) .6px,transparent 1.2px),radial-gradient(circle at 24px 28px,rgba(123,100,71,var(--bf-cross-alpha,.03)) .7px,transparent 1.5px),linear-gradient(145deg,rgba(255,255,255,.16),rgba(134,107,72,.04));box-shadow:0 3px 5px rgba(33,28,21,.11),0 15px 22px rgba(33,28,21,.12),inset 0 1px 0 rgba(255,255,255,.76),inset 0 -14px 20px rgba(124,98,67,.03);font-family:Raleway,Arial,sans-serif;transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s;backface-visibility:hidden;transform:translateZ(0)}
.bfadv-door::before,.bfadv-flying::before{content:"";position:absolute;inset:4px;border:1px solid rgba(164,139,103,.14);pointer-events:none}.bfadv-number{font-family:'Playfair Display',Georgia,serif;font-weight:400;color:#8b7352;font-size:clamp(28px,3vw,44px);line-height:1.1}.bfadv-door-label{color:#9a876c;font-size:11px;letter-spacing:1px}
.bfadv-locked{cursor:not-allowed}.bfadv-locked::after{content:"";position:absolute;right:-1px;top:43%;width:10px;height:17px;border:1px solid #d4c7b3;border-right:none;border-radius:12px 0 0 12px;background:var(--bf-background)}
.bfadv-today{background-color:var(--bf-green);background-image:radial-gradient(ellipse at 50% 0%,rgba(255,248,232,.18),transparent 58%),radial-gradient(circle at 50% 115%,rgba(255,229,182,.10),transparent 40%),repeating-linear-gradient(40deg,rgba(255,255,255,.025) 0px,rgba(255,255,255,.025) 1px,transparent 1px,transparent 5px);border-color:#7c8b72;box-shadow:0 6px 12px rgba(31,36,27,.22),0 16px 26px rgba(31,36,27,.18),0 0 0 1px rgba(238,221,190,.08),inset 0 0 0 3px rgba(226,214,179,.12);cursor:pointer}.bfadv-today .bfadv-number,.bfadv-today .bfadv-door-label{color:#fff8ec}.bfadv-today .bfadv-door-label{font-size:10px;letter-spacing:.3px}.bfadv-today:hover{transform:translateY(-5px) scale(1.012);box-shadow:0 12px 20px rgba(31,36,27,.24),0 22px 34px rgba(31,36,27,.18),0 0 22px rgba(241,222,189,.10)}.bfadv-today:focus-visible,.bfadv-cta:focus-visible{outline:3px solid #e9d5ac;outline-offset:4px}
.bfadv-finished{background-color:#dbd3c4;background-image:repeating-linear-gradient(35deg,rgba(106,91,70,.05) 0,rgba(106,91,70,.05) 1px,transparent 1px,transparent 5px);opacity:.83;border-color:#cdc3b4;cursor:default;clip-path:polygon(0 0,100% 0,100% 73%,96% 77%,99% 81%,94% 85%,98% 89%,92% 93%,95% 97%,88% 100%,0 100%)}.bfadv-finished .bfadv-number,.bfadv-finished .bfadv-door-label{color:#988e80}.bfadv-finished .bfadv-door-label{font-size:10px;letter-spacing:.3px}.bfadv-placeholder{opacity:.3;box-shadow:inset 0 3px 15px rgba(30,30,24,.18)}.bfadv-placeholder>*{visibility:hidden}
.bfadv-flying{position:fixed!important;z-index:2147483000!important;margin:0!important;pointer-events:none!important;background-color:var(--bf-green,#50614f);background-image:linear-gradient(145deg,#5e705a,#465747);border-color:#7c8b72;transform-origin:center center;will-change:transform,opacity}.bfadv-flying .bfadv-number,.bfadv-flying .bfadv-door-label{color:#fffaf1}
.bfadv-status{min-height:24px;margin:26px 0 17px;text-align:center;color:#f4ead9;font-size:13px;text-shadow:0 1px 0 rgba(0,0,0,.08)}.bfadv-footer{text-align:center;color:#e8d7b8;margin-top:30px}.bfadv-footer>span{font-size:22px}.bfadv-footer p{margin:8px 0;color:#fff2df;font-family:'Playfair Display',Georgia,serif;font-size:19px}.bfadv-footer small{display:block;max-width:580px;margin:auto;color:#e9dfd1;font-size:11px;line-height:1.8}
.bfadv-overlay{position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;padding:22px;overflow-y:auto;background:rgba(35,37,31,.76);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:bfadv-fade .5s ease both}.bfadv-overlay[hidden],.bfadv-cta[hidden],.bfadv-enquiry[hidden]{display:none!important}.bfadv-modal{position:relative;width:min(100%,540px);max-height:calc(100dvh - 44px);overflow-y:auto;padding:49px 34px 36px;border-radius:4px;border:1px solid #c8b48e;background:#f4eee3;background-image:radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.82),transparent 70%),repeating-linear-gradient(30deg,rgba(111,90,62,.025) 0,rgba(111,90,62,.025) 1px,transparent 1px,transparent 5px);box-shadow:0 28px 80px rgba(0,0,0,.28);color:#403c34;font-family:Raleway,Arial,sans-serif;text-align:center;outline:none;animation:bfadv-reveal .9s cubic-bezier(.22,1,.36,1) both}.bfadv-modal::before{content:"";position:absolute;inset:10px;border:1px solid rgba(159,130,89,.34);pointer-events:none}.bfadv-close{position:absolute;top:15px;right:17px;z-index:3;background:transparent;border:none;color:#776e60;font-size:30px;cursor:pointer;width:36px;height:36px;line-height:1}.bfadv-sparkles{color:#ad956e;letter-spacing:16px;font-size:22px;margin:0 0 10px;animation:bfadv-twinkle 2s ease-out both}.bfadv-date{color:#8c7555;font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:600;margin-bottom:16px}.bfadv-title{color:#403c34!important;font-family:'Playfair Display',Georgia,serif!important;font-size:clamp(28px,5vw,39px)!important;line-height:1.3!important;font-weight:400!important;padding:0!important;margin:0 0 16px!important}.bfadv-star{color:#a48a60;font-size:17px;margin:0 0 18px}.bfadv-description{color:#555047;line-height:1.8;font-size:15px;max-width:400px;margin:0 auto 22px}.bfadv-deadline{border:1px solid #d5b99b;background:#fff8eb;padding:14px 16px;margin:0 auto 24px;max-width:420px;display:flex;flex-direction:column;gap:6px}.bfadv-deadline strong{font-size:13px;letter-spacing:1.7px;color:#77543c}.bfadv-deadline span{font-size:13px;line-height:1.5;color:#685748}.bfadv-cta,.bfadv-submit{display:inline-block;padding:14px 26px;background:#50614f;color:#fff!important;border:1px solid #50614f;border-radius:3px;font:600 13px Raleway,Arial,sans-serif;text-decoration:none!important;cursor:pointer;transition:transform .25s,background .25s}.bfadv-cta:hover,.bfadv-submit:hover{background:#405141;transform:translateY(-2px)}.bfadv-form{display:grid;gap:12px;text-align:left}.bfadv-form label{display:grid;gap:5px;font-size:13px;font-weight:600;color:#4a473e}.bfadv-form input:not([type=checkbox]),.bfadv-form textarea{width:100%;padding:11px;border:1px solid #cabbab;background:#fffefb;color:#403c34;font:14px Raleway,Arial,sans-serif}.bfadv-form .bfadv-consent{display:flex;align-items:flex-start;gap:8px;font-weight:400;line-height:1.5}.bfadv-form .bfadv-consent input{width:auto;margin-top:4px}.bfadv-submit:disabled{opacity:.65;cursor:wait}.bfadv-form-feedback{margin:5px 0;font-size:13px}.bfadv-enquiry>small{display:block;margin-top:13px;color:#71695f;line-height:1.6}.bfadv-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}body.bfadv-modal-open{overflow:hidden!important}.bfadv-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;mix-blend-mode:screen;opacity:.92}
@keyframes bfadv-fade{from{opacity:0}to{opacity:1}}@keyframes bfadv-reveal{from{opacity:0;transform:translateY(16px) scale(.945)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes bfadv-twinkle{from{opacity:.2;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes bfadv-luxePulse{0%,100%{opacity:.18;transform:scale(.85)}50%{opacity:.58;transform:scale(1)}}
@media(max-width:980px){.bfadv-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:600px){.bfadv{padding:44px 14px}.bfadv-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bfadv-door{padding:8px;gap:8px}.bfadv-number{font-size:31px}.bfadv-heading p{font-size:14px}.bfadv-modal{padding:43px 22px 30px}}
@media(prefers-reduced-motion:reduce){.bfadv *,.bfadv-overlay *,.bfadv-overlay{animation:none!important;transition:none!important}}

/* 1.1.0: Smalere og mer oversiktlig mobiloppsett. */
.bfadv-intro-mobile{display:none}
@media (max-width:600px){
  .bfadv-shell{padding:5px;border-radius:6px}
  .bfadv{padding:27px 11px 31px;border-radius:5px}
  .bfadv-heading{margin-bottom:22px}
  .bfadv-eyebrow{font-size:10px;letter-spacing:2.2px;margin-bottom:9px}
  .bfadv-heading h2{font-size:clamp(24px,6.5vw,29px);line-height:1.2;letter-spacing:-.4px;margin-bottom:12px;text-wrap:balance}
  .bfadv-heading .bfadv-intro-desktop{display:none}
  .bfadv-heading .bfadv-intro-mobile{display:block;font-size:13px;line-height:1.55;max-width:300px}
  .bfadv-ornament{margin-top:15px;font-size:19px}
  .bfadv-ornament::before,.bfadv-ornament::after{width:45px}
  .bfadv-grid{gap:8px}
  .bfadv-door{padding:6px;gap:6px;min-width:0}
  .bfadv-number{font-size:clamp(24px,7.6vw,34px)}
  .bfadv-door-label{font-size:9px}
  .bfadv-status{margin:16px 0 12px;font-size:12px;line-height:1.5}
  .bfadv-footer{margin-top:17px}
  .bfadv-footer p{font-size:17px}
  .bfadv-overlay{padding:12px}
  .bfadv-modal{max-height:calc(100dvh - 24px);padding:39px 18px 26px}
  .bfadv-description{font-size:14px;line-height:1.65}
  .bfadv-deadline{padding:12px 10px;margin-bottom:17px}
  .bfadv-cta,.bfadv-submit{max-width:100%;min-height:44px}
}
@media (max-width:360px){.bfadv{padding-left:9px;padding-right:9px}.bfadv-grid{gap:6px}.bfadv-heading h2{font-size:23px}}

/* 1.2.0 – mobilkort med færre rader, uten å endre desktop. */
@media (max-width:600px) {
  .bfadv-shell { padding: 4px; }
  .bfadv { padding: 25px 10px 25px; }
  .bfadv-heading { margin-bottom: 17px; }
  .bfadv-heading h2 { font-size: clamp(22px, 5.8vw, 27px); line-height: 1.16; }
  .bfadv-heading .bfadv-intro-mobile { font-size: 12.5px; }
  .bfadv-ornament { margin-top: 12px; }
  .bfadv-grid { grid-template-columns: repeat(var(--bf-mobile-columns,4),minmax(0,1fr)); gap: 7px; }
  .bfadv-door { padding: 3px; gap: 3px; border-radius: 3px; }
  .bfadv-number { font-size: clamp(20px, 5.6vw, 29px); line-height: 1; }
  .bfadv-door-label { font-size: 8px; }
  .bfadv-today .bfadv-door-label,.bfadv-finished .bfadv-door-label { font-size: 7px; }
  .bfadv-door::before { inset: 3px; }
  .bfadv-locked::after { width: 7px; height: 12px; }
  .bfadv-status { margin: 13px 0 8px; }
  .bfadv-footer { margin-top: 12px; }
}

/* 1.3.0: Kort mobiloppsett. Behold nødvendig status for skjermlesere. */
@media (max-width:600px) {
  .bfadv { padding-top: 22px; padding-bottom: 15px; }
  .bfadv-heading { margin-bottom: 15px; }
  .bfadv-heading h2 { margin-bottom: 9px; }
  .bfadv-heading .bfadv-intro-mobile { line-height: 1.4; }
  .bfadv-ornament { margin-top: 10px; font-size: 17px; }
  .bfadv-ornament::before,.bfadv-ornament::after { width: 36px; }
  .bfadv-status { position: static; width: auto; height: auto; padding: 0; margin: 13px 0 8px; overflow: visible; clip: auto; white-space: normal; border: 0; }
  .bfadv-footer { display: block !important; margin-top: 16px; }
  .bfadv-footer p { font-size: 16px; }
  .bfadv-footer small { font-size: 12px; line-height: 1.5; padding: 0 4px; }
}

/* 1.4.0: uavhengig PC-oppsett; eksisterende mobilstil beholdes. */
@media (min-width:981px) {
  .bfadv { padding: 38px 27px 30px; }
  .bfadv-heading { margin-bottom: 24px; }
  .bfadv-heading h2 { font-size: clamp(31px,3.5vw,44px); margin-bottom: 12px; }
  .bfadv-eyebrow { margin-bottom: 10px; }
  .bfadv-ornament { margin-top: 15px; }
  .bfadv-grid { grid-template-columns: repeat(var(--bf-desktop-columns,8),minmax(0,1fr)); gap: 12px; }
  .bfadv-door { min-width: 0; padding: 6px; gap: 5px; }
  .bfadv-number { font-size: clamp(24px,2.6vw,36px); }
  .bfadv-status { margin: 16px 0 8px; }
  .bfadv-footer { margin-top: 12px; }
}


/* 1.5.0: eksklusiv atmosfære med diskré frost og lysglimt. */
@media (max-width: 600px) {
  .bfadv-mist { width: 112%; height: 170px; top: -1%; filter: blur(20px); opacity: .64; }
  .bfadv-luxe-1 { top: 38px; left: 11%; }
  .bfadv-luxe-2 { top: 76px; right: 12%; }
  .bfadv-luxe-3 { top: 155px; left: 4%; opacity: .22; }
  .bfadv-luxe-4 { top: 178px; right: 5%; opacity: .28; }
}
@media (min-width: 981px) {
  .bfadv-mist { height: 270px; top: -3%; opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .bfadv-luxe { animation: none !important; opacity: .22; }
}

/* 1.6.0: frostrøyk i Divi-seksjonen, bak radene. */
.bfadv-frost-section{position:relative;overflow:hidden;isolation:isolate}
.bfadv-frost-section>.et_pb_row{position:relative;z-index:2}
.bfadv-outer-frost{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}
@media(prefers-reduced-motion:reduce){.bfadv-outer-frost{display:none}}

/* 1.7.0: valgfri fokusmodus for Divi. */
body.bfadv-focus-mode #main-header,body.bfadv-focus-mode #top-header,body.bfadv-focus-mode #main-footer,body.bfadv-focus-mode .et-l--header,body.bfadv-focus-mode .et-l--footer {display:none!important}
body.bfadv-focus-mode #page-container {padding-top:0!important}
body.bfadv-focus-mode #et-main-area {margin-top:0!important}
.bfadv-home{text-align:center;margin:16px 0 4px;font:500 13px Raleway,Arial,sans-serif}
.bfadv-home a{color:#333;text-decoration:underline;text-underline-offset:3px}
.bfadv-today .bfadv-door-label{white-space:nowrap}
@media(max-width:600px){.bfadv-today .bfadv-door-label{font-size:clamp(6px,1.65vw,8px)}}

/* 1.8: flexible theme labels and optional content. */
.bfadv-door .bfadv-door-label{white-space:normal;overflow-wrap:anywhere;line-height:1.2;max-width:100%;text-align:center;letter-spacing:.5px}
.bfadv-modal [hidden]{display:none!important}
.bfadv-description{white-space:pre-line}
.bfadv-prize-image{max-width:100%;max-height:220px;object-fit:contain;margin:0 auto 16px;display:block}
.bfadv-prices{margin:0 auto 16px;display:flex;gap:10px;justify-content:center;align-items:baseline;flex-wrap:wrap}.bfadv-prices strong{font-size:24px;color:#50614f}.bfadv-prices del,.bfadv-prices span{font-size:13px}
.bfadv-day-terms{font-size:13px;line-height:1.5;margin:0 auto 16px;max-width:420px}.bfadv-info-link{display:block;margin:14px auto;color:#50614f!important;text-decoration:underline!important;font-size:14px}

/* 1.9.4: adapt desktop layout to available viewport width AND height.
   Keep the established mobile layout and the selected number of columns. */
@media (min-width:601px) and (max-width:980px) {
  .bfadv-shell .bfadv {padding:30px 20px 24px;}
  .bfadv-shell .bfadv-inner {max-width:650px;}
  .bfadv-shell .bfadv-heading {margin-bottom:20px;}
  .bfadv-shell .bfadv-number {font-size:clamp(25px,3.5vw,34px);}
}
@media (min-width:981px) {
  .bfadv-shell .bfadv-inner {max-width:min(1040px, 84vw);}
  .bfadv-shell .bfadv-grid {gap:clamp(8px, .85vw, 12px);}
  .bfadv-shell .bfadv-number {font-size:clamp(26px, 2.2vw, 36px);}
  .bfadv-shell .bfadv-door-label {font-size:clamp(10px, .85vw, 11px);}
}
@media (min-width:981px) and (max-height:900px) {
  .bfadv-shell {padding:10px;}
  .bfadv-shell .bfadv {padding:clamp(17px, 3vh, 30px) 20px 20px;}
  .bfadv-shell .bfadv-inner {
    max-width:min(1040px, 82vw, max(560px, calc((100vh - 360px) / var(--bf-desktop-rows,3) * var(--bf-desktop-columns,8))));
    max-width:min(1040px, 82vw, max(560px, calc((100dvh - 360px) / var(--bf-desktop-rows,3) * var(--bf-desktop-columns,8))));
  }
  .bfadv-shell .bfadv-heading {margin-bottom:16px;}
  .bfadv-shell .bfadv-heading h2 {font-size:clamp(28px, 4.3vh, 40px);line-height:1.17;margin-bottom:9px;}
  .bfadv-shell .bfadv-eyebrow {margin-bottom:8px;}
  .bfadv-shell .bfadv-heading p {font-size:14px;line-height:1.55;}
  .bfadv-shell .bfadv-ornament {margin-top:9px;font-size:19px;}
  .bfadv-shell .bfadv-grid {gap:9px;}
  .bfadv-shell .bfadv-door {gap:4px;padding:5px;}
  .bfadv-shell .bfadv-number {font-size:clamp(24px, 4.1vh, 34px);}
  .bfadv-shell .bfadv-status {margin:12px 0 6px;min-height:0;line-height:1.5;}
  .bfadv-shell .bfadv-footer {margin-top:8px;}
  .bfadv-shell .bfadv-footer p {font-size:17px;margin:5px 0;}
  .bfadv-shell .bfadv-footer>span {font-size:18px;}
}
/* The dialog is moved to body by calendar.js, so scope separately. */
@media (min-width:601px) {
  .bfadv-overlay .bfadv-modal {
    width:min(100%,540px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);
    box-sizing:border-box;flex-shrink:0;overscroll-behavior:contain;overflow-wrap:anywhere;
  }
  .bfadv-overlay .bfadv-description {font-size:15px;line-height:1.65;}
  .bfadv-overlay .bfadv-day-terms {font-size:13px;line-height:1.55;}
}
@media (min-width:601px) and (max-height:900px) {
  .bfadv-overlay {padding:18px;}
  .bfadv-overlay .bfadv-modal {padding:32px 28px 24px;}
  .bfadv-overlay .bfadv-title {font-size:clamp(27px,4.4vh,35px)!important;line-height:1.2!important;margin-bottom:12px!important;}
  .bfadv-overlay .bfadv-sparkles {font-size:18px;margin-bottom:7px;}
  .bfadv-overlay .bfadv-date {margin-bottom:10px;}
  .bfadv-overlay .bfadv-star {margin-bottom:12px;}
  .bfadv-overlay .bfadv-description {margin-bottom:14px;}
  .bfadv-overlay .bfadv-day-terms {margin-bottom:12px;}
  .bfadv-overlay .bfadv-deadline {padding:10px 12px;margin-bottom:15px;}
  .bfadv-overlay .bfadv-prize-image {max-height:min(180px,24vh);}
  .bfadv-overlay .bfadv-cta,.bfadv-overlay .bfadv-submit {padding:11px 20px;min-height:44px;}
}

/* 1.9.5: keep category names intact, including custom labels. */
.bfadv-door .bfadv-door-label {
  display:block; white-space:nowrap; overflow-wrap:normal; word-break:normal;
  hyphens:none; max-width:none; flex-shrink:0; letter-spacing:.15px;
}

/* 1.9.6: scroll the entire framed card rather than its contents. */
.bfadv-overlay { align-items:flex-start; overscroll-behavior:contain; }
.bfadv-overlay .bfadv-modal { margin:auto; flex-shrink:0; max-height:none; overflow:visible; }
.bfadv-overlay .bfadv-prize-image { width:auto; height:auto; max-width:100%; max-height:220px; object-fit:contain; border-radius:3px; }
@media(max-width:600px) { .bfadv-overlay .bfadv-prize-image { max-height:180px; } }

/* 1.9.7: explicit mobile grid and visible calendar notes, independent of theme footer styles. */
@media(max-width:600px){
  .bfadv-shell .bfadv .bfadv-grid{grid-template-columns:repeat(var(--bf-mobile-columns,4),minmax(0,1fr));}
  .bfadv-shell .bfadv .bfadv-status{display:block!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;margin:13px 0 8px!important;padding:0!important;font-size:12px;line-height:1.5;}
  .bfadv-shell .bfadv .bfadv-footer{display:block!important;position:relative;height:auto;visibility:visible; margin-top:16px;}
  .bfadv-shell .bfadv .bfadv-footer p,.bfadv-shell .bfadv .bfadv-footer small{display:block!important;visibility:visible;white-space:normal;overflow-wrap:break-word;}
  .bfadv-shell .bfadv .bfadv-footer small{font-size:12px;line-height:1.5;}
}

/* 1.9.8: compact mobile spacing; keep doors, labels and conditions intact. */
@media(max-width:600px){
 .bfadv-shell .bfadv .bfadv-heading{margin-bottom:7px;}
 .bfadv-shell .bfadv .bfadv-ornament{margin-top:4px;margin-bottom:0;line-height:1;font-size:17px;}
 .bfadv-shell .bfadv .bfadv-status{min-height:0;margin:8px 0 3px!important;}
 .bfadv-shell .bfadv .bfadv-footer{margin-top:3px;}
 .bfadv-shell .bfadv .bfadv-footer>span{display:block;line-height:1;font-size:17px;margin:0 0 5px;}
 .bfadv-shell .bfadv .bfadv-footer p{display:none!important;}
 .bfadv-shell .bfadv .bfadv-footer small{margin:0 auto;}
}

/* 1.9.9: mobile settings take precedence over legacy rules and theme styling. */
@media(max-width:600px){
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-grid{grid-template-columns:repeat(var(--bf-mobile-columns,4),minmax(0,1fr))!important;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-heading{margin-bottom:7px!important;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-ornament{margin:4px 0 0!important;line-height:1;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-status{display:block!important;margin:8px 0 3px!important;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-footer{display:block!important;margin-top:3px!important;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-footer p{display:none!important;}
 .bfadv-shell[data-bfadv-version] .bfadv .bfadv-footer small{display:block!important;}
}

.bfadv-live-mount>p{text-align:center;padding:20px;color:#333}.bfadv-live-mount>button{display:block;margin:12px auto}
/* 2.1: consistent offer hierarchy and responsive quiz. */
.bfadv-prices{display:flex;flex-direction:column;align-items:center;gap:4px}.bfadv-prices span{order:-2;font-family:'Playfair Display',Georgia,serif;font-size:clamp(24px,5vw,36px);color:#50614f;font-weight:500}.bfadv-prices strong{order:-1}.bfadv-prices del:empty,.bfadv-prices span:empty,.bfadv-prices strong:empty{display:none}.bfadv-price-note,.bfadv-value{font-size:14px;color:#333;line-height:1.6;margin:0 auto 12px}.bfadv-value{font-weight:700}.bfadv-quiz{background:var(--quiz-paper,#f4f3f0);color:#333;border:1px solid #d6d2c9;padding:16px;margin:16px auto;border-radius:6px;text-align:left;font-family:Raleway,Arial,sans-serif}.bfadv-quiz-status{font-size:12px;color:#555;margin:0 0 4px}.bfadv-quiz progress{width:100%;height:8px;accent-color:var(--quiz-accent,#50614f);display:block;margin:0 0 14px}.bfadv-quiz h4{font-family:'Playfair Display',Georgia,serif;color:#333;font-size:20px;line-height:1.4;margin:10px 0 12px}.bfadv-quiz-question{margin:0 0 16px}.bfadv-quiz-question img{width:100%;max-height:220px;object-fit:contain;margin-bottom:10px}.bfadv-quiz-answer,.bfadv-quiz-next{display:block;width:100%;border:1px solid #c6c6b6;border-radius:4px;background:#fff;color:#333;text-align:left;font:500 14px/1.45 Raleway,Arial,sans-serif;padding:12px;margin:7px 0;cursor:pointer;white-space:normal}.bfadv-quiz-answer:disabled{cursor:default;opacity:1}.bfadv-quiz-answer.is-right{background:#dfe7d9;border-color:var(--quiz-accent,#50614f);color:#293c2d}.bfadv-quiz-answer.is-wrong{background:#efe0d9;border-color:#a66c59;color:#733d30}.bfadv-quiz-next{background:#c6c6b6;text-align:center;font-weight:600}.bfadv-quiz-feedback,.bfadv-quiz-reward{font-size:14px;color:#333;line-height:1.6;margin:10px 0}.bfadv-quiz-answer:focus-visible,.bfadv-quiz-next:focus-visible{outline:2px solid var(--quiz-accent,#50614f);outline-offset:2px}.bfadv-cta[aria-disabled=true]{cursor:default;opacity:.75}@media(max-width:480px){.bfadv-quiz{padding:12px}.bfadv-quiz h4{font-size:18px}}
.bfadv-quiz{color:var(--quiz-text,#333);font-family:var(--quiz-body,Raleway),Arial,sans-serif}.bfadv-quiz h4{font-family:var(--quiz-heading,'Playfair Display'),Georgia,serif;color:var(--quiz-text,#333)}.bfadv-quiz-answer,.bfadv-quiz-next{font-family:var(--quiz-body,Raleway),Arial,sans-serif;color:var(--quiz-text,#333);border-color:var(--quiz-button,#c6c6b6)}.bfadv-quiz-next{background:var(--quiz-button,#c6c6b6)}.bfadv-quiz-answer.is-wrong{border-color:var(--quiz-wrong,#a66c59)}.bfadv-quiz-feedback,.bfadv-quiz-reward{color:var(--quiz-text,#333)}
/* Green doors before their date, muted paper once expired. */
.bfadv{background:radial-gradient(ellipse at 50% -3%,rgba(245,228,204,.20),transparent 44%),radial-gradient(ellipse at 5% 100%,rgba(23,37,28,.32),transparent 65%),linear-gradient(135deg,rgba(255,255,255,.08),transparent 50%,rgba(0,0,0,.14)),var(--bf-background)}
.bfadv .bfadv-locked{background-color:var(--bf-future,var(--bf-green));background-image:radial-gradient(ellipse at 50% 0%,rgba(255,248,232,.18),transparent 58%),radial-gradient(circle at 50% 115%,rgba(255,229,182,.10),transparent 40%),repeating-linear-gradient(40deg,rgba(255,255,255,.025) 0px,rgba(255,255,255,.025) 1px,transparent 1px,transparent 5px);border-color:#7c8b72;box-shadow:0 6px 12px rgba(31,36,27,.22),0 16px 26px rgba(31,36,27,.18),inset 0 0 0 3px rgba(226,214,179,.12);opacity:1}.bfadv .bfadv-locked::after{border-color:#7c8b72}.bfadv .bfadv-today{border-color:var(--bf-today-border,#d9c59b)}.bfadv .bfadv-locked .bfadv-number,.bfadv .bfadv-locked .bfadv-door-label,.bfadv .bfadv-today .bfadv-number,.bfadv .bfadv-today .bfadv-door-label{color:var(--bf-door-text,#fff8ec)}.bfadv .bfadv-finished{background-color:var(--bf-finished,#dbd3c4);opacity:.85}.bfadv .bfadv-finished .bfadv-number,.bfadv .bfadv-finished .bfadv-door-label{color:var(--bf-finished-text,#675e52)}

.bfadv-pdf-link{display:table;margin:16px auto;padding:12px 22px;border:1px solid #a7aa98;border-radius:3px;background:#c6c6b6;color:#333!important;text-decoration:none!important;font-weight:600}.bfadv-pdf-link:hover{filter:brightness(.96)}

/* 2.6.3: separate offer headline from price details */
.bfadv-offer-head{font-family:'Playfair Display',Georgia,serif;font-size:clamp(24px,5vw,34px);line-height:1.25;color:#50614f;margin:0 auto 20px;font-weight:500;}
.bfadv-offer-head[hidden],.bfadv-prices[hidden],.bfadv-prize-image[hidden]{display:none!important;}
.bfadv-prices del{order:-2;font-size:14px;} .bfadv-prices strong{order:-1;font-size:23px;}

/* 2.6.4: quieter hierarchy and compact, readable dialog rhythm. */
.bfadv-overlay .bfadv-modal{box-sizing:border-box;padding:36px 30px 28px;color:#333333;}
.bfadv-overlay .bfadv-modal .bfadv-sparkles{font-size:20px;margin:0 0 8px;line-height:1.2;}
.bfadv-overlay .bfadv-modal .bfadv-date{margin:0 0 18px;font-size:11px;line-height:1.5;}
.bfadv-overlay .bfadv-modal .bfadv-offer-head{font-family:Raleway,Arial,sans-serif;font-size:clamp(16px,2.5vw,20px);line-height:1.4;font-weight:700;color:#50614f;margin:0 auto 12px;max-width:420px;}
.bfadv-overlay .bfadv-modal .bfadv-title{font-size:clamp(26px,4vw,34px)!important;line-height:1.23!important;color:#333333!important;margin:0 0 10px!important;}
.bfadv-overlay .bfadv-modal .bfadv-star{margin:0 0 12px;line-height:1.2;font-size:15px;}
.bfadv-overlay .bfadv-modal .bfadv-description{font-size:15px;line-height:1.65;color:#333333;margin:0 auto 18px;padding:0;}
.bfadv-overlay .bfadv-modal .bfadv-prices{gap:4px;margin:0 auto 12px;line-height:1.35;}
.bfadv-overlay .bfadv-modal .bfadv-prices del{font-size:13px;color:#71695f;}
.bfadv-overlay .bfadv-modal .bfadv-prices strong{font-size:22px;color:#50614f;}
.bfadv-overlay .bfadv-modal .bfadv-price-note,.bfadv-overlay .bfadv-modal .bfadv-value{font-size:14px;line-height:1.55;margin:0 auto 14px;padding:0;color:#333333;}
.bfadv-overlay .bfadv-modal .bfadv-day-terms{font-size:13px;line-height:1.55;margin:0 auto 14px;padding:0;color:#555047;}
.bfadv-overlay .bfadv-modal .bfadv-deadline{padding:11px 14px;gap:4px;margin:0 auto 16px;}
.bfadv-overlay .bfadv-modal .bfadv-deadline strong{font-size:12px;letter-spacing:1.3px;}
.bfadv-overlay .bfadv-modal .bfadv-deadline span{font-size:13px;}
@media(max-width:600px){
 .bfadv-overlay .bfadv-modal{padding:30px 19px 24px;}
 .bfadv-overlay .bfadv-modal .bfadv-title{font-size:clamp(24px,6.5vw,29px)!important;}
 .bfadv-overlay .bfadv-modal .bfadv-offer-head{font-size:17px;}
 .bfadv-overlay .bfadv-modal .bfadv-date{margin-bottom:14px;}
 .bfadv-overlay .bfadv-modal .bfadv-description{font-size:14px;margin-bottom:14px;}
 .bfadv-overlay .bfadv-modal .bfadv-prices strong{font-size:21px;}
 .bfadv-overlay .bfadv-modal .bfadv-deadline{padding:9px 10px;margin-bottom:14px;}
}

/* 2.6.6: independent door and opened-card colors. */
.bfadv .bfadv-today{background-color:var(--bf-today,var(--bf-green));}
.bfadv-overlay .bfadv-modal{background-color:var(--bf-paper,#f4eee3);}

.bfadv-stats-consent { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding:12px 8px; font-size:12px; text-align:center; color:inherit; }
.bfadv-stats-consent button { font:inherit; border:1px solid currentColor; border-radius:4px; padding:5px 9px; background:transparent; color:inherit; cursor:pointer; }
.bfadv-stats-consent button[hidden] { display:none !important; }

/* 2.6.10: independent action colors and genuinely empty optional text. */
.bfadv-overlay .bfadv-cta,.bfadv-overlay .bfadv-submit{background:var(--bf-button,#50614f);border-color:var(--bf-button,#50614f);color:var(--bf-button-text,#fff)!important;}
.bfadv-overlay .bfadv-cta:hover,.bfadv-overlay .bfadv-submit:hover{background:var(--bf-button,#50614f);filter:brightness(.9);}
.bfadv-overlay .bfadv-pdf-link{background:var(--bf-pdf-button,#c6c6b6);border-color:var(--bf-pdf-button,#c6c6b6);color:var(--bf-pdf-button-text,#333)!important;}
.bfadv-door-label:empty,.bfadv-heading p:empty,.bfadv-heading h2:empty,.bfadv-footer p:empty,.bfadv-footer small:empty,.bfadv-description:empty{display:none!important;}
.bfadv-footer:not(:has(p:not(:empty),small:not(:empty))){display:none!important;}

/* 2.6.13: responsive vertical spacing; grid gaps unchanged. */
@media(min-width:981px){
 .bfadv-shell .bfadv{padding-top:clamp(18px,4vh,55px);padding-bottom:clamp(18px,3vh,44px);}
 .bfadv-shell .bfadv-heading{margin-bottom:clamp(14px,3vh,36px);}
 .bfadv-shell .bfadv-ornament{margin-top:clamp(8px,2vh,24px);}
 .bfadv-shell .bfadv-status{margin-top:clamp(12px,2vh,26px);margin-bottom:clamp(6px,1vh,17px);}
 .bfadv-shell .bfadv-footer{margin-top:clamp(8px,2vh,25px);}
}
@media(max-width:600px){
 .bfadv-shell .bfadv{padding-top:clamp(14px,3vh,25px);padding-bottom:clamp(14px,3vh,25px);}
 .bfadv-shell .bfadv-eyebrow{margin-bottom:clamp(6px,1.5vh,12px);}
}

/* 2.6.14: optional overrides; unset values keep original responsive layout. */
.bfadv-shell[data-bfadv-version] .bfadv .bfadv-status:empty{display:none!important;min-height:0!important;margin:0!important;padding:0!important;}
.bfadv-shell[data-bfadv-version] .bfadv-ornament,.bfadv-shell[data-bfadv-version] .bfadv-eyebrow,.bfadv-shell[data-bfadv-version] .bfadv-footer>span{color:var(--bf-decor,#ead6b4);}
.bfadv-shell[data-bfadv-version] .bfadv-ornament::before,.bfadv-shell[data-bfadv-version] .bfadv-ornament::after{background:linear-gradient(90deg,transparent,var(--bf-decor,#ead6b4),transparent);opacity:.62;}
@keyframes bfadv-luxePulse{0%,100%{opacity:calc(.18 * var(--bf-sparkle-opacity,1));transform:scale(.85)}50%{opacity:calc(.58 * var(--bf-sparkle-opacity,1));transform:scale(1)}}
.bfadv-luxe{opacity:calc(.55 * var(--bf-sparkle-opacity,1));}
@media(prefers-reduced-motion:reduce){.bfadv-luxe{opacity:calc(.22 * var(--bf-sparkle-opacity,1))!important;}}
@media(min-width:768px){.bfadv-shell[style*="--bf-frame-pc:"]{padding:var(--bf-frame-pc)!important;}}
@media(max-width:767px){.bfadv-shell[style*="--bf-frame-mobile:"]{padding:var(--bf-frame-mobile)!important;}.bfadv-shell[style*="--bf-mobile-padding:"] .bfadv{padding-left:var(--bf-mobile-padding)!important;padding-right:var(--bf-mobile-padding)!important;}.bfadv-shell[style*="--bf-mobile-heading:"] .bfadv-heading h2{font-size:var(--bf-mobile-heading)!important;}}

/* 2.6.15: optional prize-card styling; defaults match previous CSS. */
.bfadv-overlay .bfadv-modal .bfadv-deadline{background:var(--bf-deadline-bg,#fff8eb);border-color:var(--bf-deadline-border,#d5b99b);}
.bfadv-overlay .bfadv-modal .bfadv-deadline strong{color:var(--bf-deadline-heading,#77543c);}
.bfadv-overlay .bfadv-modal .bfadv-deadline span{color:var(--bf-deadline-text,#685748);}
.bfadv-overlay .bfadv-description>p{font:inherit;color:inherit;white-space:pre-line;margin:0!important;padding:0!important;}
.bfadv-overlay .bfadv-description>p+p{margin-top:var(--bf-paragraph-gap,12px)!important;}
@media(max-width:767px),(max-height:800px){
 .bfadv-overlay.bfadv-compact-card{padding:clamp(8px,2vh,18px);}
 .bfadv-overlay.bfadv-compact-card .bfadv-modal{max-height:calc(100dvh - 2 * clamp(8px,2vh,18px));padding-top:clamp(18px,3vh,30px);padding-bottom:clamp(16px,3vh,24px);}
 .bfadv-overlay.bfadv-compact-card .bfadv-date,.bfadv-overlay.bfadv-compact-card .bfadv-star,.bfadv-overlay.bfadv-compact-card .bfadv-description,.bfadv-overlay.bfadv-compact-card .bfadv-day-terms{margin-bottom:clamp(8px,1.5vh,14px);}
}
/* Optional presets: medium deliberately retains all existing sizes. */
.bfadv-overlay.bfadv-title-small .bfadv-modal .bfadv-title{font-size:clamp(21px,3.5vw,28px)!important}
.bfadv-overlay.bfadv-title-large .bfadv-modal .bfadv-title{font-size:clamp(27px,5vw,39px)!important;overflow-wrap:anywhere}
.bfadv-overlay.bfadv-body-small .bfadv-modal .bfadv-description{font-size:13px}
.bfadv-overlay.bfadv-body-large .bfadv-modal .bfadv-description{font-size:17px}
.bfadv-overlay.bfadv-terms-small .bfadv-modal .bfadv-day-terms,.bfadv-overlay.bfadv-terms-small .bfadv-modal .bfadv-price-note{font-size:12px}
.bfadv-overlay.bfadv-terms-large .bfadv-modal .bfadv-day-terms,.bfadv-overlay.bfadv-terms-large .bfadv-modal .bfadv-price-note{font-size:15px}
.bfadv-overlay.bfadv-price-small .bfadv-modal .bfadv-prices strong{font-size:19px}
.bfadv-overlay.bfadv-price-large .bfadv-modal .bfadv-prices strong{font-size:26px}
.bfadv-description strong,.bfadv-description b,.bfadv-day-terms strong,.bfadv-day-terms b{font-weight:700}
.bfadv-description ul,.bfadv-description ol{text-align:left;padding-left:1.5em}
.bfadv-finale{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:4}
.bfadv-finale span{position:absolute;left:var(--x);top:var(--y);font-size:var(--size);color:#ead6b4;text-shadow:0 0 8px #e8cc94;opacity:0;animation:bfadv-finale-glint 1.6s ease-out var(--delay) both}
@keyframes bfadv-finale-glint{0%{opacity:0;transform:translateY(10px) scale(.4)}35%{opacity:.8;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-30px) scale(.65)}}
@media(prefers-reduced-motion:reduce){.bfadv-finale{display:none!important}}

/* 2.6.17: HTML uses normal whitespace; paragraphs have one controlled gap. */
.bfadv-overlay .bfadv-modal .bfadv-rich,.bfadv-overlay .bfadv-modal .bfadv-rich :is(div,p,span,li){white-space:normal;}
.bfadv-overlay .bfadv-modal .bfadv-rich p{font:inherit;color:inherit;padding:0!important;margin:0!important;}
.bfadv-overlay .bfadv-modal .bfadv-rich p+p{margin-top:var(--bf-paragraph-gap,12px)!important;}
.bfadv-overlay .bfadv-modal .bfadv-rich.bfadv-day-terms p+p{margin-top:8px!important;}
.bfadv-overlay .bfadv-modal .bfadv-rich div{padding:0; margin:0;}

.bfadv-overlay .bfadv-modal .bfadv-title{white-space:pre-line;overflow-wrap:anywhere}
