/* DPDP Consent Details modal (Views/Shared/_DpdpConsentModal.cshtml).
   Reusable across any page via <partial name="_DpdpConsentModal" /> -
   opened/closed by wwwroot/js/dpdp-consent.js, not by any Bootstrap
   data-toggle wiring, so it has its own small, self-contained stylesheet
   rather than depending on Bootstrap's modal CSS. */

.dpdp-consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dpdp-consent-overlay.open {
    display: flex;
}

.dpdp-consent-modal {
    background: #fff;
    width: 1000px;
    max-width: 95vw;
    height: 90vh;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header - fixed, never scrolls */
.dpdp-consent-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(90deg, #962402, #6e1a01);
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.dpdp-consent-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.dpdp-consent-header-title i {
    font-size: 20px;
}

.dpdp-consent-close {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.dpdp-consent-close:hover,
.dpdp-consent-close:focus-visible {
    background: rgba(255, 255, 255, 0.15);
}

/* Body - the only part that scrolls */
.dpdp-consent-body {
    flex: 1 1 auto;
    height: calc(90vh - 135px);
    max-height: calc(90vh - 135px);
    overflow-y: auto;
    overflow-x: auto;
    padding: 24px;
    color: #363636;
}

.dpdp-consent-body h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1c1b1b;
}

.dpdp-consent-body h4:not(:first-child) {
    margin-top: 22px;
}

.dpdp-consent-body p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.dpdp-consent-body ul {
    margin: 0 0 8px;
    padding-left: 22px;
}

.dpdp-consent-body li {
    font-size: 14px;
    line-height: 1.7;
}

/* Footer - fixed-height in practice, but allowed to grow (min-height, wrap)
   now that it can hold more than one button (e.g. "Consent Details" +
   "I Understand" in _DpdpConsentModal.cshtml's footer) on narrow screens. */
.dpdp-consent-footer {
    flex: 0 0 auto;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Locks background scroll while the modal is open - see dpdp-consent.js */
body.dpdp-consent-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .dpdp-consent-modal {
        width: 95vw;
    }
}

@media (max-width: 575px) {
    .dpdp-consent-modal {
        width: 95vw;
        height: 90vh;
    }

    .dpdp-consent-header {
        padding: 14px 16px;
    }

    .dpdp-consent-header-title {
        font-size: 16px;
    }

    .dpdp-consent-body {
        padding: 16px;
    }

    .dpdp-consent-footer {
        padding: 0 16px;
    }
}
