/* webhostas.com cookie consent. MB Bluejuice. */
#wh-consent {
    --whc-brand: var(--wh-brand, #764ba2);
    --whc-brand-deep: var(--wh-brand-deep, #55327d);
    --whc-soft: var(--wh-brand-soft, #f1eaf9);
    --whc-ink: var(--wh-ink, #1b1530);
    --whc-ink-2: var(--wh-ink-2, #453f5c);
    --whc-muted: var(--wh-muted, #6f6a85);
    --whc-line: var(--wh-line, #e2deee);
    --whc-surface: var(--wh-surface, #fff);
    --whc-radius: var(--wh-radius, 12px);
    font-family: var(--wh-font-body, "Onest", system-ui, -apple-system, "Segoe UI", sans-serif);
    color: var(--whc-ink);
    font-size: 15px;
    line-height: 1.5;
}
#wh-consent [hidden] { display: none !important; }
#wh-consent a { color: var(--whc-brand-deep); text-decoration: underline; text-underline-offset: 2px; }

.whc-banner {
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 980px;
    margin: 0 auto;
    background: var(--whc-surface);
    border: 1px solid var(--whc-line);
    border-radius: var(--whc-radius);
    box-shadow: 0 1px 2px rgba(27, 21, 48, .06), 0 18px 48px -16px rgba(27, 21, 48, .35);
    padding: 20px 22px;
    display: flex;
    gap: 20px;
    align-items: center;
    animation: whc-up .25s ease-out;
}
.whc-banner h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--whc-ink); }
.whc-banner p { margin: 0; color: var(--whc-ink-2); font-size: 14px; }
.whc-text { flex: 1 1 auto; min-width: 0; }
.whc-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }

.whc-btn {
    appearance: none;
    border: 1px solid var(--whc-brand);
    background: var(--whc-surface);
    color: var(--whc-brand-deep);
    border-radius: 8px;
    min-height: 44px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}
.whc-btn:hover { background: var(--whc-soft); }
.whc-btn--primary { background: var(--whc-brand); color: #fff; }
.whc-btn--primary:hover { background: var(--whc-brand-deep); border-color: var(--whc-brand-deep); color: #fff; }
.whc-btn--link { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 2px; padding: 0 10px; }
.whc-btn--link:hover { background: transparent; color: var(--whc-ink); }
.whc-btn:focus-visible, .whc-dialog:focus-visible, .whc-switch input:focus-visible + span { outline: 3px solid var(--whc-brand); outline-offset: 2px; }

.whc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(27, 21, 48, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.whc-dialog {
    background: var(--whc-surface);
    border-radius: var(--whc-radius);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-shadow: 0 24px 64px -20px rgba(27, 21, 48, .5);
    animation: whc-up .2s ease-out;
}
.whc-dialog:focus { outline: none; }
.whc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.whc-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.whc-x { appearance: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 8px; font-size: 24px; line-height: 1; color: var(--whc-muted); cursor: pointer; }
.whc-x:hover { background: var(--whc-soft); color: var(--whc-ink); }
.whc-body { padding: 0 22px 8px; }
.whc-body > p { color: var(--whc-ink-2); font-size: 14px; margin: 0 0 14px; }
.whc-cat { border: 1px solid var(--whc-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.whc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.whc-cat strong { font-size: 15px; }
.whc-cat p { margin: 6px 0 0; font-size: 13.5px; color: var(--whc-muted); }
.whc-always { font-size: 13px; font-weight: 600; color: var(--wh-ok, #17855a); white-space: nowrap; }
.whc-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 22px 20px; border-top: 1px solid var(--whc-line); margin-top: 8px; }

.whc-switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.whc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.whc-switch span { width: 46px; height: 26px; border-radius: 13px; background: var(--wh-line-strong, #c9c3dc); position: relative; transition: background-color .15s; }
.whc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.whc-switch input:checked + span { background: var(--whc-brand); }
.whc-switch input:checked + span::after { transform: translateX(20px); }

html.whc-lock, html.whc-lock body { overflow: hidden; }

@keyframes whc-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .whc-banner, .whc-dialog { animation: none; } }

@media (max-width: 760px) {
    .whc-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; gap: 14px; }
    .whc-actions { justify-content: stretch; }
    .whc-actions .whc-btn { flex: 1 1 calc(50% - 4px); }
    .whc-actions .whc-btn--link { flex-basis: 100%; order: 3; min-height: 36px; }
    .whc-foot .whc-btn { flex: 1 1 100%; }
}

/* Footer link rendered as a button */
.nav-link[data-wh-consent-open] { cursor: pointer; }
