html {
    overflow-x: hidden;
}

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

.beaxis-consent,
.beaxis-consent-panel {
    --beaxis-navy: #102139;
    --beaxis-teal: #009f9c;
    --beaxis-lime: #b1e243;
    --beaxis-bg: #f3f6f9;
    --beaxis-surface: #ffffff;
    --beaxis-text: #102139;
    color: var(--beaxis-text);
    font-family: inherit;
}

.beaxis-consent {
    position: fixed;
    z-index: 2147483000;
    right: 1rem;
    bottom: 1rem;
    width: min(31rem, calc(100vw - 2rem));
    padding: 1.25rem;
    border: 1px solid rgba(16, 33, 57, .14);
    border-radius: 1rem;
    background: var(--beaxis-surface);
    box-shadow: 0 1.25rem 3.5rem rgba(16, 33, 57, .2);
}

.beaxis-consent__eyebrow {
    margin: 0 0 .35rem;
    color: var(--beaxis-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.beaxis-consent h2,
.beaxis-consent-panel h2 {
    margin: 0;
    color: var(--beaxis-navy);
    font-size: 1.2rem;
    line-height: 1.25;
}

.beaxis-consent p {
    margin: .65rem 0 0;
    color: #42536a;
    font-size: .92rem;
    line-height: 1.55;
}

.beaxis-consent a {
    color: var(--beaxis-teal);
    font-weight: 700;
}

.beaxis-consent__actions,
.beaxis-consent-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.beaxis-consent button,
.beaxis-consent-panel button {
    min-height: 2.7rem;
    padding: .65rem .9rem;
    border: 1px solid var(--beaxis-navy);
    border-radius: .65rem;
    background: var(--beaxis-surface);
    color: var(--beaxis-navy);
    cursor: pointer;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.beaxis-consent button:hover,
.beaxis-consent-panel button:hover {
    border-color: var(--beaxis-teal);
    color: var(--beaxis-teal);
}

.beaxis-consent button:focus-visible,
.beaxis-consent-panel button:focus-visible,
.beaxis-cookie-link:focus-visible,
.beaxis-consent input:focus-visible {
    outline: 3px solid rgba(177, 226, 67, .75);
    outline-offset: 2px;
}

.beaxis-consent button[data-consent-action="accept"],
.beaxis-consent-panel button[data-consent-action="accept"] {
    border-color: var(--beaxis-teal);
    background: var(--beaxis-teal);
    color: #fff;
}

.beaxis-consent button[data-consent-action="accept"]:hover,
.beaxis-consent-panel button[data-consent-action="accept"]:hover {
    border-color: var(--beaxis-navy);
    background: var(--beaxis-navy);
    color: #fff;
}

.beaxis-consent-panel {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(16, 33, 57, .34);
}

.beaxis-consent-panel__dialog {
    width: min(43rem, 100%);
    max-height: min(44rem, calc(100vh - 2rem));
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 1rem;
    background: var(--beaxis-surface);
    box-shadow: 0 1.5rem 4rem rgba(16, 33, 57, .28);
}

.beaxis-consent-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.beaxis-consent-panel__close {
    width: 2.4rem;
    min-height: 2.4rem !important;
    padding: 0 !important;
    border: 0 !important;
    color: #5d6d80 !important;
    font-size: 1.4rem !important;
}

.beaxis-consent-panel__intro {
    margin: .65rem 0 1rem;
    color: #42536a;
    line-height: 1.55;
}

.beaxis-consent-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e1e7ed;
}

.beaxis-consent-category h3 {
    margin: 0 0 .25rem;
    color: var(--beaxis-navy);
    font-size: 1rem;
}

.beaxis-consent-category p {
    margin: 0;
    color: #526277;
    font-size: .88rem;
    line-height: 1.45;
}

.beaxis-consent-category__state {
    flex: 0 0 auto;
    color: #526277;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.beaxis-consent-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 3rem;
    height: 1.7rem;
}

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

.beaxis-consent-toggle span {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: #cbd4df;
    cursor: pointer;
    transition: background-color .2s ease;
}

.beaxis-consent-toggle span::after {
    position: absolute;
    top: .2rem;
    left: .2rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 33, 57, .25);
    content: "";
    transition: transform .2s ease;
}

.beaxis-consent-toggle input:checked + span {
    background: var(--beaxis-teal);
}

.beaxis-consent-toggle input:checked + span::after {
    transform: translateX(1.3rem);
}

.beaxis-cookie-link {
    display: inline-block;
    margin-left: .8rem;
    color: var(--beaxis-teal);
    font-size: .82rem;
    font-weight: 700;
}

.beaxis-attendance-button {
    margin-left: .8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--beaxis-teal);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
}

.beaxis-attendance-button:hover {
    color: var(--beaxis-navy);
}

.beaxis-mobile-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: .4rem;
}

.beaxis-mobile-footer-actions .beaxis-cookie-link,
.beaxis-mobile-footer-actions .beaxis-attendance-button {
    margin-left: 0;
}

@media (max-width: 575px) {
    .beaxis-consent {
        right: .65rem;
        bottom: .65rem;
        width: calc(100vw - 1.3rem);
        padding: 1rem;
    }

    .beaxis-consent__actions,
    .beaxis-consent-panel__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .beaxis-consent__actions button,
    .beaxis-consent-panel__actions button {
        width: 100%;
    }

    .beaxis-consent-category {
        align-items: center;
    }

    .beaxis-cookie-link,
    .beaxis-attendance-button {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beaxis-consent button,
    .beaxis-consent-panel button,
    .beaxis-consent-toggle span,
    .beaxis-consent-toggle span::after {
        transition: none;
    }
}
