.hp-consent-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(35rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: clamp(1.35rem, 4vw, 2.4rem);
    border: 0;
    border-top: 5px solid #f58216;
    border-radius: 1.15rem;
    background: #fff;
    color: #172f51;
    box-shadow: 0 24px 80px rgb(7 22 45 / 36%);
    overflow: auto;
}

.hp-consent-dialog:not([open]) { display: none; }

.hp-consent-dialog::backdrop {
    background: rgb(9 27 52 / 64%);
}

.hp-consent-dialog h2 {
    max-width: 22ch;
    margin: .15rem 2rem .85rem 0;
    color: #0c2b54;
    font-size: clamp(1.42rem, 5vw, 2rem);
    line-height: 1.2;
    font-weight: 750;
}

.hp-consent-dialog p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.hp-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1.5rem 0 .85rem;
}

.hp-consent-actions button {
    min-height: 3rem;
    padding: .6rem .8rem;
    border: 2px solid #123965;
    border-radius: .65rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hp-consent-accept { background: #123965; color: #fff; }
.hp-consent-accept:hover { background: #0c2b54; }
.hp-consent-reject { background: #fff; color: #123965; }
.hp-consent-reject:hover { background: #eef4fa; }
.hp-consent-actions button:disabled { cursor: wait; }

.hp-consent-close {
    position: absolute;
    inset: .65rem .65rem auto auto;
    display: grid;
    place-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #123965;
    font: inherit;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.hp-consent-close:hover { background: #eef4fa; }
.hp-consent-dialog button:focus-visible,
.hp-consent-settings-button:focus-visible { outline: 3px solid #2672bd; outline-offset: 3px; }
.hp-consent-dialog h2:focus { outline: none; }

.hp-consent-dialog .hp-consent-note { color: #4a6078; font-size: .875rem; }
.hp-consent-dialog .hp-consent-status { color: #9c2828; font-size: .875rem; }
.hp-consent-status:not(:empty) { margin-top: .5rem; }

.hp-consent-settings { margin-bottom: 1rem; }
.hp-consent-settings-button {
    padding: .4rem .8rem;
    border: 1px solid #466889;
    border-radius: .5rem;
    background: #fff;
    color: #123965;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
}

@media (max-width: 440px) {
    .hp-consent-actions { grid-template-columns: 1fr; gap: .55rem; margin-top: 1.15rem; }
}
