.wf24-consent-overlay[hidden] {
    display: none !important;
}

body.wf24-consent-open {
    overflow: hidden;
}

.wf24-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(12, 15, 19, .72);
    backdrop-filter: blur(3px);
}

.wf24-consent-dialog {
    width: min(760px, 100%);
    max-width: 100%;
    max-height: calc(100vh - 48px);
    padding: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 16px;
    background: #fff;
    color: #25282d;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
    overflow-wrap: anywhere;
}

.wf24-consent-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.wf24-consent-heading > div {
    min-width: 0;
}

.wf24-consent-kicker {
    display: block;
    margin-bottom: 5px;
    color: #766400;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wf24-consent-dialog h2 {
    margin: 0 0 10px;
    color: #1d2024;
    font-size: clamp(23px, 4vw, 30px);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.wf24-consent-dialog > p {
    margin: 0 0 20px;
    color: #59616d;
    font-size: 14px;
    line-height: 1.65;
}

.wf24-consent-close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dde4;
    border-radius: 50%;
    background: #fff;
    color: #34383e;
    cursor: pointer;
}

.wf24-consent-close:hover,
.wf24-consent-close:focus-visible {
    border-color: #a88f00;
    background: #fff8cc;
}

.wf24-consent-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.wf24-consent-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fafbfc;
}

.wf24-consent-option > div {
    min-width: 0;
}

.wf24-consent-option strong,
.wf24-consent-option span {
    display: block;
}

.wf24-consent-option strong {
    margin-bottom: 4px;
    color: #22262b;
    font-size: 14px;
}

.wf24-consent-option > div > span {
    color: #67707c;
    font-size: 12px;
    line-height: 1.55;
}

.wf24-consent-switch {
    position: relative;
    display: grid;
    grid-template-columns: 46px;
    gap: 3px;
    justify-items: center;
    margin: 0;
    cursor: pointer;
}

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

.wf24-consent-switch > span {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #c5cbd3;
    transition: background .2s ease;
}

.wf24-consent-switch > span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.wf24-consent-switch input:checked + span {
    background: #9a8200;
}

.wf24-consent-switch input:checked + span::after {
    transform: translateX(20px);
}

.wf24-consent-switch input:focus-visible + span {
    outline: 3px solid rgba(182, 155, 0, .45);
    outline-offset: 3px;
}

.wf24-consent-switch input:disabled + span {
    background: #42474e;
    opacity: .86;
}

.wf24-consent-switch small {
    color: #5d6570;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.wf24-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.wf24-consent-actions .wf24-btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

.wf24-btn-outline-dark {
    border-color: #33383e;
    background: #fff;
    color: #25282d;
}

.wf24-btn-outline-dark:hover,
.wf24-btn-outline-dark:focus {
    background: #25282d;
    color: #fff;
}

.wf24-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.wf24-consent-links a {
    color: #6f5d00;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575px) {
    .wf24-consent-overlay {
        padding: 8px;
    }

    .wf24-consent-dialog {
        max-height: calc(100vh - 16px);
        padding: 23px 17px;
        border-radius: 13px;
    }

    .wf24-consent-option {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .wf24-consent-switch {
        grid-template-columns: 46px auto;
        align-items: center;
        justify-items: start;
    }

    .wf24-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wf24-consent-actions .wf24-btn {
        width: 100%;
    }
}
