/* ==========================================================================
   Nov 13 (lane C3, client web UI polish). Scoped blocks only; loaded after client-web-app.css.
   ========================================================================== */

/* cw-255 retest (row 259): the notification button is the same size as the profile button beside it
   (40px square, 8px corners — the profile button is the Figma 8715:171690 40px square). */
header.header .nav-notifications { width: 40px; height: 40px; border-radius: 8px; }
header.header .nav-notifications > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* row 324: with the business's feature colours the top bar is coloured, and the profile button's link kept a white
   5px-corner box behind the 8px-corner square, so white corners showed. The link is see-through and follows the
   button's own 8px corners (a photo keeps its own shape). */
header.header .header-user-dropdown > .dropdown-toggle { background: transparent !important; border-radius: 8px !important; }

/* row 326: Gift Card Sent / Scheduled — the site-wide link hover turned the DONE text ink on the ink button, so it
   disappeared. These buttons have no hover state (F): a link styled as a pay-page button keeps its own colours. */
a.v24c-btn:hover, a.v24c-btn:focus, a.v24c-btn:active { color: #161212; background: #FFFFFF; text-decoration: none; }
a.v24c-btn.v24c-btn--primary:hover, a.v24c-btn.v24c-btn--primary:focus, a.v24c-btn.v24c-btn--primary:active { color: #FFFFFF; background: #161212; border-color: #161212; }
a.v24c-btn.v24c-btn--stone:hover, a.v24c-btn.v24c-btn--stone:focus, a.v24c-btn.v24c-btn--stone:active { color: #161212; background: #C6BEB5; border-color: #C6BEB5; }

/* row 306 (Memberships): the business name and address start on the same line as "Membership" / the membership
   name below them — the header uses the card body's 15px side padding instead of 8px. */
.membership-card > .card-header.p-2 { padding-left: 15px !important; padding-right: 15px !important; }

/* cw-228 retest (row 232), Business page › Services rows: the space left of the service picture equals the space right
   of the tick box (12px), and the price/time sits as far from the tick box as the picture sits from the name (16px on
   computers; phones keep cwb-13's 12px). The name column takes the free width and the price never runs into the tick
   box when a discounted price shows two amounts. */
#servicesAccordion .service-card-item .left-card-width { width: auto; flex: 1 1 auto; min-width: 0; }
#servicesAccordion .service-card-item .left-card-width + .text-end { flex: 0 0 auto; margin-left: 12px; white-space: nowrap; }
#servicesAccordion .service-card-item .m-r-15 { margin-right: 0 !important; }
@media (min-width: 768px) {
    #servicesAccordion .service-card-item { padding-left: 12px !important; padding-right: 12px !important; }
    #servicesAccordion .service-card-item .bd-service-mark-wrap { margin-left: 16px !important; margin-right: 0 !important; }
}

/* ==========================================================================
   Rows 236 (cw-232) + 325: ONE checkmark on the whole client web = the Brand Portal checkmark
   (Nov 13 row 93 retest: Figma Icons-brand-portal › selection › Portal Checkbox, node 7554:81821 - the thin filled tick
   "M15 7.22 8.33 13.89 5.28 10.83l.78-.78 2.27 2.27 5.88-5.88z" on a 20px grid, drawn at the full size of the box; white on an ink box;
   replaces the heavier Bootstrap "m6 10 3 3 6-6" stroke everywhere on the client web). Defined once here and reused:
     --emv-bp-check       tick-box fill (white tick, full box)
     .emv-check           a standalone checkmark that takes the text colour (same path, cropped to the tick)
   ========================================================================== */
:root {
    --emv-bp-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' stroke='none' 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-bp-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.5 5.25 12 9.5'%3E%3Cpath fill='%23000' stroke='none' 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-check {
    display: inline-block; flex: 0 0 auto; width: 1em; height: .8em; vertical-align: 0;
    background-color: currentColor;
    -webkit-mask: var(--emv-bp-check-mask) center / contain no-repeat; mask: var(--emv-bp-check-mask) center / contain no-repeat;
}
.emv-check.d-none { display: none !important; }
.benefit-item > .emv-check { font-size: 14px; } /* Business page › Memberships benefits: same 14px and light colour the old icon had */

/* Tick boxes that already used a data-URI tick: the Brand Portal tick fills the box (Brand Portal: background-size 100%) */
.tm-svc.tm-selected .tm-svc-mark,
#filterModal .cw-rating-check:checked,
.bd-team-check:checked,
.authentication-page .form-check-input[type="checkbox"]:checked,
html body #provider .form-checkbox > .form-check-input[type="checkbox"]:checked,
html body .emv-bf .emv-bf-opt input[type="checkbox"]:checked,
.v24-check:checked,
.v24bt-check input[type="checkbox"]:checked { background-size: 100% 100% !important; background-position: center !important; background-repeat: no-repeat !important; }

/* Memberships › offered plans: the included-items list uses the Brand Portal checkmark (was a drawn border tick) */
.cw-mdisc-incl li::before {
    border: 0 !important; transform: none !important; left: 0 !important; top: 5px !important; width: 13px !important; height: 10px !important;
    background-color: #161212;
    -webkit-mask: var(--emv-bp-check-mask) center / contain no-repeat; mask: var(--emv-bp-check-mask) center / contain no-repeat;
}


/* Tick boxes that draw the tick as an inline svg (booking team drop-down 24px box, waitlist team 20px box): the
   Brand Portal tick at its Brand Portal share of the box (9 of 20 wide). */
html body .team-dropdown .check-indicator svg { width: 11px; height: 9px; }
.wl-prov-checkbox svg { width: 9px; height: 7px; }

/* Password rules (Sign Up, Settings › Change Password, reset pop-up): the rule icons use the Brand Portal checkmark —
   grey circle while the rule is not met, ink circle once it is (same pair as the Reset Password page). */
.requirement-item > i.ti.ti-circle-check::before, .requirement-item > i.ti.ti-circle-check-filled::before { /* QA-232-1: password-rule rows only */
    content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23D5D2CB'/%3E%3Cpath fill='%23fff' stroke='none' 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") center / contain no-repeat;
}
.requirement-item > i.ti.ti-circle-check-filled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23161212'/%3E%3Cpath fill='%23fff' stroke='none' 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");
}

/* QA-232-2: plain browser tick boxes on stand-alone client pages (Membership Agreement, Delete Account) — the Brand Portal
   tick box: 20px, 4px corners, #E4E4E7 border; ticked = ink box with the Brand Portal checkmark filling it. */
input[type="checkbox"].emv-bp-tick {
    -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
    border: 1px solid #E4E4E7; border-radius: 4px; background: #FFFFFF; cursor: pointer; vertical-align: middle;
}
input[type="checkbox"].emv-bp-tick:checked { background: #161212 var(--emv-bp-check) center / 100% 100% no-repeat; border-color: #161212; }
input[type="checkbox"].emv-bp-tick:focus-visible { outline: 2px solid #161212; outline-offset: 2px; }
