/* The logo: a white tile so the black line work stays readable on light and dark pages, large enough to see the face, the colours and the tools in the hair. */
.brand-tile{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:80px;height:56px;padding:3px 6px;border-radius:14px;background:#fff;border:1px solid rgba(20,35,27,.14);box-shadow:0 4px 14px rgba(20,35,27,.16);transition:transform .15s ease,box-shadow .15s ease}
.brand-tile img{display:block;width:100%;height:100%;object-fit:contain}
a:hover>.brand-tile{transform:translateY(-1px) scale(1.03);box-shadow:0 8px 20px rgba(20,35,27,.22)}
@media (max-width:640px){.brand-tile{width:58px;height:40px;padding:2px 4px;border-radius:11px}}
.dark .brand-tile{border-color:rgba(255,255,255,.28);box-shadow:0 6px 18px rgba(0,0,0,.5)}
/* the menu logo: a round close-up of the face and crown with no box, border or shadow, so it sits in the header like the text beside it */
.brand-badge{display:inline-flex;flex:0 0 auto;width:54px;height:54px;transition:transform .18s ease}
.brand-badge img{display:block;width:100%;height:100%;object-fit:contain}
a:hover>.brand-badge{transform:scale(1.06) rotate(-2deg)}
.dark .brand-badge img{filter:drop-shadow(0 0 1px rgba(255,255,255,.55))}   /* a thin light edge so the black hair keeps its outline on the dark header */
@media (max-width:640px){.brand-badge{width:40px;height:40px}}
/* footer: the full logo with the salon name */
.brand-tile--full{display:flex;width:min(100%,260px);height:auto;aspect-ratio:960/722;padding:8px;border-radius:20px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* "Purchase a gift certificate" under the gift code box on the booking page: clearly a link, and a hover you can see in light and dark */
.gc-buy-link{display:inline-block;padding:.15rem .3rem;margin:-.15rem -.3rem;border-radius:6px;color:#3f5a49;font-weight:700;text-decoration:underline;text-underline-offset:3px;transition:background-color .15s ease,color .15s ease}
.gc-buy-link:hover,.gc-buy-link:focus-visible{color:#1f3a2c;background:color-mix(in srgb,var(--brand-sage,#4d6a57) 20%,transparent);text-decoration-thickness:2px;outline:none}
.dark .gc-buy-link{color:#b8d4c4}
.dark .gc-buy-link:hover,.dark .gc-buy-link:focus-visible{color:#fff;background:rgba(255,255,255,.16)}

/* Booking page: the policy tick is a proper tap target, and forgetting it shows a clear message next to it (the top banner sat under the fixed header) */
.bk-policy-row{display:flex;align-items:flex-start;gap:.65rem;margin-top:.5rem;padding:.6rem .75rem;border-radius:12px;border:1.5px solid transparent;font-size:.8rem;line-height:1.45;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.bk-policy-row input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;accent-color:var(--brand-sage,#4d6a57);cursor:pointer}
.bk-policy-row.is-error{border-color:#c0392b;background:rgba(192,57,43,.09);animation:bk-nudge .38s ease}
.bk-field-error{display:flex;align-items:flex-start;gap:.5rem;margin:.45rem 0 0;padding:0 .2rem;font-size:.85rem;line-height:1.4;font-weight:700;color:#a3231a}
.bk-field-error svg{flex:0 0 auto;margin-top:1px}
.bk-field-error.hidden{display:none}
.dark .bk-policy-row.is-error{border-color:#ff8f85;background:rgba(255,120,110,.13)}
.dark .bk-field-error{color:#ffb9b1}
@keyframes bk-nudge{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
@media (prefers-reduced-motion:reduce){.bk-policy-row.is-error{animation:none}}
/* the top banner (server errors, missing options): readable, and never scrolled under the fixed header */
#bk-error.booking-alert--error{scroll-margin-top:120px;color:#9f1c14;background:#fdecea;border-color:#e0584c;font-weight:700}
.dark #bk-error.booking-alert--error{color:#ffd5d0;background:rgba(239,68,68,.18);border-color:#ef6a5f}

/* a field the customer has to fix: outlined in red, its message right under it */
.bk-input.is-invalid,#bk-time-grid.is-invalid{border-color:#c0392b !important;box-shadow:0 0 0 3px rgba(192,57,43,.16) !important}
#bk-time-grid.is-invalid{border:1.5px solid #c0392b;border-radius:12px;padding:.4rem}
.dark .bk-input.is-invalid,.dark #bk-time-grid.is-invalid{border-color:#ff8f85 !important;box-shadow:0 0 0 3px rgba(255,120,110,.2) !important}
.bk-field-error{scroll-margin-top:140px}
.bk-submit-error{margin:0 0 .6rem;padding:.6rem .8rem;border-radius:12px;border:1.5px solid #e0584c;background:#fdecea}
.dark .bk-submit-error{background:rgba(239,68,68,.18);border-color:#ef6a5f}

/* the booking page's own button styles set a display that beat the "hidden" class, so a hidden button (Log in / Sign up for a signed-in client, Manage my profile for a visitor) still showed */
[class*="bk-"].hidden{display:none !important}
