/* Match IntygAvDoktorn: centered desktop dialog, mobile bottom sheet. */
.ab-consent{box-sizing:border-box;border:0;color:#173248;background:#fff;font-family:Lexend,Arial,sans-serif;font-size:12px;line-height:1.5;padding:0;width:540px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);border-radius:18px;box-shadow:0 8px 40px #132e4233;position:fixed;inset:0;margin:auto;overflow:auto}
.ab-consent::backdrop{background:rgba(15,27,36,.48);animation:ab-consent-fade .2s ease-out}
.ab-consent[open]{animation:ab-consent-fade .2s ease-out}
html:has(.ab-consent[open]){overflow:hidden}
.ab-consent-brand{padding:16px 20px 6px;font-size:10px;font-weight:600;letter-spacing:.09em;color:#375a71}
.ab-consent-copy{padding:8px 20px}
.ab-consent h2{font-size:14px;font-weight:600;line-height:1.5;margin:0 0 6px;letter-spacing:normal;color:#173248}
.ab-consent p{font-size:12px;line-height:1.5;margin:0}
.ab-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 20px 20px}
.ab-consent button{font:inherit;cursor:pointer;min-height:44px;padding:10px 12px;border:1px solid #173248;border-radius:8px;color:#fff;background:#173248;margin:0}
.ab-consent button:hover{background:#284d66}
.ab-consent .ab-consent-customize{grid-column:1/-1;min-height:32px;padding:4px 0;text-align:left;border:0;background:transparent;color:#173248;text-decoration:underline}
.ab-consent [data-consent=save]{grid-column:1/-1}
.ab-consent [hidden]{display:none!important}
.ab-consent :focus-visible,.ab-cookie-settings:focus-visible{outline:3px solid #4b9ac7;outline-offset:3px}
.ab-consent a{color:inherit;text-decoration:underline}
#ab-consent-details{padding-top:14px}
#ab-consent-details>p{margin-top:12px;font-size:11px}
.ab-consent-option{display:flex;gap:20px;align-items:center;padding:12px 0;border-top:1px solid #dae5ec;cursor:pointer}
.ab-consent-option span{flex:1}.ab-consent-option strong,.ab-consent-option small{display:block}.ab-consent-option small{font-size:11px;line-height:1.5;margin-top:4px}
.ab-consent-option input{width:20px;height:20px;accent-color:#173248;flex-shrink:0}
.ab-footer .ab-cookie-settings{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;font:inherit;font-size:12px;color:inherit;background:transparent;border:0;border-radius:8px;cursor:pointer}
.ab-cookie-settings .ui-cookie{width:18px;height:18px;--ui-icon:url('assets/icons/cookie.svg')}
.ab-footer .if-mobile-cookies{display:none}.ab-footer .if-bottom{gap:18px}
.ab-webinar-player{width:100%;aspect-ratio:16/9}.ab-webinar-player>iframe{width:100%;height:100%;border:0}
@media(max-width:600px){.ab-consent{width:100%;max-width:100%;max-height:calc(100dvh - 16px);inset:auto 0 0;margin:0;border-radius:14px 14px 0 0}.ab-consent-actions{gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.ab-consent-brand{padding-top:12px}}
@media(max-width:800px){.ab-footer .if-mobile-cookies{display:flex;justify-content:center;padding:10px 0;margin-bottom:20px;border-bottom:1px solid rgba(205,227,241,.18)}.ab-footer .if-bottom .ab-cookie-settings{display:none}}
@keyframes ab-consent-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.ab-consent[open],.ab-consent::backdrop{animation:none}}
