/* consent.css — privacy consent banner / settings dialog (see /JS/consent.js) */

.hus-consent {
    position: fixed;
    right: 20px; bottom: 20px; left: auto;
    z-index: 2147483000;          /* above UserWay and most overlays */
    display: none;
    width: 400px;
    max-width: calc(100% - 40px);
}
.hus-consent.is-open { display: block; }

.hus-consent__panel {
    max-width: none;
    margin: 0;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    font-family: "Open Sans", Arial, sans-serif;
}
.hus-consent__body { padding: 22px 24px 8px; }
.hus-consent__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #ab000b; }
.hus-consent__text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: #333; }
.hus-consent__text a { color: #ab000b; text-decoration: underline; }

.hus-consent__opts { display: block; }
.hus-consent__row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-top: 1px solid #eee; cursor: pointer;
}
.hus-consent__row:first-child { border-top: 0; }
.hus-consent__row input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.hus-consent__row-label { display: flex; flex-direction: column; }
.hus-consent__row-label strong { font-size: 13.5px; }
.hus-consent__row-label small { font-size: 12px; color: #666; }

.hus-consent__actions {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
    padding: 14px 24px 20px;
}
.hus-consent__btn {
    appearance: none; border: 0; border-radius: 6px;
    padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
.hus-consent__btn--primary { background: #ab000b; color: #fff; }
.hus-consent__btn--primary:hover { background: #8a000a; }
.hus-consent__btn--ghost { background: #f1f1f1; color: #333; }
.hus-consent__btn--ghost:hover { background: #e4e4e4; }

/* Persistent re-open trigger (fallback if no footer link is present).
   Pinned bottom-right so it doesn't collide with the UserWay accessibility
   widget, which sits in the bottom-left corner. */
.hus-consent-link {
    position: fixed; right: 14px; bottom: 14px; z-index: 2147482000;
    background: rgba(17,17,17,0.78); color: #fff; border: 0;
    border-radius: 6px; padding: 7px 12px; font-size: 12px; cursor: pointer;
    font-family: "Open Sans", Arial, sans-serif;
}
.hus-consent-link:hover { background: #ab000b; }

/* Visible keyboard focus indicator (WCAG 2.4.7 Focus Visible). High-contrast
   blue reads clearly against the white panel, the red/grey buttons, and the
   dark re-open link. */
.hus-consent__btn:focus-visible,
.hus-consent-link:focus-visible,
.hus-consent__row input:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}
/* The dialog container is focused programmatically on open so its accessible
   name (aria-labelledby) is announced; it's not an interactive control, so
   suppress the container outline to avoid a ring around the whole card. */
.hus-consent:focus { outline: none; }

@media (max-width: 600px) {
    .hus-consent { right: 10px; left: 10px; bottom: 10px; width: auto; max-width: none; }
    .hus-consent__actions { justify-content: stretch; }
    .hus-consent__btn { flex: 1 1 auto; text-align: center; }
}
