/* Handyman First privacy controls — deliberately independent of site utilities. */
.hf-consent, .hf-consent *, .hf-cookie-dialog, .hf-cookie-dialog *, .hf-form-gate, .hf-form-gate * { box-sizing: border-box; }
.hf-consent, .hf-cookie-dialog, .hf-form-gate { font-family: Oxygen, Arial, sans-serif; color: #152b50; font-size: 14px; line-height: 1.6; }
.hf-consent[hidden], .hf-cookie-dialog [hidden], .hf-form-gate[hidden] { display: none !important; }
.hf-cookie-dialog:not([open]) { display: none !important; }
.hf-consent { position: fixed; z-index: 2147483000; bottom: 24px; left: 24px; width: min(720px, calc(100% - 48px)); padding: 0; background: #fff; border: 1px solid #dce2eb; border-radius: 18px; box-shadow: 0 12px 70px #0c1c3b40; overflow: hidden; }
.hf-consent::before { content: ''; display: block; height: 5px; background: #f58a1e; }
.hf-consent__body { padding: 24px 28px 20px; }
.hf-consent__brand { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.hf-consent__brand img { display: block; width: 144px; height: auto; }
.hf-consent__eyebrow { color: #59677d; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.hf-consent h2, .hf-cookie-dialog h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; text-transform: none; }
.hf-consent p, .hf-cookie-dialog p { margin: 0; color: #526078; }
.hf-consent__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0 14px; }
.hf-cookie-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; min-height: 46px; background: #152b50; border: 1px solid #152b50; border-radius: 8px; color: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer; transition: background .18s, border-color .18s; }
.hf-cookie-button:hover { background: #234577; border-color: #234577; }
.hf-cookie-button--light { background: #fff; color: #152b50; border-color: #bcc6d5; }
.hf-cookie-button--light:hover { background: #f1f4f8; border-color: #152b50; }
.hf-cookie-button--orange { background: #f58a1e; border-color: #f58a1e; color: #152b50; }
.hf-cookie-button--orange:hover { background: #ffac50; border-color: #ffac50; }
.hf-consent__small { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; color: #66738a; font-size: 11px; }
.hf-consent a, .hf-cookie-dialog a, .hf-form-gate a { color: #152b50; text-decoration: underline; text-underline-offset: 3px; }
.hf-consent a:hover, .hf-cookie-dialog a:hover, .hf-form-gate a:hover { color: #9f4900; }
.hf-cookie-button:focus-visible, .hf-cookie-preferences:focus-visible, .hf-cookie-dialog input:focus-visible, .hf-consent a:focus-visible, .hf-cookie-dialog a:focus-visible, .hf-form-gate a:focus-visible { outline: 3px solid #f58a1e; outline-offset: 4px; }
.footer .footer_bottom_link { flex-wrap: wrap; justify-content: center; }
.hf-cookie-preferences { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ffffff38; border-radius: 30px; padding: 7px 12px; background: #ffffff08; color: #fff; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; transition: background .18s, border-color .18s; }
.hf-cookie-preferences:hover { background: #f58a1e; border-color: #f58a1e; color: #152b50; }
.hf-cookie-preferences { text-decoration: none; }
.hf-cookie-preferences svg { width: 15px; height: 15px; flex-shrink: 0; }
.hf-cookie-dialog { position: fixed; inset: 0; margin: auto; width: min(600px, calc(100% - 32px)); max-height: min(90vh, 850px); max-height: min(90dvh, 850px); padding: 0; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 24px 100px #08193266; }
.hf-cookie-dialog::backdrop { background: #0b1c38a6; backdrop-filter: blur(4px); }
.hf-cookie-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 20px; border-top: 5px solid #f58a1e; }
.hf-cookie-dialog__header .hf-consent__eyebrow { display: block; margin-bottom: 8px; }
.hf-cookie-close { appearance: none; flex-shrink: 0; border: 1px solid #dce2eb; background: #f4f6f9; width: 40px; height: 40px; border-radius: 50%; color: #152b50; cursor: pointer; font: inherit; font-size: 24px; line-height: 1; }
.hf-cookie-close:focus-visible { outline: 3px solid #f58a1e; outline-offset: 3px; }
.hf-cookie-dialog__content { padding: 0 28px 20px; }
.hf-cookie-category { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid #e1e6ee; }
.hf-cookie-category h3, .hf-cookie-category label { display: block; margin: 0 0 5px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #152b50; }
.hf-cookie-category p { font-size: 12px; }
.hf-cookie-category a { font-size: 11px; }
.hf-cookie-on { white-space: nowrap; padding: 4px 8px; border-radius: 30px; background: #edf3ef; color: #315f43; font-size: 10px; font-weight: 700; }
.hf-cookie-toggle { appearance: none; display: block; position: relative; margin: 2px 0 0; width: 46px; height: 27px; background: #cad2df; border: 2px solid #8c9ab0; border-radius: 30px; cursor: pointer; }
.hf-cookie-toggle::before { content: ''; display: block; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0003; transition: transform .18s; }
.hf-cookie-toggle:checked { background: #152b50; border-color: #152b50; }
.hf-cookie-toggle:checked::before { transform: translateX(19px); background: #f58a1e; }
.hf-cookie-dialog__foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px; background: #f3f5f8; border-top: 1px solid #e1e6ee; }
.hf-cookie-dialog__foot .hf-cookie-button { flex: 1; }
.hf-cookie-dialog__note { padding-top: 16px; font-size: 11px; }
.hf-cookie-status { position: fixed; z-index: 2147483001; bottom: 24px; left: 24px; max-width: calc(100% - 48px); padding: 12px 18px; border-radius: 8px; background: #152b50; color: #fff; box-shadow: 0 5px 20px #152b5033; font: 13px/1.5 Oxygen, Arial, sans-serif; }
.hf-cookie-status:empty { display: none; }
.hf-form-gate { padding: 24px; margin-top: 22px; border: 1px solid #dce2eb; border-radius: 12px; background: #f3f5f8; }
.hf-form-gate strong { display: block; font-size: 17px; margin-bottom: 6px; }
.hf-form-gate p { margin: 0 0 16px; color: #526078; font-size: 13px; }
.hf-form-gate .hf-cookie-button { margin-bottom: 10px; }
.hf-form-gate small { display: block; font-size: 11px; }
.hf-external-form iframe { display: block; width: 100%; min-width: 100%; border: 0; }
@media (max-width: 639px) {
    .hf-consent { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); border-radius: 14px; max-height: calc(100dvh - 24px); overflow-y: auto; }
    .hf-consent__body { padding: 20px; }
    .hf-consent__brand { margin-bottom: 16px; gap: 10px; }
    .hf-consent__brand img { width: 124px; }
    .hf-consent__eyebrow { font-size: 9px; letter-spacing: 1px; }
    .hf-consent h2, .hf-cookie-dialog h2 { font-size: 23px; }
    .hf-consent p { font-size: 13px; }
    .hf-consent__actions { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .hf-consent__actions .hf-cookie-button--light { grid-column: 1 / -1; }
    .hf-consent__small { font-size: 10px; }
    .hf-cookie-dialog__header { padding: 22px 20px 18px; }
    .hf-cookie-dialog__content { padding: 0 20px 18px; }
    .hf-cookie-dialog__foot { padding: 14px 20px; }
    .hf-cookie-dialog__foot .hf-cookie-button { flex: 1 1 40%; }
    .hf-cookie-dialog__foot .hf-cookie-button--orange { flex-basis: 100%; }
    .hf-form-gate { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hf-cookie-button, .hf-cookie-toggle::before, .hf-cookie-preferences { transition: none; }
}
@media print { .hf-consent, .hf-cookie-dialog, .hf-cookie-status { display: none !important; } }
