.cookie-consent-root {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.cookie-consent-root--collect {
    z-index: 3000;
    padding: 18px;
}

.cookie-consent-root.is-hidden {
    display: none;
}

.cookie-consent-card {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(10, 20, 40, 0.1);
    box-shadow: 0 22px 42px rgba(7, 19, 39, 0.28);
    padding: 22px 22px 18px;
    pointer-events: auto;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.cookie-consent-root--collect .cookie-consent-card {
    width: min(760px, 100%);
    border-radius: 16px;
    border-color: rgba(8, 29, 63, 0.12);
    box-shadow: 0 20px 60px rgba(4, 20, 45, 0.22);
    padding: 18px;
}

.cookie-consent-root--collect:not(.is-customizing) .cookie-consent-card {
    width: min(680px, 100%);
}

.cookie-consent-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #0f254b;
}

.cookie-consent-root--collect .cookie-consent-card h3 {
    font-size: 1.05rem;
    letter-spacing: 0;
}

.cookie-consent-card p {
    margin: 0 0 12px;
    color: #344862;
}

.cookie-consent-root--collect .cookie-consent-card p {
    max-width: 64ch;
    color: #4b5c73;
    font-size: 0.94rem;
    line-height: 1.55;
}

.cookie-consent-note {
    background: #edf4ff;
    border: 1px solid #c2d9ff;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.92rem;
}

.cookie-consent-feedback {
    margin: 0 0 12px;
    background: #fff4e8;
    border: 1px solid #f1c48b;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.92rem;
    color: #7a4a11;
}

.cookie-consent-feedback.is-hidden {
    display: none;
}

.cookie-consent-options {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.cookie-consent-options[hidden] {
    display: none;
}

.cookie-consent-root--collect .cookie-consent-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.cookie-consent-option {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fafcff;
}

.cookie-consent-root--collect .cookie-consent-option {
    border-color: rgba(19, 42, 74, 0.11);
    background: #f8fbff;
    border-radius: 12px;
    padding: 9px 10px;
}

.cookie-consent-option input {
    margin-top: 4px;
}

.cookie-consent-option strong {
    display: block;
    color: #0f254b;
}

.cookie-consent-root--collect .cookie-consent-option strong {
    font-size: 0.88rem;
}

.cookie-consent-option small {
    color: #4d617a;
}

.cookie-consent-root--collect .cookie-consent-option small {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.cookie-consent-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent-root--collect .cookie-consent-actions {
    align-items: center;
    margin-top: 14px;
}

.cookie-consent-root--collect .cookie-consent-actions .btn {
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-weight: 800;
}

.cookie-consent-root--collect [data-consent-action="accept-all"] {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.cookie-consent-root--collect [data-consent-action="save"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.cookie-settings-open {
    border: 0;
    cursor: pointer;
}

.collect-legal-links .cookie-settings-open {
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cookie-consent-root {
        padding: 12px;
        align-items: flex-end;
    }

    .cookie-consent-card {
        border-radius: 14px;
        padding: 16px;
        max-height: calc(100vh - 24px);
    }

    .cookie-consent-root--collect .cookie-consent-card {
        padding: 14px;
        border-radius: 14px 14px 0 0;
        max-height: min(72vh, 520px);
    }

    .cookie-consent-root--collect .cookie-consent-options {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 100%;
    }
}
