.dux-cookie-banner,
.dux-cookie-modal,
.dux-cookie-settings-button {
    font-family: Arial, Helvetica, sans-serif;
}

.dux-cookie-banner[hidden],
.dux-cookie-modal[hidden],
.dux-cookie-settings-button[hidden] {
    display: none !important;
}

.dux-cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2147483000;
    margin: 0 auto;
    max-width: 72rem;
    border: 1px solid #d9e0e8;
    border-radius: 1rem;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 20px 60px rgba(8, 43, 84, .22);
}

.dux-cookie-banner__content {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.dux-cookie-banner__title {
    margin: 0;
    color: #082b54;
    font-size: 1.125rem;
    font-weight: 700;
}

.dux-cookie-banner__text {
    margin: .5rem 0 0;
    max-width: 52rem;
    font-size: .9375rem;
    line-height: 1.6;
}

.dux-cookie-banner a,
.dux-cookie-modal a {
    color: #075985;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dux-cookie-banner__actions,
.dux-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.dux-cookie-button {
    min-height: 2.75rem;
    cursor: pointer;
    border-radius: 999px;
    padding: .65rem 1.1rem;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.dux-cookie-button:hover {
    transform: translateY(-1px);
}

.dux-cookie-button:focus-visible,
.dux-cookie-settings-button:focus-visible,
.dux-cookie-modal__close:focus-visible,
.dux-cookie-switch input:focus-visible + span {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

.dux-cookie-button--primary {
    border: 1px solid #082b54;
    background: #082b54;
    color: #fff;
}

.dux-cookie-button--primary:hover {
    background: #061f3d;
}

.dux-cookie-button--secondary {
    border: 1px solid #94a3b8;
    background: #fff;
    color: #082b54;
}

.dux-cookie-button--secondary:hover {
    border-color: #082b54;
    background: #f8fafc;
}

.dux-cookie-settings-button {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 2147482999;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    cursor: pointer;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #082b54;
    color: #fff;
    box-shadow: 0 8px 24px rgba(8, 43, 84, .3);
}

.dux-cookie-settings-button svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: currentColor;
}

.dux-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 1rem;
}

.dux-cookie-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .68);
}

.dux-cookie-modal__panel {
    position: relative;
    width: min(100%, 44rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 1.25rem;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.dux-cookie-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.dux-cookie-modal__header h2 {
    margin: .2rem 0 0;
    color: #082b54;
    font-size: 1.5rem;
    line-height: 1.25;
}

.dux-cookie-modal__eyebrow {
    margin: 0;
    color: #b07723;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dux-cookie-modal__close {
    display: grid;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.75rem;
    line-height: 1;
}

.dux-cookie-modal__intro,
.dux-cookie-modal__details {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: .9375rem;
    line-height: 1.6;
}

.dux-cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1.5rem 1rem;
    border: 1px solid #dbe3ec;
    border-radius: .9rem;
    padding: 1rem;
}

.dux-cookie-category h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.dux-cookie-category p {
    margin: .45rem 0 0;
    font-size: .875rem;
    line-height: 1.55;
}

.dux-cookie-category--toggle {
    cursor: pointer;
}

.dux-cookie-always-on {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    padding: .35rem .65rem;
    font-size: .75rem;
    font-weight: 700;
}

.dux-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 3rem;
    height: 1.75rem;
}

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

.dux-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #94a3b8;
    transition: background-color .15s ease;
}

.dux-cookie-switch span::after {
    position: absolute;
    top: .25rem;
    left: .25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    content: "";
    transition: transform .15s ease;
}

.dux-cookie-switch input:checked + span {
    background: #082b54;
}

.dux-cookie-switch input:checked + span::after {
    transform: translateX(1.25rem);
}

.dux-cookie-modal__actions {
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

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

@media (min-width: 900px) {
    .dux-cookie-banner__content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .dux-cookie-banner__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .dux-cookie-banner {
        right: .5rem;
        bottom: .5rem;
        left: .5rem;
    }

    .dux-cookie-banner__actions,
    .dux-cookie-modal__actions {
        display: grid;
    }

    .dux-cookie-button {
        width: 100%;
    }

    .dux-cookie-category {
        align-items: stretch;
        flex-direction: column;
    }

    .dux-cookie-switch {
        align-self: flex-end;
    }
}

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