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

body.bwt-cookie-consent-open {
    overflow: hidden;
}

.bwt-cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    color: #20242b;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.bwt-cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 20, 24, 0.58);
    backdrop-filter: blur(2px);
}

.bwt-cookie-consent__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #d8d5d1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 20, 24, 0.28);
    outline: none;
}

.bwt-cookie-consent__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #20242b;
    cursor: pointer;
    font: 400 32px/38px Arial, sans-serif;
    text-align: center;
}

.bwt-cookie-consent__close:hover,
.bwt-cookie-consent__close:focus-visible {
    background: #f1efec;
}

.bwt-cookie-consent__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
    gap: 32px;
    align-items: center;
}

.bwt-cookie-consent__copy {
    min-width: 0;
}

.bwt-cookie-consent__eyebrow {
    margin: 0 0 6px;
    color: #b3362c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bwt-cookie-consent h2 {
    margin: 0 0 10px;
    color: #20242b;
    font-family: "Bricolage Grotesque", "Manrope", Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.bwt-cookie-consent__copy > p:last-child {
    max-width: 650px;
    margin: 0;
    color: #5e6670;
    font-size: 15px;
}

.bwt-cookie-consent a {
    color: #8f2b24;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bwt-cookie-consent__actions,
.bwt-cookie-consent__settings-actions {
    display: flex;
    gap: 10px;
}

.bwt-cookie-consent__actions {
    flex-direction: column;
}

.bwt-cookie-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font: 800 14px/1.2 "Manrope", Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bwt-cookie-button--primary {
    border-color: #b3362c;
    background: #b3362c;
    color: #fff;
}

.bwt-cookie-button--primary:hover,
.bwt-cookie-button--primary:focus-visible {
    border-color: #8f2b24;
    background: #8f2b24;
    color: #fff;
}

.bwt-cookie-button--secondary {
    border-color: #bdb8b2;
    background: #fff;
    color: #20242b;
}

.bwt-cookie-button--secondary:hover,
.bwt-cookie-button--secondary:focus-visible {
    border-color: #20242b;
    background: #f5f3f0;
    color: #20242b;
}

.bwt-cookie-button--text {
    min-height: 36px;
    padding-block: 6px;
    background: transparent;
    color: #5e6670;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bwt-cookie-button--text:hover,
.bwt-cookie-button--text:focus-visible {
    color: #20242b;
}

.bwt-cookie-button:focus-visible,
.bwt-cookie-consent__back:focus-visible,
.bwt-cookie-consent__close:focus-visible,
.bwt-cookie-settings-link:focus-visible {
    outline: 3px solid rgba(179, 54, 44, 0.28);
    outline-offset: 2px;
}

.bwt-cookie-consent__settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-right: 42px;
}

.bwt-cookie-consent__back {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #5e6670;
    cursor: pointer;
    font: 800 14px/1.2 "Manrope", Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bwt-cookie-categories {
    margin: 22px 0;
    border-top: 1px solid #dedbd7;
}

.bwt-cookie-category {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #dedbd7;
    cursor: pointer;
}

.bwt-cookie-category > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.bwt-cookie-category strong {
    color: #20242b;
    font-size: 15px;
    font-weight: 800;
}

.bwt-cookie-category small {
    color: #68717c;
    font-size: 13px;
    line-height: 1.45;
}

.bwt-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
}

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

.bwt-cookie-switch > span {
    position: absolute;
    inset: 0;
    border: 1px solid #aaa49e;
    border-radius: 999px;
    background: #cbc7c2;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.bwt-cookie-switch > span::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(18, 20, 24, 0.24);
    content: "";
    transition: transform 160ms ease;
}

.bwt-cookie-switch input:checked + span {
    border-color: #287d46;
    background: #287d46;
}

.bwt-cookie-switch input:checked + span::before {
    transform: translateX(20px);
}

.bwt-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(179, 54, 44, 0.28);
    outline-offset: 2px;
}

.bwt-cookie-switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.72;
}

.bwt-cookie-consent__settings-actions {
    justify-content: flex-end;
}

.bwt-cookie-settings-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
    .bwt-cookie-consent {
        padding: 12px;
    }

    .bwt-cookie-consent__dialog {
        max-height: calc(100vh - 24px);
        padding: 22px 18px;
    }

    .bwt-cookie-consent__intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bwt-cookie-consent h2 {
        padding-right: 32px;
        font-size: 24px;
    }

    .bwt-cookie-consent__settings-head {
        display: block;
        padding-right: 34px;
    }

    .bwt-cookie-consent__back {
        margin-top: 6px;
    }

    .bwt-cookie-consent__settings-actions {
        flex-direction: column-reverse;
    }

    .bwt-cookie-consent__settings-actions .bwt-cookie-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bwt-cookie-button,
    .bwt-cookie-switch > span,
    .bwt-cookie-switch > span::before {
        transition: none;
    }
}
