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

.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    padding: 16px;
    background: linear-gradient(180deg, rgba(13, 20, 24, 0), rgba(13, 20, 24, 0.42));
}

.cookie-consent__panel {
    width: min(960px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 18px 52px rgba(18, 23, 27, 0.24);
    color: #202428;
}

.cookie-consent__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.cookie-consent__eyebrow {
    margin: 0 0 6px;
    color: #5d6b63;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cookie-consent h2 {
    margin: 0 0 8px;
    color: #202428;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.cookie-consent p {
    max-width: 680px;
    margin: 0;
    color: #3e4741;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.cookie-consent__actions--split {
    justify-content: space-between;
}

.cookie-consent__button,
.cookie-consent__close {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #1f2a30;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2a30;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__close:hover,
.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible {
    outline: 2px solid #2f6f73;
    outline-offset: 2px;
}

.cookie-consent__button--primary {
    border-color: #2f6f73;
    background: #2f6f73;
    color: #ffffff;
}

.cookie-consent__preferences {
    display: grid;
    gap: 14px;
}

.cookie-consent__preferences-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-consent__choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d7ded8;
    border-radius: 8px;
    background: #ffffff;
}

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

.cookie-consent__choice strong {
    margin-bottom: 4px;
    color: #202428;
    font-size: 0.96rem;
}

.cookie-consent__choice small {
    color: #52605a;
    font-size: 0.86rem;
    line-height: 1.45;
}

.cookie-consent__choice input {
    width: 22px;
    height: 22px;
    accent-color: #2f6f73;
}

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

    .cookie-consent__panel {
        width: min(100%, calc(100vw - 20px));
        padding: 16px;
    }

    .cookie-consent__intro,
    .cookie-consent__preferences-head,
    .cookie-consent__choice {
        grid-template-columns: 1fr;
    }

    .cookie-consent__preferences-head {
        display: grid;
    }

    .cookie-consent__actions,
    .cookie-consent__actions--split {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .cookie-consent__button,
    .cookie-consent__close {
        width: 100%;
    }
}
