.kle-consent-open {
    overflow: hidden;
}

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

.kle-consent-overlay[hidden],
.kle-consent-settings[hidden],
.kle-consent-close[hidden] {
    display: none;
}

.kle-consent-dialog {
    box-sizing: border-box;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 4px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.35);
}

.kle-consent-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.kle-consent-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
}

.kle-consent-dialog p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.55;
}

.kle-consent-category {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid #ccc;
    background: #f7f7f7;
}

.kle-consent-category strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.kle-consent-status {
    padding: 10px 12px;
    border-left: 4px solid #176b49;
    background: #eef6f2;
    font-weight: 700;
}

.kle-consent-button[aria-pressed="true"] {
    outline: 3px solid #176b49;
    outline-offset: 2px;
}

.kle-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.kle-consent-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid #176b49;
    border-radius: 3px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.kle-consent-button-primary {
    background: #176b49;
    color: #fff;
}

.kle-consent-button-secondary {
    background: #fff;
    color: #176b49;
}

.kle-consent-button:hover,
.kle-consent-button:focus {
    outline: 3px solid #f4c542;
    outline-offset: 2px;
}

.kle-consent-close {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.kle-consent-settings:focus,
.kle-consent-close:hover,
.kle-consent-close:focus {
    outline: 3px solid #f4c542;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .kle-consent-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .kle-consent-dialog {
        width: 100%;
        max-height: 90vh;
        padding: 22px;
        border-radius: 4px 4px 0 0;
    }

    .kle-consent-actions {
        display: grid;
    }
}
