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

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: #F5F5F0;
    color: #115333;
    border-top: 1px solid rgba(17, 83, 51, 0.14);
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.08);
}

.cookie-consent__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 1rem clamp(1rem, 3vw, 1.8rem);
}

.cookie-consent__bar-copy {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.78rem, 1vw, 0.96rem);
    line-height: 1.65;
    font-weight: 500;
    letter-spacing: 0;
}

.cookie-consent__bar-copy a {
    color: #115333;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-consent__bar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-consent__bar-actions button,
.cookie-preferences__actions button {
    font-family: 'Poppins', sans-serif;
    border: 1px solid #115333;
    border-radius: 999px;
    cursor: pointer;
    color: #115333;
    background: #F5F5F0;
    font-weight: 600;
    letter-spacing: 0;
}

.cookie-consent__bar-actions button {
    min-width: 8.8rem;
    padding: 0.78rem 1.15rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.cookie-consent__bar-actions button[data-cookie-accept-all],
.cookie-preferences__actions button[data-cookie-accept-all] {
    background: #115333;
    color: #F5F5F0;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 3010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    padding: 1rem;
}

.cookie-preferences__panel {
    position: relative;
    width: min(100%, 620px);
    max-height: min(88vh, 760px);
    background: #F5F5F0;
    color: #115333;
    border-radius: 4px;
    padding: clamp(2rem, 5vw, 3.6rem) clamp(1.5rem, 6vw, 4.3rem) clamp(1.4rem, 4vw, 2.4rem);
    overflow: hidden;
}

.cookie-preferences__close {
    position: absolute;
    top: 1.2rem;
    right: 1.25rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 2px solid #1594d2;
    background: transparent;
    color: #0c2b1c;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.cookie-preferences__title {
    margin: 0 0 2rem;
    color: #115333;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.08;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cookie-preferences__scroll {
    max-height: min(44vh, 420px);
    overflow: auto;
    padding-right: 1rem;
}

.cookie-preferences__choice {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.cookie-preferences__choice input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.24rem;
    accent-color: #115333;
}

.cookie-preferences__choice strong {
    display: block;
    color: #115333;
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 0.55rem;
}

.cookie-preferences__choice span span {
    display: block;
    color: #115333;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

.cookie-preferences__actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.cookie-preferences__actions button {
    width: min(100%, 300px);
    justify-self: start;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
}

.cookie-settings-link {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0.2rem 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    font-weight: 300;
}

.cookie-settings-link:hover {
    color: #E2B07E;
}

@media (max-width: 760px) {
    .cookie-consent__bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cookie-consent__bar-actions {
        justify-content: flex-start;
    }

    .cookie-consent__bar-actions button {
        min-width: 0;
        flex: 1 1 0;
    }
}

@media (max-width: 480px) {
    .cookie-consent__bar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-preferences__panel {
        padding: 3.3rem 1.2rem 1.4rem;
    }

    .cookie-preferences__actions button {
        width: 100%;
    }
}
