/* ── The service category picker ──────────────────────────────────────
 *
 * Enqueued on three routes but rendered by ONE template: only
 * templates/provider/profile-edit.php carries .hrhs-svc-step, .hrhs-catpick
 * and .hrhs-subsearch. So moving it onto the system tokens with the editor in
 * 4.70.27 changes exactly one screen, and the two release-4 screens that also
 * load this file are unaffected because they never draw the picker.
 */
/* ═══════════════════════════════════════════════════════════════
   SERVICE CATEGORY PICKER — profile-edit.php

   These classes were referenced by the template and defined nowhere.
   Nothing was hidden, so all 22 categories rendered fully expanded:
   roughly two hundred checkboxes down a single page, which is what a
   service pro was being asked to face on their first edit.

   Collapsed by default. A category is a card; selecting it reveals
   its own subservices and nothing else's.
═══════════════════════════════════════════════════════════════ */

#hrhs-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 12px;
}

.hrhs-cat-block {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
    cursor: pointer;
    transition: .15s ease;
    position: relative;
    /* Selected cards grow; the grid must not stretch its neighbors to
       match, or one expansion drags a whole row open with it. */
    align-self: start;
}
.hrhs-cat-block:hover { border-color: var(--go); }

.hrhs-cat-block--selected {
    border-color: var(--go);
    background: var(--go-bed);
}
.hrhs-cat-block--primary {
    border-color: var(--go);
    background: #f0fff8;
}
.hrhs-cat-block--locked {
    opacity: .55;
    cursor: not-allowed;
    background: var(--tint);
}
.hrhs-cat-block--locked:hover { border-color: var(--line); }

.hrhs-cat-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hrhs-cat-name { font-size: .95rem; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }

.hrhs-primary-badge {
    order: -1;
    font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    background: var(--go); color: #fff;
    padding: 3px 8px; border-radius: 20px;
}
.hrhs-lock-icon { order: -1; font-size: .85rem; }

.hrhs-cat-actions { display: flex; gap: 6px; flex-basis: 100%; margin-top: 10px; }
.hrhs-set-primary-btn,
.hrhs-expand-btn {
    font-family: inherit; font-size: .74rem; font-weight: 700;
    padding: 7px 11px; min-height: 36px;
    border-radius: var(--r-tile);
    border: 1px solid var(--line);
    background: var(--card); color: var(--ink);
    cursor: pointer; transition: .15s ease;
}
.hrhs-set-primary-btn:hover,
.hrhs-expand-btn:hover { border-color: var(--go); color: var(--go); }

