.cookie-banner[hidden],
.cookie-modal-backdrop[hidden],
[data-cookie-category][hidden],
[data-cookie-placeholder][hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px;
    background: rgba(27, 19, 17, 0.97);
    color: #fff;
    box-shadow: 0 -14px 40px rgba(31, 18, 14, 0.28);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    margin: 0 auto;
    gap: 24px;
}

.cookie-banner h2,
.cookie-modal h2,
.cookie-category h3 {
    margin: 0;
}

.cookie-banner h2 {
    color: #fff;
    font-size: 1.15rem;
}

.cookie-banner p {
    max-width: 760px;
    margin: 7px 0 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-banner__actions,
.cookie-modal__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.cookie-choice-button,
.cookie-configure-button {
    min-height: 46px;
    padding: 11px 18px;
    border: 2px solid #d88a79;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.cookie-choice-button {
    background: #d88a79;
    color: #211713;
}

.cookie-configure-button {
    background: transparent;
    color: inherit;
}

.cookie-choice-button:hover,
.cookie-choice-button:focus-visible,
.cookie-configure-button:hover,
.cookie-configure-button:focus-visible,
.cookie-modal__close:focus-visible {
    outline: 3px solid #f5b5a7;
    outline-offset: 2px;
}

.cookie-modal-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(22, 15, 13, 0.7);
}

.cookie-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 4px;
    background: #fffaf8;
    color: #251916;
    box-shadow: 0 25px 80px rgba(24, 13, 10, 0.35);
}

.cookie-modal h2 {
    padding-right: 42px;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.cookie-modal > p {
    color: #5f4e49;
    line-height: 1.6;
}

.cookie-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #251916;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 18px;
    gap: 18px;
    border: 1px solid rgba(193, 110, 93, 0.28);
    background: #fff;
}

.cookie-category p,
.cookie-category small {
    display: block;
    margin: 6px 0 0;
    color: #65534e;
    line-height: 1.45;
}

.cookie-category__status {
    flex: 0 0 auto;
    color: #675048;
    font-size: 0.75rem;
    font-weight: 800;
}

.cookie-category--switch {
    position: relative;
    cursor: pointer;
}

.cookie-category--switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #8b817d;
    transition: background 0.2s ease;
}

.cookie-switch::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform 0.2s ease;
}

.cookie-category--switch input:checked + .cookie-switch {
    background: #a8503e;
}

.cookie-category--switch input:checked + .cookie-switch::after {
    transform: translateX(22px);
}

.cookie-category--switch input:focus-visible + .cookie-switch {
    outline: 3px solid #c16e5d;
    outline-offset: 3px;
}

.cookie-modal__policy a {
    color: #8b3e2f;
}

.cookie-modal__actions {
    justify-content: flex-end;
    margin-top: 22px;
}

.cookie-modal .cookie-configure-button {
    color: #251916;
}

.cookie-noscript {
    position: fixed;
    z-index: 1200;
    right: 12px;
    bottom: 12px;
    max-width: 460px;
    margin: 0;
    padding: 14px;
    background: #251916;
    color: #fff;
}

body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .cookie-banner__content {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cookie-banner__actions,
    .cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-banner__actions .cookie-choice-button,
    .cookie-banner__actions .cookie-configure-button {
        width: 100%;
    }

    .cookie-category {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-switch,
    .cookie-switch::after {
        transition: none;
    }
}
