.cookie-consent {
    position: fixed;
    z-index: 5000;
    right: clamp(0.75rem, 2.2vw, 2rem);
    bottom: clamp(0.75rem, 2.2vw, 2rem);
    left: clamp(0.75rem, 2.2vw, 2rem);
    max-width: 760px;
    margin-left: auto;
    color: #f7f8f6;
    background:
        linear-gradient(135deg, rgba(102, 200, 200, 0.08), transparent 42%),
        #10242d;
    border: 1px solid rgba(200, 155, 99, 0.55);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    font-family: 'Inter', sans-serif;
}

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

.cookie-consent__inner {
    padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.cookie-consent__content {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.cookie-consent__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #66c8c8;
    background: rgba(102, 200, 200, 0.09);
    border: 1px solid rgba(102, 200, 200, 0.22);
}

.cookie-consent__icon svg {
    width: 23px;
    height: 23px;
}

.cookie-consent__title {
    margin: 0 0 0.45rem;
    color: #f7f8f6;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.cookie-consent__description {
    max-width: 66ch;
    margin: 0;
    color: #c1ced2;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent__description a {
    color: #e2bc86;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.cookie-consent__button {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cookie-consent__button:focus-visible,
.footer-cookie-settings:focus-visible {
    outline: 2px solid #66c8c8;
    outline-offset: 3px;
}

.cookie-consent__button--primary {
    color: #171008;
    background: #c89b63;
    border-color: #c89b63;
}

.cookie-consent__button--primary:hover {
    background: #e2bc86;
    border-color: #e2bc86;
}

.cookie-consent__button--ghost {
    color: #f7f8f6;
    background: transparent;
    border-color: rgba(193, 206, 210, 0.34);
}

.cookie-consent__button--ghost:hover {
    background: rgba(247, 248, 246, 0.07);
    border-color: rgba(193, 206, 210, 0.7);
}

.cookie-consent__preferences {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(193, 206, 210, 0.18);
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    margin: 0;
    color: #f7f8f6;
    cursor: pointer;
}

.cookie-consent__option input {
    width: 17px;
    height: 17px;
    margin: 0.18rem 0 0;
    accent-color: #c89b63;
}

.cookie-consent__option input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cookie-consent__option span {
    display: grid;
    gap: 0.12rem;
}

.cookie-consent__option strong {
    font-size: 0.88rem;
}

.cookie-consent__option small {
    color: #9eb1b8;
    font-size: 0.8rem;
    line-height: 1.45;
}

.cookie-consent__preferences-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.footer-cookie-settings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 580px) {
    .cookie-consent__content {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .cookie-consent__icon {
        width: 34px;
        height: 34px;
    }

    .cookie-consent__icon svg {
        width: 20px;
        height: 20px;
    }

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

    .cookie-consent__button {
        width: 100%;
    }

    .cookie-consent__button--primary {
        order: -1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cookie-consent:not([hidden]) {
        animation: cookie-consent-enter 260ms ease-out both;
    }

    @keyframes cookie-consent-enter {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
