.figuree-cookie-consent,
.figuree-cookie-consent * {
    box-sizing: border-box;
}

.figuree-cookie-consent {
    --figuree-cookie-accent: var(--figuree-accent, var(--figuree-primary, #eb2d37));
    color: #fff;
    font-family: inherit;
    position: relative;
    z-index: 99990;
}

.figuree-cookie-consent [hidden] {
    display: none !important;
}

.figuree-cookie-card,
.figuree-cookie-modal-card {
    animation: figuree-cookie-card-in .22s ease-out both;
    background: rgba(20, 20, 22, .86);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
    color: #fff;
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}

.figuree-cookie-card {
    max-height: calc(100vh - 48px);
    max-width: 600px;
    overflow-y: auto;
    padding: 26px;
    width: 100%;
}

.figuree-cookie-card h2,
.figuree-cookie-modal-card h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0 0 8px;
}

.figuree-cookie-card p,
.figuree-cookie-modal-card p {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.figuree-cookie-policy {
    color: #fff;
    display: inline-block;
    font-size: 13px;
    margin-bottom: 18px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.figuree-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.figuree-cookie-button,
.figuree-cookie-settings-button,
.figuree-cookie-close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer;
    font: inherit;
}

.figuree-cookie-button {
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    min-height: 42px;
    padding: 10px 18px;
}

.figuree-cookie-button.is-primary {
    background: var(--figuree-cookie-accent);
    border-color: transparent;
}

.figuree-cookie-button:hover,
.figuree-cookie-settings-button:hover {
    filter: brightness(1.12);
}

.figuree-cookie-button:focus-visible,
.figuree-cookie-settings-button:focus-visible,
.figuree-cookie-close:focus-visible,
.figuree-cookie-toggle input:focus-visible + span,
.figuree-cookie-policy:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.figuree-cookie-banner,
.figuree-cookie-modal {
    align-items: center;
    animation: figuree-cookie-backdrop-in .18s ease-out both;
    background: rgba(0, 0, 0, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    position: fixed;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.figuree-cookie-modal-card {
    max-height: calc(100vh - 48px);
    max-width: 600px;
    overflow-y: auto;
    padding: 24px;
    width: 100%;
}

.figuree-cookie-modal-header {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.figuree-cookie-close {
    align-items: center;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
}

.figuree-cookie-categories {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin: 8px 0 20px;
}

.figuree-cookie-category {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 0;
}

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

.figuree-cookie-category strong {
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.figuree-cookie-category div > span {
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
    line-height: 1.45;
}

.figuree-cookie-toggle {
    flex: 0 0 44px;
    position: relative;
}

.figuree-cookie-toggle input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.figuree-cookie-toggle input + span {
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    display: block;
    height: 24px;
    position: relative;
    transition: background .18s ease;
    width: 44px;
}

.figuree-cookie-toggle input + span::after {
    background: #fff;
    border-radius: 50%;
    content: '';
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .18s ease;
    width: 18px;
}

.figuree-cookie-toggle input:checked + span {
    background: var(--figuree-cookie-accent);
}

.figuree-cookie-toggle input:checked + span::after {
    transform: translateX(20px);
}

.figuree-cookie-toggle input:disabled + span {
    cursor: not-allowed;
    opacity: .72;
}

.figuree-cookie-settings-button {
    background: rgba(20, 20, 22, .88);
    border-radius: 999px;
    bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 12px;
    right: 18px;
    padding: 10px 14px;
    position: fixed;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

@keyframes figuree-cookie-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes figuree-cookie-card-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .figuree-cookie-card {
        max-height: calc(100vh - 28px);
        padding: 20px;
        width: calc(100% - 28px);
    }

    .figuree-cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .figuree-cookie-button {
        width: 100%;
    }

    .figuree-cookie-banner,
    .figuree-cookie-modal {
        padding: max(14px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom));
    }

    .figuree-cookie-modal-card {
        max-height: calc(100vh - 24px);
        padding: 20px;
        width: calc(100% - 28px);
    }

    .figuree-cookie-settings-button {
        bottom: max(14px, env(safe-area-inset-bottom));
        right: 14px;
        max-width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .figuree-cookie-consent *,
    .figuree-cookie-consent *::before,
    .figuree-cookie-consent *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
