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

.cookie-consent {
    position: fixed;
    z-index: 1100;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1120px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 24px;
    color: #38362d;
    background: #fffef3;
    border: 1px solid #d2c900;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    font: 16px/1.5 Roboto, Arial, sans-serif;
}

.cookie-consent__text {
    flex: 1;
}

.cookie-consent__text h2 {
    margin: 0 0 8px;
    font: 700 21px/1.25 Roboto, Arial, sans-serif;
}

.cookie-consent__text p {
    margin: 0 0 8px;
}

.cookie-consent__text a {
    color: #545000;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 185px;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 10px 16px;
    color: #38362d;
    background: #fff;
    border: 1px solid #77735c;
    border-radius: 5px;
    font: 700 15px/1.4 Roboto, Arial, sans-serif;
    cursor: pointer;
}

.cookie-consent__button--accept {
    background: #e3da00;
    border-color: #8a8300;
}

.cookie-consent__button:hover {
    filter: brightness(0.96);
}

.cookie-consent__button:focus-visible,
.cookie-consent__text a:focus-visible,
.cookie-preferences:focus-visible {
    outline: 3px solid #1668ad;
    outline-offset: 3px;
}

.cookie-preferences {
    margin-top: 10px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 640px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
        max-height: calc(100dvh - 20px);
    }

    .cookie-consent__actions {
        flex-direction: row;
        min-width: 0;
    }

    .cookie-consent__button {
        flex: 1;
    }
}
