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

.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 100000;
    padding: 18px;
    background: rgba(5, 25, 39, .68);
}

.cookie-consent-box {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background: #fff;
    color: #14344b;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.28);
}

.cookie-consent-kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
}

.cookie-consent h2,
.cookie-settings h2 {
    margin: 0 0 8px;
    color: #0c3859;
}

.cookie-consent p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.cookie-consent a {
    color: #005f9e;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    min-width: 330px;
}

.cookie-consent-actions .cookie-btn-secondary {
    grid-column: 1 / -1;
}

.cookie-btn {
    min-height: 44px;
    padding: 10px 15px;
    border: 2px solid #0c3859;
    border-radius: 7px;
    background: #0c3859;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn:hover {
    filter: brightness(.94);
}

.cookie-btn-secondary {
    background: #fff;
    color: #0c3859;
}

.cookie-settings {
    width: min(720px, calc(100% - 28px));
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #14344b;
    background: #fff;
}

.cookie-settings::backdrop {
    background: rgba(0,0,0,.72);
}

.cookie-settings-box {
    padding: 24px;
}

.cookie-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-settings-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f5;
    color: #0c3859;
    font-size: 28px;
    cursor: pointer;
}

.cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #dbe4e9;
}

.cookie-category strong {
    display: block;
    margin-bottom: 4px;
    color: #0c3859;
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-switch input {
    width: 20px;
    height: 20px;
}

.cookie-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #dbe4e9;
}

.cookie-settings-reopen {
    position: fixed;
    right: 14px;
    bottom: 12px;
    z-index: 90000;
    padding: 6px 10px;
    border: 1px solid #8aa2b1;
    border-radius: 5px;
    background: #fff;
    color: #14344b;
    font-size: 11px;
    cursor: pointer;
    opacity: .86;
}

.cookie-settings-reopen:hover {
    opacity: 1;
}

.consent-media-placeholder {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: #e5edef;
    color: #14344b;
}

.consent-media-placeholder p {
    margin: 0;
}

.consent-media-placeholder button {
    border: 0;
    border-radius: 6px;
    padding: 9px 13px;
    background: #0c3859;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

[data-consent-src]:not([src]) {
    display: none !important;
}

@media (max-width: 700px) {
    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent-box {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .cookie-consent-actions {
        min-width: 0;
    }

    .cookie-category {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cookie-settings-actions {
        display: grid;
    }
}
