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

.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 4px 24px #00000026;
}

.cookie-consent__content {
    flex: 1;
}

.cookie-consent h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.cookie-consent p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.6;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.cookie-consent__button {
    padding: .625rem 1.25rem;
    border: 1px solid var(--main-bg-color, #a71610);
    border-radius: 6px;
    background: #fff;
    color: var(--main-bg-color, #a71610);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__button--accept {
    background: var(--main-bg-color, #a71610);
    color: #fff;
}

.cookie-consent__button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        max-height: calc(100dvh - 2rem);
        overflow-y: auto;
    }

    .cookie-consent__button {
        flex: 1;
    }
}
