.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
    padding: .9rem 1rem .9rem 1.15rem;
    color: #17344d;
    background: rgba(255, 253, 249, .98);
    border: 1px solid rgba(201, 139, 32, .45);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(12, 34, 52, .18);
    font-family: Montserrat, Arial, sans-serif;
}

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

.cookie-consent__copy {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
}

.cookie-consent__copy a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: .55rem;
}

.cookie-consent__button {
    min-height: 40px;
    padding: .65rem .9rem;
    border: 1px solid #17344d;
    border-radius: 999px;
    color: #17344d;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cookie-consent__button--accept {
    color: #fff;
    background: #17344d;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
    background: #0d2538;
}

@media (max-width: 640px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
        padding: .9rem;
    }

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

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