.ksconsent-open {
    overflow: hidden;
}

.ksconsent-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .48);
}

.ksconsent-overlay[hidden] {
    display: none;
}

.ksconsent-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .25);
    color: #222;
}

.ksconsent-dialog h2 {
    margin: 0 40px 12px 0;
    font-size: 1.5rem;
}

.ksconsent-intro {
    margin-bottom: 22px;
}

.ksconsent-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ksconsent-category {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #ddd;
}

.ksconsent-category p {
    margin: 5px 0 0;
    font-size: .92rem;
}

.ksconsent-always-on {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: bold;
}

.ksconsent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ksconsent-btn {
    padding: 9px 16px;
    border: 1px solid #777;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.ksconsent-btn-primary {
    background: #222;
    border-color: #222;
    color: #fff;
}

.ksconsent-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 25px;
}

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

.ksconsent-switch span {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: #aaa;
    cursor: pointer;
}

.ksconsent-switch span::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}

.ksconsent-switch input:checked + span::before {
    transform: translateX(21px);
}

.ksconsent-switch input:checked + span {
    background: #333;
}

@media (max-width: 600px) {
    .ksconsent-dialog {
        padding: 22px 18px;
    }

    .ksconsent-actions {
        flex-direction: column;
    }

    .ksconsent-btn {
        width: 100%;
    }
}

/* Dialog-Animation */
.ksconsent-dialog {
    transform: rotate(-4deg) scale(.92);
    opacity: 0;
    transition:
        transform .28s ease,
        opacity .22s ease;
}

.ksconsent-overlay.ksconsent-visible .ksconsent-dialog {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.ksconsent-overlay.ksconsent-closing .ksconsent-dialog {
    transform: rotate(4deg) scale(.92);
    opacity: 0;
}

/* KsConsent dialog animation */
.ksconsent-dialog {
    transform: rotate(-4deg) scale(.92);
    opacity: 0;
    transition:
        transform .28s ease,
        opacity .22s ease;
}

.ksconsent-overlay.ksconsent-visible .ksconsent-dialog {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.ksconsent-overlay.ksconsent-closing .ksconsent-dialog {
    transform: rotate(4deg) scale(.92);
    opacity: 0;
}

