.cookie-consent,
.cookie-consent * {
    box-sizing: border-box;
}

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

.cookie-consent {
    position: fixed;
    z-index: 100000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
    pointer-events: none;
    color: #32261e;
    font-family: Roboto, Arial, sans-serif;
}

.cookie-consent__panel {
    position: relative;
    width: 100%;
    width: min(100%, 920px);
    max-width: 920px;
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid rgba(117, 82, 55, .2);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 42px rgba(42, 29, 20, .25);
    pointer-events: auto;
}

.cookie-consent__title {
    margin: 0 40px 8px 0;
    color: #32261e;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.cookie-consent__description {
    max-width: 780px;
    margin: 0;
    color: #62554c;
    font-size: 15px;
    line-height: 1.55;
}

.cookie-consent__link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a673f;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent__agreement {
    max-height: 34vh;
    margin-top: 16px;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid #e9e1db;
    background: #faf8f6;
    color: #51443b;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent__agreement > :first-child {
    margin-top: 0;
}

.cookie-consent__agreement > :last-child {
    margin-bottom: 0;
}

.cookie-consent__warning,
.cookie-consent__error {
    color: #a12e27;
}

.cookie-consent__error {
    margin: 14px 0 0;
    font-size: 14px;
}

.cookie-consent__categories {
    margin-top: 20px;
    border-top: 1px solid #e9e1db;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e9e1db;
    cursor: pointer;
}

.cookie-consent__category strong {
    display: block;
    margin-bottom: 4px;
    color: #32261e;
    font-size: 15px;
    font-weight: 500;
}

.cookie-consent__category p,
.cookie-consent__category-description {
    display: block;
    margin: 0;
    color: #76685e;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent__always-on {
    flex: 0 0 auto;
    color: #77685d;
    font-size: 13px;
    text-transform: uppercase;
}

.cookie-consent__switch {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

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

.cookie-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #c9c1bb;
    transition: background-color .2s ease;
}

.cookie-consent__switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    content: '';
    transition: transform .2s ease;
}

.cookie-consent__switch input:checked + span {
    background: #a87349;
}

.cookie-consent__switch input:checked + span::after {
    transform: translateX(20px);
}

.cookie-consent__switch input:focus-visible + span {
    outline: 2px solid #32261e;
    outline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-consent__button,
.b-footer__cookie-settings {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.cookie-consent__button {
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid #a87349;
    border-radius: 2px;
    background: #fff;
    color: #815333;
    font-size: 14px;
    transition: background-color .2s ease, color .2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    background: #f4ece6;
}

.cookie-consent__button--primary {
    background: #a87349;
    color: #fff;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
    background: #8e5f3c;
}

.cookie-consent__button--text {
    border-color: transparent;
    color: #62554c;
    text-decoration: underline;
}

.cookie-consent__close {
    position: absolute;
    top: 15px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #62554c;
    font-size: 30px;
    line-height: 32px;
    cursor: pointer;
}

.b-footer__cookie-settings {
    display: inline-block;
    margin: 0 8px;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__panel {
        max-height: calc(100vh - 20px);
        padding: 20px 16px;
    }

    .cookie-consent__title {
        font-size: 20px;
    }

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

    .cookie-consent__category {
        gap: 14px;
    }
}
