.fsa-consent {
    --fsa-consent-bg: rgba(17, 23, 36, 0.82);
    --fsa-consent-surface: var(--fsa-theme-surface, #ffffff);
    --fsa-consent-surface-alt: var(--fsa-theme-surface-alt, #f4f6fb);
    --fsa-consent-text: var(--fsa-theme-text, #1e293b);
    --fsa-consent-muted: var(--fsa-theme-muted, #475569);
    --fsa-consent-border: var(--fsa-theme-border, #cbd5e1);
    --fsa-consent-accent: var(--fsa-theme-accent, #26989a);
    --fsa-consent-primary-text: var(--fsa-theme-button-primary-text, #ffffff);
    --fsa-consent-shadow: 0 16px 42px rgba(15, 23, 42, 0.26);
    --fsa-consent-z: 9999;
}

.fsa-consent.is-hidden {
    display: none;
}

.fsa-consent.is-visible {
    display: block;
}

.fsa-consent__banner {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    width: min(96vw, 64rem);
    background: var(--fsa-consent-surface);
    color: var(--fsa-consent-text);
    border: 1px solid var(--fsa-consent-border);
    border-radius: 1rem;
    box-shadow: var(--fsa-consent-shadow);
    z-index: var(--fsa-consent-z);
    padding: 1.1rem 1.1rem 1rem;
}

.fsa-consent__title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.fsa-consent__intro {
    margin: 0 0 0.9rem;
    color: var(--fsa-consent-muted);
    line-height: 1.5;
}

.fsa-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fsa-consent__actions .btn {
    flex: 1 1 12rem;
}

.fsa-consent__legal {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: var(--fsa-consent-muted);
}

.fsa-consent__legal a {
    color: inherit;
    font-weight: 600;
    text-decoration-color: color-mix(in srgb, var(--fsa-consent-accent) 60%, transparent);
}

.fsa-consent__legal a:hover,
.fsa-consent__legal a:focus-visible {
    color: var(--fsa-consent-accent);
}

.fsa-consent__legal-sep {
    margin: 0 0.3rem;
}

.fsa-consent__modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--fsa-consent-bg);
    z-index: calc(var(--fsa-consent-z) + 1);
}

.fsa-consent__modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--fsa-consent-z) + 2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.fsa-consent__modal-dialog {
    width: min(96vw, 52rem);
    max-height: 90vh;
    overflow: auto;
    background: var(--fsa-consent-surface);
    border: 1px solid var(--fsa-consent-border);
    border-radius: 1rem;
    box-shadow: var(--fsa-consent-shadow);
}

.fsa-consent__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1rem 0.5rem;
}

.fsa-consent__modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.fsa-consent__close {
    border: 0;
    background: transparent;
    color: var(--fsa-consent-text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.35rem;
}

.fsa-consent__close:hover,
.fsa-consent__close:focus-visible {
    background: color-mix(in srgb, var(--fsa-consent-text) 10%, var(--fsa-consent-surface));
    outline: none;
}

.fsa-consent__modal-body {
    padding: 0.75rem 1rem;
}

.fsa-consent__category {
    background: var(--fsa-consent-surface-alt);
    border: 1px solid var(--fsa-consent-border);
    border-radius: 0.75rem;
    padding: 0.8rem;
}

.fsa-consent__category + .fsa-consent__category {
    margin-top: 0.75rem;
}

.fsa-consent__category-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.fsa-consent__category-label input {
    accent-color: var(--fsa-consent-accent);
}

.fsa-consent__category p {
    margin: 0;
    color: var(--fsa-consent-muted);
    line-height: 1.45;
}

.fsa-consent__category.is-attention {
    border-color: color-mix(in srgb, var(--fsa-consent-accent) 74%, var(--fsa-consent-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fsa-consent-accent) 18%, transparent);
}

.fsa-consent__warning {
    margin-top: 0.4rem !important;
    font-size: 0.92rem;
}

.fsa-consent__modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0 1rem 1rem;
}

.fsa-consent__modal-actions .btn {
    flex: 1 1 11rem;
}

.fsa-consent .btn.btn-primary {
    background-color: var(--fsa-consent-accent);
    border-color: var(--fsa-consent-accent);
    color: var(--fsa-consent-primary-text);
}

.fsa-consent .btn.btn-primary:hover,
.fsa-consent .btn.btn-primary:focus-visible,
.fsa-consent .btn.btn-primary:active {
    background-color: color-mix(in srgb, var(--fsa-consent-accent) 86%, var(--fsa-consent-surface));
    border-color: color-mix(in srgb, var(--fsa-consent-accent) 86%, var(--fsa-consent-surface));
    color: var(--fsa-consent-primary-text);
}


.fsa-consent .btn.btn-outline-primary {
    background-color: transparent;
    border-color: color-mix(in srgb, var(--fsa-consent-accent) 72%, var(--fsa-consent-border));
    color: var(--fsa-consent-accent);
}

.fsa-consent .btn.btn-outline-primary:hover,
.fsa-consent .btn.btn-outline-primary:focus-visible,
.fsa-consent .btn.btn-outline-primary:active {
    background-color: color-mix(in srgb, var(--fsa-consent-accent) 16%, var(--fsa-consent-surface));
    border-color: color-mix(in srgb, var(--fsa-consent-accent) 82%, var(--fsa-consent-border));
    color: var(--fsa-consent-accent);
}

.fsa-consent .btn.btn-outline-secondary {
    background-color: transparent;
    border-color: color-mix(in srgb, var(--fsa-consent-text) 22%, var(--fsa-consent-border));
    color: var(--fsa-consent-text);
}

.fsa-consent .btn.btn-outline-secondary:hover,
.fsa-consent .btn.btn-outline-secondary:focus-visible,
.fsa-consent .btn.btn-outline-secondary:active {
    background-color: color-mix(in srgb, var(--fsa-consent-text) 8%, var(--fsa-consent-surface));
    border-color: color-mix(in srgb, var(--fsa-consent-text) 34%, var(--fsa-consent-border));
    color: var(--fsa-consent-text);
}

.fsa-consent-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid color-mix(in srgb, var(--fsa-consent-border) 80%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--fsa-consent-surface) 94%, transparent);
    color: var(--fsa-consent-text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.48rem 0.82rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fsa-consent-trigger:hover,
.fsa-consent-trigger:focus-visible {
    background: var(--fsa-consent-surface);
    border-color: color-mix(in srgb, var(--fsa-consent-accent) 34%, var(--fsa-consent-border));
    color: var(--fsa-consent-text);
    outline: none;
}

.fsa-consent-trigger__icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
}

.fsa-consent-trigger__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fsa-consent-trigger--floating {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--scrolltop-space, 20px) + 4.25rem);
    z-index: calc(var(--fsa-consent-z) + 3);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

[data-bs-theme="light"] .fsa-consent-trigger--floating {
    background: color-mix(in srgb, var(--fsa-theme-surface, #ffffff) 94%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-border, #cbd5e1) 85%, transparent);
    color: var(--fsa-theme-text, #1e293b);
}

[data-bs-theme="light"] .fsa-consent-trigger--floating:hover,
[data-bs-theme="light"] .fsa-consent-trigger--floating:focus-visible {
    background: var(--fsa-theme-surface, #ffffff);
    border-color: color-mix(in srgb, var(--fsa-theme-accent, #26989a) 38%, var(--fsa-theme-border, #cbd5e1));
    color: var(--fsa-theme-text, #1e293b);
}

[data-bs-theme="dark"] .fsa-consent-trigger--floating {
    background: color-mix(in srgb, var(--fsa-theme-surface, #171c28) 94%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-border, #47516a) 85%, transparent);
    color: var(--fsa-theme-text, #e7edf8);
}

[data-bs-theme="dark"] .fsa-consent-trigger--floating:hover,
[data-bs-theme="dark"] .fsa-consent-trigger--floating:focus-visible {
    background: var(--fsa-theme-surface, #171c28);
    border-color: color-mix(in srgb, var(--fsa-theme-accent, #5fc3d4) 38%, var(--fsa-theme-border, #47516a));
    color: var(--fsa-theme-text, #e7edf8);
}

.fsa-consent__banner:not([hidden]) ~ .fsa-consent-trigger--floating {
    opacity: 0;
    pointer-events: none;
}

.fsa-footer__bottom-consent {
    margin: 0 0 0.9rem;
}

.fsa-footer .fsa-consent-trigger--footer {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #ffffff) 10%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #ffffff) 36%, transparent);
    color: var(--fsa-theme-footer-text, #ffffff);
}

.fsa-footer .fsa-consent-trigger--footer:hover,
.fsa-footer .fsa-consent-trigger--footer:focus-visible {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #ffffff) 18%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #ffffff) 56%, transparent);
    color: var(--fsa-theme-footer-text, #ffffff);
}

[data-bs-theme="light"] .fsa-footer .fsa-consent-trigger--footer {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #1e293b) 6%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #1e293b) 28%, transparent);
    color: var(--fsa-theme-footer-text, #1e293b);
}

[data-bs-theme="light"] .fsa-footer .fsa-consent-trigger--footer:hover,
[data-bs-theme="light"] .fsa-footer .fsa-consent-trigger--footer:focus-visible {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #1e293b) 12%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #1e293b) 42%, transparent);
    color: var(--fsa-theme-footer-text, #1e293b);
}

[data-bs-theme="dark"] .fsa-footer .fsa-consent-trigger--footer {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #e7edf8) 10%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #e7edf8) 36%, transparent);
    color: var(--fsa-theme-footer-text, #e7edf8);
}

[data-bs-theme="dark"] .fsa-footer .fsa-consent-trigger--footer:hover,
[data-bs-theme="dark"] .fsa-footer .fsa-consent-trigger--footer:focus-visible {
    background: color-mix(in srgb, var(--fsa-theme-footer-text, #e7edf8) 18%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-footer-text, #e7edf8) 56%, transparent);
    color: var(--fsa-theme-footer-text, #e7edf8);
}

#page-header .navigation-quicktools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: 0.25rem;
}

#page-header .navigation-quicktools .navigation-quicktool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
}

#page-header .navigation-quicktools .navigation-quicktool__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.fsa-consent-trigger--mobile,
.fsa-theme-trigger--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 10%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 42%, transparent);
    color: var(--fsa-theme-header-text, #ffffff);
    line-height: 1;
}

#page-header .fsa-consent-trigger--mobile:hover,
#page-header .fsa-consent-trigger--mobile:focus-visible,
#page-header .fsa-theme-trigger--mobile:hover,
#page-header .fsa-theme-trigger--mobile:focus-visible {
    background: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 18%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 62%, transparent);
    color: var(--fsa-theme-header-text, #ffffff);
}

#page-header .navigation-language .btn-language .language-flag__badge {
    color: var(--fsa-theme-header-text, #ffffff);
    background: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 10%, transparent);
    border-color: color-mix(in srgb, var(--fsa-theme-header-text, #ffffff) 55%, transparent);
}

#page-header .navigation-language {
    position: relative;
}

#page-header .navigation-language .dropdown-menu {
    z-index: 1200;
}

#page-header .navigation-language .dropdown:hover > .dropdown-menu,
#page-header .navigation-language .dropdown:focus-within > .dropdown-menu,
#page-header .navigation-language .dropdown-menu.show {
    display: block;
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.language-flag__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.language-flag__icon .icon,
.language-flag__icon .icon-markup {
    display: block;
    line-height: 0;
}

.language-flag__icon img,
.language-flag__icon svg {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

.language-flag__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.fsa-embed {
    --fsa-embed-surface: var(--fsa-element-surface, var(--fsa-theme-surface, #ffffff));
    --fsa-embed-surface-alt: var(--fsa-element-overlay, var(--fsa-theme-surface-alt, #f4f6fb));
    --fsa-embed-border: var(--fsa-element-border, var(--fsa-theme-border, #cbd5e1));
    --fsa-embed-accent: var(--fsa-element-accent, var(--fsa-theme-accent, #26989a));
    --fsa-embed-heading: var(--fsa-element-headline, var(--fsa-theme-text, #1e293b));
    --fsa-embed-text: var(--fsa-element-text, var(--fsa-theme-text, #1e293b));
    --fsa-embed-muted: var(--fsa-theme-muted, #475569);
    --fsa-embed-visual-top: color-mix(in srgb, var(--fsa-embed-accent) 16%, var(--fsa-embed-surface) 84%);
    --fsa-embed-visual-mid: color-mix(in srgb, var(--fsa-embed-accent) 12%, var(--fsa-embed-surface-alt) 88%);
    --fsa-embed-visual-bottom: color-mix(in srgb, var(--fsa-theme-bg, #f4f6fb) 86%, var(--fsa-embed-surface) 14%);
    --fsa-embed-overlay-start: rgba(255, 255, 255, 0.08);
    --fsa-embed-overlay-end: color-mix(in srgb, var(--fsa-embed-surface) 88%, transparent);
    --fsa-embed-badge-bg: color-mix(in srgb, var(--fsa-embed-surface) 84%, transparent);
    --fsa-embed-badge-border: color-mix(in srgb, var(--fsa-embed-border) 88%, transparent);
    --fsa-embed-badge-text: var(--fsa-embed-heading);
    --fsa-embed-play-bg: color-mix(in srgb, var(--fsa-embed-surface) 96%, transparent);
    --fsa-embed-play-color: var(--fsa-embed-accent);
    --fsa-embed-title-color: var(--fsa-embed-heading);
    --fsa-embed-message-color: color-mix(in srgb, var(--fsa-embed-text) 82%, transparent);
    border: 1px solid var(--fsa-consent-border);
    border-radius: 0.8rem;
    background: var(--fsa-embed-surface);
    color: var(--fsa-embed-text);
    overflow: hidden;
}

[data-bs-theme="dark"] .fsa-embed {
    --fsa-embed-visual-top: color-mix(in srgb, var(--fsa-embed-accent) 16%, #18202f 84%);
    --fsa-embed-visual-mid: color-mix(in srgb, var(--fsa-embed-surface-alt) 72%, #212a3d 28%);
    --fsa-embed-visual-bottom: color-mix(in srgb, var(--fsa-theme-bg, #111622) 84%, #101722 16%);
    --fsa-embed-overlay-start: rgba(9, 13, 20, 0.1);
    --fsa-embed-overlay-end: rgba(9, 13, 20, 0.78);
    --fsa-embed-badge-bg: rgba(255, 255, 255, 0.14);
    --fsa-embed-badge-border: rgba(255, 255, 255, 0.24);
    --fsa-embed-badge-text: #ffffff;
    --fsa-embed-play-bg: rgba(255, 255, 255, 0.92);
    --fsa-embed-play-color: #0f1720;
    --fsa-embed-title-color: #ffffff;
    --fsa-embed-message-color: rgba(255, 255, 255, 0.88);
}

.fsa-embed__visual {
    position: relative;
    min-height: clamp(18rem, 40vw, 30rem);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--fsa-embed-accent) 22%, transparent), transparent 42%),
        linear-gradient(140deg, var(--fsa-embed-visual-top) 0%, var(--fsa-embed-visual-mid) 52%, var(--fsa-embed-visual-bottom) 100%);
    background-size: cover;
    background-position: center;
}

.fsa-embed__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(180deg, var(--fsa-embed-overlay-start) 0%, var(--fsa-embed-overlay-end) 100%);
}

.fsa-embed__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--fsa-embed-badge-bg);
    border: 1px solid var(--fsa-embed-badge-border);
    color: var(--fsa-embed-badge-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fsa-embed__play {
    width: clamp(3.8rem, 7vw, 4.75rem);
    height: clamp(3.8rem, 7vw, 4.75rem);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fsa-embed-play-color);
    background: var(--fsa-embed-play-bg);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.24);
}

.fsa-embed__play svg {
    width: 54%;
    height: 54%;
    margin-left: 0.2rem;
}

.fsa-embed__body {
    max-width: min(100%, 42rem);
}

.fsa-embed__title {
    margin: 0;
    color: var(--fsa-embed-title-color);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.fsa-embed__message {
    margin: 0.7rem 0 0;
    color: var(--fsa-embed-message-color);
    line-height: 1.55;
    max-width: 50rem;
}

.fsa-embed__actions {
    margin-top: 1rem;
}

.fsa-embed__actions .btn {
    min-width: 14rem;
}

.fsa-embed__status {
    margin: 0;
    padding: 1rem 1.25rem 1.15rem;
    border-top: 1px solid color-mix(in srgb, var(--fsa-embed-border) 78%, transparent);
    color: var(--fsa-embed-muted);
    line-height: 1.5;
}

.embed > .fsa-embed,
.embed-responsive > .fsa-embed {
    width: 100%;
    height: 100%;
}

.embed-responsive > .fsa-embed {
    position: absolute;
    inset: 0;
}

.fsa-embed iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
    border-radius: 0.75rem;
}

.embed-responsive > .fsa-embed iframe {
    min-height: 100%;
    height: 100%;
    border-radius: 0;
}

@media (max-width: 767px) {
    .fsa-consent__banner {
        bottom: 0.6rem;
        width: calc(100vw - 1.2rem);
        border-radius: 0.85rem;
        padding: 0.95rem;
    }

    .fsa-consent-trigger--floating {
        right: 0.75rem;
        bottom: calc(var(--scrolltop-space, 20px) + 3.85rem);
        padding-inline: 0.7rem;
    }

    .fsa-consent__actions .btn,
    .fsa-consent__modal-actions .btn {
        flex-basis: 100%;
    }

    .fsa-embed iframe {
        min-height: 220px;
    }

    .fsa-embed__overlay {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .fsa-embed__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 992px) {
    .fsa-consent-trigger--mobile,
    .fsa-theme-trigger--mobile {
        display: none !important;
    }
}
