.atelier-kuk-consent[hidden],
.atelier-kuk-consent-open[hidden] {
    display: none !important
}

.atelier-kuk-consent {
    position: fixed;
    z-index: 999999;
    inset: 0;
    color: var(--atelier-kuk-text)
}

.atelier-kuk-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45)
}

.atelier-kuk-consent__dialog {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-sizing: border-box;
    padding: 24px;
    background: var(--atelier-kuk-bg);
    border-radius: var(--atelier-kuk-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25)
}

.atelier-kuk-consent__dialog h2 {
    margin: 0 0 10px;
    color: inherit
}

.atelier-kuk-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    /*border-top: 1px solid currentColor*/
}

.atelier-kuk-consent__category p {
    margin: 4px 0 0
}

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

.atelier-kuk-consent button {
    appearance: none;
    border: 1px solid var(--atelier-kuk-primary);
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--atelier-kuk-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.atelier-kuk-consent .atelier-kuk-button--secondary {
    background: transparent;
    color: var(--atelier-kuk-text)
}

.atelier-kuk-consent button:focus-visible,
.atelier-kuk-consent-open:focus-visible,
.atelier-kuk-switch input:focus-visible+span {
    outline: 3px solid #1769aa;
    outline-offset: 3px
}

.atelier-kuk-switch input {
    position: absolute;
    opacity: 0
}

.atelier-kuk-switch span {
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: #777;
    position: relative
}

.atelier-kuk-switch span:after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .15s
}

.atelier-kuk-switch input:checked+span {
    background: var(--atelier-kuk-primary)
}

.atelier-kuk-switch input:checked+span:after {
    transform: translateX(20px)
}

.atelier-kuk-switch input:disabled+span {
    opacity: .65
}

.atelier-kuk-consent-open {
    position: fixed;
    z-index: 99999;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    cursor: pointer;
    background-color: var(--atelier-kuk-primary);
}

.atelier-kuk-consent-open--bottom-left {
    left: 16px
}

.atelier-kuk-consent-open--bottom-right {
    right: 16px
}

.atelier-kuk-consent-active {
    overflow: hidden
}

@media(max-width:520px) {
    .atelier-kuk-consent__dialog {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 18px
    }

    .atelier-kuk-consent__actions button {
        width: 100%
    }
}
