.xbau-consent-root [hidden],
.xbau-consent-reopen[hidden] {
    display: none !important;
}

.xbau-consent-banner,
.xbau-consent-modal,
.xbau-consent-reopen {
    box-sizing: border-box;
    color: #4D4D4F;
    font-family: inherit;
}

.xbau-consent-banner {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(77, 77, 79, .18);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 12px 42px rgba(35, 47, 50, .2);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    left: 50%;
    max-width: 1180px;
    padding: 22px 24px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    z-index: 10020;
}

.xbau-consent-banner__copy {
    max-width: 720px;
}

.xbau-consent-banner h2,
.xbau-consent-modal h2 {
    color: #4D4D4F;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.xbau-consent-banner p,
.xbau-consent-modal p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.xbau-consent-banner a {
    color: #1E99A4;
    font-weight: 600;
    text-decoration: underline;
}

.xbau-consent-banner__actions,
.xbau-consent-modal__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.xbau-consent-button,
.xbau-consent-reopen,
.xbau-consent-modal__close {
    cursor: pointer;
    font: inherit;
}

.xbau-consent-root button.xbau-consent-button {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500 !important;
    line-height: 20px;
    min-height: 48px;
    padding: 13px 20px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.xbau-consent-root button.xbau-consent-button--primary {
    background: #1E99A4 !important;
    border-color: #1E99A4 !important;
    color: #fff !important;
}

.xbau-consent-root button.xbau-consent-button--primary:hover,
.xbau-consent-root button.xbau-consent-button--primary:focus-visible {
    background: #0d606a !important;
    border-color: #0d606a !important;
    color: #fff !important;
    text-decoration: none !important;
}

.xbau-consent-root button.xbau-consent-button--secondary {
    background: #fff !important;
    border-color: #1E99A4 !important;
    color: #1E99A4 !important;
}

.xbau-consent-root button.xbau-consent-button--secondary:hover,
.xbau-consent-root button.xbau-consent-button--secondary:focus-visible {
    background: #1E99A4 !important;
    border-color: #1E99A4 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.xbau-consent-root button.xbau-consent-button:focus-visible {
    outline: 2px solid #4D4D4F;
    outline-offset: 3px;
}

.xbau-consent-button--link {
    background: transparent;
    color: #1E99A4;
    padding-left: 8px;
    padding-right: 8px;
    text-decoration: underline;
}

.xbau-consent-overlay {
    align-items: center;
    background: rgba(33, 39, 41, .64);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10030;
}

.xbau-consent-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
    max-height: calc(100vh - 40px);
    max-width: 640px;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    width: 100%;
}

.xbau-consent-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #4D4D4F;
    display: flex;
    font-size: 28px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 14px;
    width: 40px;
}

.xbau-consent-modal__close:hover,
.xbau-consent-modal__close:focus-visible {
    background: #f1f4f4;
    color: #1E99A4;
}

.xbau-consent-modal > p {
    margin-bottom: 20px;
    padding-right: 24px;
}

.xbau-consent-category {
    align-items: center;
    border-top: 1px solid rgba(156, 158, 161, .4);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 17px 0;
}

.xbau-consent-category h3,
.xbau-consent-category strong {
    color: #4D4D4F;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.xbau-consent-category p,
.xbau-consent-category > span > span {
    color: #68696b;
    display: block;
    font-size: 13px;
    line-height: 1.45;
}

.xbau-consent-category__required {
    color: #1E99A4;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.xbau-consent-switch {
    flex: 0 0 auto;
    height: 28px;
    position: relative;
    width: 50px;
}

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

.xbau-consent-switch span {
    background: #9C9EA1;
    border-radius: 999px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color .18s ease;
}

.xbau-consent-switch span::before {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    content: '';
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .18s ease;
    width: 22px;
}

.xbau-consent-switch input:checked + span {
    background: #1E99A4;
}

.xbau-consent-switch input:checked + span::before {
    transform: translateX(22px);
}

.xbau-consent-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(30, 153, 164, .25);
}

.xbau-consent-modal__actions {
    border-top: 1px solid rgba(156, 158, 161, .4);
    margin-top: 2px;
    padding-top: 20px;
}

.xbau-consent-reopen {
    background: transparent;
    border: 0;
    color: #4D4D4F;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0;
    min-height: 44px;
    padding: 8px 0;
    position: static;
    text-align: left;
}

.xbau-consent-reopen:hover,
.xbau-consent-reopen:focus,
.xbau-consent-reopen:focus-visible {
    color: #1E99A4;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
    text-decoration: none;
}

@media (max-width: 900px) {
    .xbau-consent-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .xbau-consent-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .xbau-consent-banner {
        border-radius: 12px 12px 0 0;
        bottom: 0;
        left: 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        transform: none;
        width: 100%;
    }

    .xbau-consent-banner h2,
    .xbau-consent-modal h2 {
        font-size: 20px;
    }

    .xbau-consent-banner__actions,
    .xbau-consent-modal__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .xbau-consent-button {
        width: 100%;
    }

    .xbau-consent-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .xbau-consent-modal {
        border-radius: 14px 14px 0 0;
        max-height: 92vh;
        padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .xbau-consent-category {
        gap: 12px;
    }
}

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