/* =========================================================
   PowerWareHouse Consent Manager
   ========================================================= */

.pw-consent {
    position: fixed;
    inset: 0;
    z-index: 99999;
    font-family: inherit;
}

.pw-consent[hidden] {
    display: none !important;
}

.pw-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pw-consent__dialog {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);

    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    background: #fff;
    border-radius: 12px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25);

    padding: 28px;
}

.pw-consent__content h2,
.pw-consent__settings h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.pw-consent__content p,
.pw-consent__category p {
    margin: 0;
    line-height: 1.55;
}

.pw-consent__actions,
.pw-consent__settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pw-consent__button {
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 15px;
}

.pw-consent__button--primary {
    background: #0d6efd;
    color: #fff;
}

.pw-consent__button--secondary {
    background: #e9ecef;
    color: #212529;
}

.pw-consent__button:hover {
    opacity: 0.9;
}

.pw-consent__category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 0;
    border-bottom: 1px solid #dee2e6;
}

.pw-consent__category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 3px;
}

.pw-consent__always-active {
    white-space: nowrap;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 600px) {

    .pw-consent__dialog {
        bottom: 0;
        width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        padding: 22px;
    }

    .pw-consent__actions,
    .pw-consent__settings-actions {
        flex-direction: column;
    }

    .pw-consent__button {
        width: 100%;
    }
}