.furver-cookie-banner {
    position: fixed;
    inset: auto 18px 18px;
    z-index: 100000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.furver-cookie-banner__content {
    width: min(940px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    background: rgba(12, 18, 35, 0.97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.furver-cookie-banner__copy h2 {
    margin: 0 0 6px;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 850;
}

.furver-cookie-banner__copy p {
    max-width: 590px;
    margin: 0;
    color: #b8c3d5;
    font-size: 0.92rem;
    line-height: 1.55;
}

.furver-cookie-banner__actions,
.furver-consent-media__actions,
.cookie-settings-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.furver-consent-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.furver-consent-button:hover {
    transform: translateY(-1px);
}

.furver-consent-button--primary {
    color: #07111e;
    background: linear-gradient(135deg, #67e8f9, #5eead4);
}

.furver-consent-button--secondary {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.furver-consent-button--link,
.furver-consent-media__external {
    color: #93c5fd;
    background: transparent;
}

.furver-consent-media {
    position: relative;
    width: 100%;
    min-height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 20%, rgba(45, 212, 191, 0.16), transparent 38%),
        linear-gradient(145deg, #111827, #0b1220);
}

.youtube-embed.furver-consent-media:not(.is-loaded) {
    height: auto !important;
    min-height: 250px;
    padding-top: 0 !important;
}

.furver-consent-media.is-loaded {
    min-height: 0;
    display: block;
    border: 0;
    background: #000;
}

.furver-consent-media > iframe {
    width: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.furver-consent-media__panel {
    width: min(640px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 16px;
    padding: 24px;
}

.furver-consent-media__icon {
    grid-row: span 2;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: #ef4444;
    font-size: 1.35rem;
}

.furver-consent-media__copy strong {
    display: block;
    margin-bottom: 5px;
    color: #f8fafc;
    font-size: 1rem;
}

.furver-consent-media__copy p {
    margin: 0;
    color: #b8c3d5;
    font-size: 0.88rem;
    line-height: 1.55;
}

.furver-consent-media__actions {
    grid-column: 2;
}

.furver-consent-media__external {
    padding: 8px 4px;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.cookie-settings-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-margin-top: 110px;
}

.cookie-settings-card *,
.cookie-settings-card *::before,
.cookie-settings-card *::after {
    box-sizing: border-box;
}

.cookie-settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cookie-settings-heading p {
    margin: 7px 0 0;
}

.cookie-category-list {
    display: grid;
    gap: 12px;
}

.cookie-category {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.cookie-category > * {
    min-width: 0;
}

.cookie-category strong,
.cookie-category span {
    display: block;
}

.cookie-category strong {
    color: #f8fafc;
    font-size: 0.98rem;
}

.cookie-category span {
    margin-top: 5px;
    color: #aebbd0;
    font-size: 0.87rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cookie-category-status {
    padding: 7px 10px;
    border-radius: 999px;
    color: #99f6e4;
    background: rgba(20, 184, 166, 0.13);
    font-size: 0.76rem;
    font-weight: 850;
    white-space: nowrap;
}

.cookie-switch {
    width: 48px;
    height: 27px;
    position: relative;
    appearance: none;
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: #334155;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.cookie-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.28);
    transition: transform 160ms ease;
}

.cookie-switch:checked {
    border-color: #14b8a6;
    background: #14b8a6;
}

.cookie-switch:checked::after {
    transform: translateX(21px);
}

.cookie-switch:focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.4);
    outline-offset: 3px;
}

.cookie-switch:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.cookie-settings-actions {
    margin-top: 20px;
}

.cookie-settings-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: #5eead4;
    font-size: 0.88rem;
    font-weight: 750;
}

html[data-theme="light"] .furver-cookie-banner__content {
    border-color: rgba(51, 65, 85, 0.14);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 60px rgba(51, 65, 85, 0.2);
}

html[data-theme="light"] .furver-cookie-banner__copy h2,
html[data-theme="light"] .cookie-category strong {
    color: #172033;
}

html[data-theme="light"] .furver-cookie-banner__copy p,
html[data-theme="light"] .cookie-category span {
    color: #526078;
}

html[data-theme="light"] .furver-consent-button--secondary {
    color: #243249;
    border-color: rgba(51, 65, 85, 0.17);
    background: #f1f5f9;
}

html[data-theme="light"] .furver-consent-button--link,
html[data-theme="light"] .furver-consent-media__external {
    color: #1d4ed8;
}

html[data-theme="light"] .furver-consent-button--link:hover,
html[data-theme="light"] .furver-consent-button--link:focus-visible,
html[data-theme="light"] .furver-consent-media__external:hover,
html[data-theme="light"] .furver-consent-media__external:focus-visible {
    color: #1e3a8a;
    text-decoration: underline;
}

html[data-theme="light"] .cookie-category {
    border-color: rgba(51, 65, 85, 0.12);
    background: #f8fafc;
}

@media (max-width: 760px) {
    .furver-cookie-banner {
        inset: auto 10px 10px;
    }

    .furver-cookie-banner__content {
        align-items: stretch;
        flex-direction: column;
        padding: 17px;
        border-radius: 18px;
    }

    .furver-cookie-banner__actions .furver-consent-button {
        flex: 1 1 130px;
    }

    .furver-consent-media__panel {
        grid-template-columns: 1fr;
        padding: 18px;
        text-align: center;
    }

    .furver-consent-media__icon {
        grid-row: auto;
        margin: 0 auto;
    }

    .furver-consent-media__actions {
        grid-column: 1;
        justify-content: center;
    }

    .cookie-category {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .cookie-category-status,
    .cookie-switch {
        justify-self: start;
    }

    .furver-cookie-banner__actions .furver-consent-button--link {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .furver-consent-button {
        transition: none;
    }
}