/* The panel that was never hidden. */
.hrhs-sub-panel {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    max-height: 260px;
    overflow-y: auto;
}
.hrhs-wz__grp { flex-basis: 100%; width: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
.hrhs-wz__grp:first-child { margin-top: 0; }
.hrhs-sub-panel.open { display: block; }
.hrhs-sub-panel .hrhs-checkbox-label { display: flex; gap: 8px; padding: 5px 0; cursor: pointer; }
.hrhs-sub-panel .hrhs-checkbox-label:hover span { color: var(--go); }
.hrhs-subs-checkbox { margin-top: 2px; flex-shrink: 0; }

.hrhs-cat-summary {
    font-size: .8rem; color: var(--muted);
    background: var(--tint);
    border-radius: var(--r-tile);
    padding: 10px 14px; margin-bottom: 12px;
}

@media (max-width: 780px) {
    #hrhs-cat-grid { grid-template-columns: 1fr; }
    /* Touch targets, matching the rest of the mobile scale. */
    .hrhs-set-primary-btn, .hrhs-expand-btn { min-height: 44px; font-size: .82rem; padding: 10px 14px; }
    .hrhs-sub-panel .hrhs-checkbox-label { padding: 10px 0; font-size: .95rem; }
    .hrhs-sub-panel { max-height: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SETUP WIZARD

   Loaded with the picker because step one *is* the picker. Kept in
   this file rather than hrhs-core.css so neither ships to the 90% of
   screens that have no wizard on them.
═══════════════════════════════════════════════════════════════ */
.hrhs-wz__head { margin-bottom: 26px; }

.hrhs-wz__steps { display: flex; gap: 6px; margin-bottom: 12px; }
.hrhs-wz__step {
    flex: 1; display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600; color: var(--muted);
    min-width: 0;
}
.hrhs-wz__step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrhs-wz__dot {
    width: 26px; height: 26px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: .76rem; font-weight: 800;
    background: var(--line); color: var(--muted);
}
.hrhs-wz__step.is-current .hrhs-wz__dot { background: var(--ink); color: #fff; }
.hrhs-wz__step.is-current { color: var(--ink); }
.hrhs-wz__step.is-done .hrhs-wz__dot { background: var(--go); color: #fff; }

.hrhs-wz__bar { height: 6px; background: var(--line); border-radius: 20px; overflow: hidden; }
.hrhs-wz__bar span {
    display: block; height: 100%;
    background: var(--go);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

.hrhs-wz__title { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 0 0 6px; }
.hrhs-wz__lede  { font-size: .96rem; line-height: 1.65; color: var(--muted); margin: 0 0 20px; }
.hrhs-wz__hint  { font-size: .84rem; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.hrhs-wz__card  { padding: 26px; }

.hrhs-wz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px,100%),1fr)); gap: 4px; }

.hrhs-wz__actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
}
.hrhs-wz__skip {
    margin-left: auto; font-size: .88rem; font-weight: 600;
    color: var(--muted); text-decoration: none;
}
.hrhs-wz__skip:hover { color: var(--ink); text-decoration: underline; }

.hrhs-wz__meter { margin: 22px 0; }
.hrhs-wz__meter-label { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; color: var(--muted); }
.hrhs-wz__meter-label strong { color: var(--ink); }

@media (max-width: 780px) {
    /* Labels go, dots stay. Five words across a phone is unreadable, but the
       position in the sequence still has to be visible. */
    .hrhs-wz__step-label { display: none; }
    .hrhs-wz__step { flex: 0 0 auto; }
    .hrhs-wz__steps { justify-content: space-between; }
    .hrhs-wz__title { font-size: 1.4rem; }
    .hrhs-wz__card { padding: 20px 18px; }
    .hrhs-wz__actions .hrhs-btn { width: 100%; }
    .hrhs-wz__skip { margin: 4px auto 0; }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE UPLOADER
═══════════════════════════════════════════════════════════════ */
.hrhs-single-uploader { max-width: 340px; }
.hrhs-uploader-zone {
    border: 2px dashed var(--line);
    border-radius: var(--r);
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    background: var(--tint);
    transition: .15s ease;
}
.hrhs-uploader-zone:hover,
.hrhs-uploader-zone.is-dragging { border-color: var(--go); background: var(--go-bed); }
.hrhs-uploader-icon { color: var(--muted); margin-bottom: 8px; }
.hrhs-uploader-prompt { margin: 0 0 4px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hrhs-uploader-browse { color: var(--go); text-decoration: underline; }
.hrhs-uploader-hint { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.hrhs-uploader-preview { display: flex; align-items: center; gap: 16px; }
.hrhs-uploader-preview img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.hrhs-uploader-thumb--circle { border-radius: 50% !important; }
.hrhs-uploader-actions { display: flex; flex-direction: column; gap: 8px; }
.hrhs-uploader-loading { display: flex; align-items: center; gap: 10px; padding: 22px; }
.hrhs-uploader-error { margin: 8px 0 0; font-size: .85rem; color: var(--bad); line-height: 1.5; }
.hrhs-spinner-sm {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--go);
    animation: hrhs-spin .7s linear infinite;
}
@keyframes hrhs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hrhs-spinner-sm { animation-duration: 2s; } }

/* ═══════════════════════════════════════════════════════════════
   BUILDER OVERRIDES — controls that are not .hrhs-btn

   hrhs-core.css pins every .hrhs-btn variant, but Elementor's kit
   styles bare `button` and `input[type=submit]` site-wide, including
   their hover, focus and active states. Every plugin control that is
   a plain button — the category picker's, the drawer's, the featured
   arrows — was being repainted in the kit's accent color, and on a
   phone :focus sticks after the tap so the wrong color stays put.
═══════════════════════════════════════════════════════════════ */
.hrhs-expand-btn, .hrhs-expand-btn:hover, .hrhs-expand-btn:focus, .hrhs-expand-btn:active,
.hrhs-set-primary-btn, .hrhs-set-primary-btn:hover, .hrhs-set-primary-btn:focus, .hrhs-set-primary-btn:active {
    background: var(--card) !important;
    color: var(--ink) !important;
}
.hrhs-expand-btn:hover, .hrhs-set-primary-btn:hover { border-color: var(--go) !important; color: var(--go) !important; }

.hrhs-uploader-change-btn:focus, .hrhs-uploader-change-btn:active,
.hrhs-uploader-remove-btn:focus, .hrhs-uploader-remove-btn:active { box-shadow: none !important; }

.hrhs-wz__skip, .hrhs-wz__skip:link, .hrhs-wz__skip:visited,
.hrhs-wz__skip:focus, .hrhs-wz__skip:active { color: var(--muted) !important; background: none !important; }
.hrhs-wz__skip:hover { color: var(--ink) !important; }

/* ── Services: category first, then its specialties listed ───────────
 *
 * Replaces the grid of 21 expandable cards. That layout put up to eighteen
 * tick boxes inside a collapsed panel inside a scrolling page, and the
 * specialties a pro never scrolled to were the ones they never got matched
 * on. */

.hrhs-svc-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hrhs-svc-step b { font-size: 0.95rem; color: var(--ink); font-weight: 800; }
.hrhs-svc-step__n {
    width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: #fff;
    font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; flex: none;
}
.hrhs-svc-step__note { margin-left: auto; font-size: 0.8rem; color: var(--muted); }

.hrhs-catbar { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.hrhs-catpick {
    display: inline-flex; align-items: center; gap: 9px;
    background: #F4F7FA; border: 1px solid var(--line); color: var(--ink-2);
    font-weight: 700; font-size: 0.86rem; padding: 8px 10px 8px 15px; border-radius: 999px;
}
.hrhs-catpick.is-primary { background: var(--go-bed); border-color: #CFE3F7; color: var(--go); }
.hrhs-catpick__tag {
    font-size: 0.6rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    background: #fff; padding: 2px 7px; border-radius: 999px;
}
.hrhs-catpick__mk {
    border: 0; background: none; color: inherit; font-family: inherit; font-size: 0.72rem;
    font-weight: 700; cursor: pointer; opacity: .7; text-decoration: underline; padding: 0;
}
.hrhs-catpick__mk:hover { opacity: 1; }
.hrhs-catpick__x {
    border: 0; background: none; color: inherit; font-size: 1.05rem; line-height: 1;
    cursor: pointer; opacity: .45; padding: 0 2px;
}
.hrhs-catpick__x:hover { opacity: 1; }
.hrhs-catadd {
    border: 1.5px dashed var(--line); background: #fff; color: var(--muted);
    font-family: inherit; font-size: 0.82rem; font-weight: 700; padding: 9px 14px;
    border-radius: 999px; cursor: pointer; min-height: 40px;
}
.hrhs-catadd:disabled { opacity: .55; cursor: not-allowed; }

.hrhs-subtabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0 0; }
.hrhs-subtab {
    border: 1px solid var(--line); background: #fff; font-family: inherit;
    font-size: 0.82rem; font-weight: 700; color: var(--muted);
    padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.hrhs-subtab.is-on { background: var(--go-bed); border-color: #CFE3F7; color: var(--go); }
.hrhs-subtab__n {
    display: inline-block; margin-left: 6px; background: #F1F5F9; color: var(--muted);
    font-size: 0.68rem; padding: 1px 7px; border-radius: 999px;
}
.hrhs-subtab.is-on .hrhs-subtab__n { background: #fff; color: var(--go); }

.hrhs-subpane { display: none; }
.hrhs-subpane.is-on { display: block; }
/* Without the script every pane shows, which is long but complete — the pro can
 * still tick anything and still save. */
.no-js .hrhs-subpane { display: block; }

.hrhs-subtools { display: flex; gap: 9px; align-items: center; margin: 14px 0 10px; flex-wrap: wrap; }
.hrhs-subsearch { flex: 1; min-width: 190px; }

.hrhs-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 7px; }
/* Grouped (4.93.0): the grid becomes a stack of groups, each with its own grid. */
.hrhs-subgrid--grouped { display: flex; flex-direction: column; gap: 14px; }
/* Ungrouped: the wrappers vanish and the tick boxes sit in the outer grid. */
.hrhs-subgroup, .hrhs-subgroup__grid { display: contents; }
.hrhs-subgrid--grouped .hrhs-subgroup { display: block; }
.hrhs-subgrid--grouped .hrhs-subgroup[hidden] { display: none; }
.hrhs-subgroup__hd { display: flex; align-items: center; gap: 10px; padding: 0 0 7px; }
.hrhs-subgroup__hd b { font-size: .9rem; color: var(--ink); }
.hrhs-subgroup__n { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.hrhs-subgroup__all { margin-left: auto; border: 0; background: transparent; padding: 6px 0; font: inherit; font-size: .8rem; font-weight: 700; color: var(--go); cursor: pointer; }
.hrhs-subgroup__all:hover { text-decoration: underline; }
.hrhs-subgrid--grouped .hrhs-subgroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 7px; }
.hrhs-subitem {
    display: flex; align-items: center; gap: 9px; font-size: 0.86rem; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: var(--r-tile);
    background: #fff; cursor: pointer; min-height: 42px;
}
.hrhs-subitem:hover { border-color: #C6D4E2; background: #FAFCFF; }
.hrhs-subitem input { accent-color: var(--go); flex: none; }
.hrhs-subitem.is-on { background: var(--go-bed); border-color: #CFE3F7; color: var(--go); font-weight: 600; }
.hrhs-subitem[hidden] { display: none; }

.hrhs-suggest {
    margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r);
    background: #FAFBFD; padding: 16px 18px;
}
.hrhs-suggest__hd { display: flex; gap: 12px; align-items: flex-start; }
.hrhs-suggest__ic {
    width: 28px; height: 28px; border-radius: 9px; background: #DCF5E7; color: #157F45;
    display: grid; place-items: center; font-weight: 800; flex: none;
}
.hrhs-suggest__hd b { font-size: 0.9rem; color: var(--ink); }
.hrhs-suggest__hd p { margin: 3px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.hrhs-suggest__row { display: flex; gap: 9px; margin: 13px 0 0; flex-wrap: wrap; }
.hrhs-suggest__row .hrhs-input { flex: 1; min-width: 200px; }
.hrhs-suggest__list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.hrhs-sgchip {
    display: inline-flex; align-items: center; gap: 7px; background: #fff;
    border: 1px solid var(--line); font-size: 0.8rem; padding: 6px 11px;
    border-radius: 999px; color: var(--ink-2);
}
.hrhs-sgchip i {
    font-style: normal; font-size: 0.62rem; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; background: #FDF3E0; color: #B45309; padding: 2px 7px; border-radius: 999px;
}
.hrhs-sgchip.is-ok i { background: #DCF5E7; color: #157F45; }
.hrhs-suggest__note { margin: 12px 0 0; font-size: 0.76rem; color: var(--muted); line-height: 1.55; }
.hrhs-suggest__msg {
    border-radius: var(--r-tile); padding: 10px 13px; margin-bottom: 13px;
    font-size: 0.84rem; font-weight: 600; border: 1px solid var(--line); background: #fff;
}
.hrhs-suggest__msg.is-ok { border-left: 3px solid var(--go); color: #157F45; }
.hrhs-suggest__msg.is-bad { border-left: 3px solid var(--bad); color: var(--bad); }

@media (max-width: 700px) {
    .hrhs-subgrid { grid-template-columns: 1fr; }
    .hrhs-subgrid--grouped .hrhs-subgroup__grid { grid-template-columns: 1fr; }
    .hrhs-svc-step__note { margin-left: 0; width: 100%; }
}


/* Pinned on all three colour properties, like every other bare button — see the
   note in hrhs-core.css. The kit takes whichever one a pin forgets. */
.hrhs-subtab,
.hrhs-subtab:focus,
.hrhs-subtab:active {
    background-color: #fff !important;
    color: var(--muted) !important;
    border-color: var(--line) !important;
}
.hrhs-subtab.is-on,
.hrhs-subtab.is-on:hover,
.hrhs-subtab.is-on:focus,
.hrhs-subtab.is-on:active {
    background-color: var(--go-bed) !important;
    color: var(--go) !important;
    border-color: #CFE3F7 !important;
}
