/**
 * hyndle-consent.css — Cookie Consent (free) banner. Rendered once per page
 * by Hyndle\Consent\CookieConsentFrontend::render(); hyndle-consent.js
 * un-hides it after checking for an existing consent cookie.
 */
.hy-consent {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hy-consent[hidden] { display: none; }

.hy-consent--bar.hy-consent--top { top: 0; }
.hy-consent--bar.hy-consent--bottom { bottom: 0; }

.hy-consent--popup {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
}

.hy-consent__panel {
    padding: 18px 20px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
}
.hy-consent--popup .hy-consent__panel {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}

.hy-consent--light .hy-consent__panel { background: #ffffff; color: #1A1A2A; }
.hy-consent--dark .hy-consent__panel { background: #1A1A2A; color: #ffffff; }

.hy-consent__text { margin: 0 0 12px; }
.hy-consent__privacy-link {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

.hy-consent__categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.hy-consent__categories[hidden] { display: none; }

.hy-consent__category {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.hy-consent__category input[disabled] { cursor: not-allowed; }
.hy-consent__category-text { display: flex; flex-direction: column; }
.hy-consent__category-desc { font-size: 12.5px; opacity: 0.75; }

.hy-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hy-consent__btn {
    font: inherit;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}

.hy-consent__btn--accept {
    background: #70D6FF;
    color: #06313f;
}
.hy-consent__btn--accept:hover { filter: brightness(0.95); }

.hy-consent--light .hy-consent__btn--decline,
.hy-consent--light .hy-consent__btn--customize,
.hy-consent--light .hy-consent__btn--save {
    background: transparent;
    border-color: rgba(26, 26, 42, 0.25);
    color: #1A1A2A;
}
.hy-consent--dark .hy-consent__btn--decline,
.hy-consent--dark .hy-consent__btn--customize,
.hy-consent--dark .hy-consent__btn--save {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Sticky "manage cookies" re-open button — shown after a choice has
   already been recorded, so a visitor can still change their mind later.
   See [hyndle_consent_options] (Phase 5) for the same action from
   anywhere in page content. */
.hy-consent-sticky {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 999998;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #70D6FF;
    color: #06313f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hy-consent-sticky[hidden] { display: none; }

/* [hyndle_consent_options] — a plain inline text link wherever the site
   owner places it (typically a footer), not the fixed floating sticky
   button above; both call the same reopenBanner(). Inherits the
   surrounding text's font/size on purpose so it blends into footer copy
   instead of looking like a stray plugin widget. */
.hy-consent-reopen-link {
    font: inherit;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 480px) {
    .hy-consent--popup {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .hy-consent__actions { flex-direction: column; }
    .hy-consent__btn { width: 100%; }
}
