/* Form internals use Fluent Forms' existing typography and validation styles. */
body.breakdance .sv-nl-slot fieldset {grid-template-columns:minmax(0,1fr);gap:14px;}
body.breakdance .sv-nl-slot .sv-newsletter-email {grid-column:1;grid-row:1;}
body.breakdance .sv-nl-slot .sv-newsletter-consent {grid-column:1;grid-row:2;font-size:12px;line-height:1.6;}
body.breakdance .sv-nl-slot .ff_submit_btn_wrapper {grid-column:1;grid-row:3;}
body.breakdance .sv-nl-slot .ff-btn-submit {width:100%;white-space:normal;}
body.breakdance .bde-popup:has(.sv-newsletter-popup) {padding:24px;z-index:100000;}
body.breakdance .sv-newsletter-popup {max-height:calc(100dvh - 48px);}
body.breakdance .sv-newsletter-popup .breakdance-popup-content {overscroll-behavior:contain;}
body.breakdance .sv-newsletter-popup :focus-visible {outline:3px solid #9ad1ff;outline-offset:3px;}
/* Focus lands on the title (and on the main content after closing) only so screen readers start
   there. They aren't controls, so they get no ring; buttons, links and fields keep theirs. */
body.breakdance #sv-nl-title:focus,body.breakdance main#sisalto[tabindex="-1"]:focus {outline:none;}
html.sv-newsletter-popup-open {overflow:hidden;}
body.breakdance .sv-nl-expand {display:none;}
/* Item 1.8 (D6): on phones the offer is a bottom sheet. It opens compact (photo strip with
   the discount, the title and one button, at most 40% of the screen) and grows to the form
   only when the visitor taps "Tilaa uutiskirje". */
@media(max-width:767px) {
 body.breakdance .bde-popup:has(.sv-newsletter-popup) {flex-direction:column;justify-content:flex-end;align-items:center;padding:0;background:rgba(2,8,17,.55);}
 body.breakdance .sv-newsletter-popup {width:100%;max-width:100%;max-height:calc(100dvh - 24px);}
 body.breakdance .sv-newsletter-popup .breakdance-popup-content {width:100%;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);}
 body.breakdance .sv-newsletter-popup .sv-nl-visual {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px;row-gap:2px;min-height:0;padding:14px 60px 14px 18px;border-radius:16px 16px 0 0;background-position:center 16%;}
 body.breakdance .sv-newsletter-popup .sv-nl-visual .sv-nl-discount {grid-row:1 / span 2;margin:0;font-size:46px;line-height:.95;letter-spacing:-1.5px;}
 body.breakdance .sv-newsletter-popup .sv-nl-visual .sv-nl-kicker,body.breakdance .sv-newsletter-popup .sv-nl-visual .sv-nl-caption {margin:0;font-size:12px;line-height:1.35;}
 body.breakdance .sv-newsletter-popup .sv-nl-copy {gap:12px;padding:16px 18px 18px;}
 body.breakdance .sv-newsletter-popup .sv-nl-copy>.sv-nl-kicker {display:none;}
 body.breakdance .sv-newsletter-popup .sv-nl-heading {margin:0;font-size:26px;line-height:1.05;}
 body.breakdance .sv-nl-slot fieldset {gap:12px;}
 body.breakdance .sv-newsletter-popup.is-compact {max-height:40dvh;}
 body.breakdance .sv-newsletter-popup.is-compact :is(.sv-nl-description,.sv-nl-slot,.sv-nl-note) {display:none;}
 body.breakdance .sv-newsletter-popup.is-compact .sv-nl-expand {display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;padding:12px 20px;border:0;border-radius:25px;background:#0b4991;color:#fff;font-family:inherit;font-size:16px;font-weight:700;line-height:1.2;cursor:pointer;}
 body.breakdance .sv-newsletter-popup.is-compact .sv-nl-expand:hover {background:#1766b7;}
}
