.cookie-consent {
    position: relative;
    z-index: 10050;
}

.cookie-consent__banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
    color: #f8fafc;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35);
}

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

.cookie-consent__copy h2,
.cookie-consent__dialog h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.cookie-consent__copy p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.cookie-consent__copy a,
.cookie-consent__note a {
    color: #bfdbfe;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
    min-width: 280px;
}

.cookie-consent__actions button,
.cookie-consent__dialog-actions button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent__choice {
    color: #111827;
    background: #f8fafc;
    border: 1px solid #f8fafc;
}

.cookie-consent__customize {
    grid-column: 1 / -1;
    color: #f8fafc;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.cookie-consent__dialog {
    width: min(680px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 28px));
    padding: 0;
    color: #172033;
    background: #ffffff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.38);
}

.cookie-consent__dialog::backdrop {
    background: rgba(15, 23, 42, 0.66);
}

.cookie-consent__dialog-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 22px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent__eyebrow {
    margin: 0 0 4px;
    color: #526076;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cookie-consent__close {
    width: 44px;
    height: 44px;
    color: #243047;
    background: #f3f4f6;
    border: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-consent__purposes {
    display: grid;
    gap: 12px;
    padding: 18px 22px;
}

.cookie-consent__purpose {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 15px;
    border: 1px solid #d7dde7;
    border-radius: 12px;
}

.cookie-consent__purpose strong,
.cookie-consent__purpose small {
    display: block;
}

.cookie-consent__purpose small {
    margin-top: 4px;
    color: #526076;
    line-height: 1.45;
}

.cookie-consent__purpose input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.cookie-consent__purpose--required {
    background: #f8fafc;
}

.cookie-consent__dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 22px 12px;
}

.cookie-consent__save,
.cookie-consent__reject {
    color: #ffffff;
    background: #1f4f8a;
    border: 1px solid #1f4f8a;
}

.cookie-consent__note {
    margin: 0;
    padding: 0 22px 22px;
    color: #526076;
    font-size: 0.9rem;
}

.footer__privacy-settings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cookie-consent__banner {
        grid-template-columns: 1fr;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        padding: 16px;
    }

    .cookie-consent__actions {
        min-width: 0;
    }

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