/* ==========================================================================
   Client web rows 236 (cw-232), 325 and 343 (Alexa, Nov 13 retest: "still seeing the wrong checkmark icon").
   ONE checkmark on the whole client web = Figma Emvari v2 - PRD Flow › Icons-brand-portal › selection ›
   Portal Checkbox (7554:81821), read from Figma Nov 14:
     on  (7554:81826)  20px box, 3px corners, #161212 fill + 1px #161212 border, white filled tick
                       9.72 x 7.45 at (5.28, 6.44): "M15 7.22 8.33 13.89 5.28 10.83l.78-.78 2.27 2.27 5.88-5.88z"
     off (7554:81822)  20px box, 3.33px corners, 1.5px #E4E4E7 border, white
   The section has no other checkmark, so every place the client web shows a checkmark now shows this box:
   every tick box (Filter By, forms Multi Select / Checkbox elements, Family & Friends sharing, team lists, sign-up,
   delete account ...), sort pop-ups (selected option), membership included lists, the chosen mobile location,
   and the password rules (rule met = ticked box, not met = empty box).
   The tick is drawn on the whole 20px box (background-origin: border-box) so it is not shrunk by the border -
   it was 10% too small before (drawn inside the border).
   ========================================================================== */
:root {
    --emv-fig-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M15 7.22 8.33 13.89 5.28 10.83l.78-.78 2.27 2.27 5.88-5.88z'/%3E%3C/svg%3E");
    --emv-fig-box-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='3' fill='%23161212'/%3E%3Cpath fill='%23fff' d='M15 7.22 8.33 13.89 5.28 10.83l.78-.78 2.27 2.27 5.88-5.88z'/%3E%3C/svg%3E");
    --emv-fig-box-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='.75' y='.75' width='18.5' height='18.5' rx='3.33' fill='%23fff' stroke='%23E4E4E7' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* 1. Tick boxes. Base look only for Bootstrap / known Emvari boxes (no specificity games, so a page that hides or sizes
      its own box keeps doing so); the ticked look is !important on every check box so no older drawing comes back.
      Switches / toggles are left alone. */
.form-check:not(.form-switch) > input.form-check-input[type="checkbox"],
.checkbox-group input.form-check-input[type="checkbox"],
input[type="checkbox"].bd-team-check,
input[type="checkbox"].cw-rating-check,
input[type="checkbox"].emv-bp-tick,
input[type="checkbox"].v24-check,
html body .emv-bf .emv-bf-opts .emv-bf-opt input[type="checkbox"],
html body .emv-bf .emv-bf-consent input[type="checkbox"],
html body .preferences-modal.modal.salon-prefs-modal .option-item .salon-prefs-check {
    -webkit-appearance: none; appearance: none; box-sizing: border-box;
    width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px; margin-top: 0;
    border: 1.5px solid #E4E4E7; border-radius: 3px; background-color: #FFFFFF; background-image: none; box-shadow: none;
}
/* QA-255-1: an older rule kept some boxes 24px tall (Remember me on Sign In, the consent boxes on Sign Up): every visible
   tick box is 20 x 20, height included. Switches, visually hidden inputs and boxes drawn by their own label are left alone. */
html body :not(.form-switch) > input.form-check-input[type="checkbox"]:not([role="switch"]):not(.btn-check):not(.visually-hidden):not(.d-none),
html body input[type="checkbox"].bd-team-check,
html body input[type="checkbox"].cw-rating-check,
html body input[type="checkbox"].emv-bp-tick,
html body input[type="checkbox"].v24-check,
html body .emv-bf .emv-bf-opts .emv-bf-opt input[type="checkbox"],
html body .emv-bf .emv-bf-consent input[type="checkbox"] {
    width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important;
    max-width: 20px !important; max-height: 20px !important; flex: 0 0 20px !important; box-sizing: border-box !important; padding: 0 !important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.btn-check):not([class*="toggle"]):not([class*="switch"]):checked {
    background-color: #161212 !important; border: 1px solid #161212 !important; border-radius: 3px !important;
    background-image: var(--emv-fig-tick) !important; background-size: 20px 20px !important;
    background-position: center !important; background-repeat: no-repeat !important; background-origin: border-box !important;
}
.form-switch input[type="checkbox"]:checked, input[type="checkbox"][role="switch"]:checked { border-radius: 2em; }
html body input[type="checkbox"]:not([role="switch"]):not(.btn-check):focus { box-shadow: none; }
html body input[type="checkbox"]:not([role="switch"]):not(.btn-check):focus-visible { outline: 2px solid #161212; outline-offset: 2px; }

/* row 343: forms Multi Select (builder form) was a 24px box with the tick drawn at 16px (tick 40% too small) */
html body .preferences-modal.modal.salon-prefs-modal .option-item input:checked + .option-content .salon-prefs-check {
    background: #161212 var(--emv-fig-tick) center / 20px 20px no-repeat !important; background-origin: border-box !important;
    border: 1px solid #161212 !important;
}

/* 2. Boxes drawn as spans with an inline tick (booking Select Team Member list, waitlist team list, service rows) */
html body .team-dropdown .check-indicator,
html body .wl-prov-checkbox {
    box-sizing: border-box; width: 20px; height: 20px; border: 1.5px solid #E4E4E7; border-radius: 3px;
}
html body .team-dropdown .team-option.selected .check-indicator,
html body .wl-prov-item--member.selected .wl-prov-checkbox { border: 1px solid #161212; background: #161212; }
html body .team-dropdown .check-indicator svg,
html body .wl-prov-checkbox svg { width: 9.72px; height: 7.45px; }

/* 3. Stand-alone checkmarks (sort pop-ups, membership included items, chosen mobile location, service rows): the ticked box */
html body .emv-check {
    width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; border-radius: 3px;
    -webkit-mask: none; mask: none; background: var(--emv-fig-box-on) center / 20px 20px no-repeat;
}
html body .benefit-item > .emv-check { font-size: inherit; }
html body .cw-mdisc-incl li::before {
    width: 20px !important; height: 20px !important; top: 0 !important;
    -webkit-mask: none !important; mask: none !important; background: var(--emv-fig-box-on) center / 20px 20px no-repeat !important;
}
html body .cw-mdisc-incl li { padding-left: 30px; min-height: 20px; }

/* 4. Password rules: met = ticked box, not met = empty box (the Figma on / off pair) */
html body .requirement-item > i.ti.ti-circle-check::before { width: 16px; height: 16px; background: var(--emv-fig-box-off) center / 16px 16px no-repeat !important; }
html body .requirement-item > i.ti.ti-circle-check-filled::before { width: 16px; height: 16px; background: var(--emv-fig-box-on) center / 16px 16px no-repeat !important; }
