/* Keep small controls independent of the typography's glyph baseline. */
.bright-booking {
  --booking-close-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --booking-chevron-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --booking-check-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4.5 4.5L19 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --booking-moon-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 15.2A8.8 8.8 0 0 1 8.8 3.5a8.8 8.8 0 1 0 11.7 11.7Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --booking-sun-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2m0 15v2m9.5-9.5h-2m-15 0h-2m16.2-6.7-1.4 1.4M6.7 17.3l-1.4 1.4m13.4 0-1.4-1.4M6.7 6.7 5.3 5.3'/%3E%3C/g%3E%3C/svg%3E");
  --booking-minus-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --booking-plus-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12M12 6v12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.bright-booking #myAppointments .appointments-icon {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.bright-booking :is(.booking-visit-remove, .appointment-action, .assistant-header button, .assistant-composer button) > svg {
  display: block;
  margin: 0;
}

html.bright-beauty .bright-booking :is(.time-dialog-head .time-dialog-close, .appointments-close button, .client-theme-toggle),
.bright-booking #bookingChat .assistant-collapse {
  position: relative;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.bright-booking .appointments-close button > span { display: none; }

.bright-booking :is(.time-dialog-close, .appointments-close button) { --booking-control-shape: var(--booking-close-shape); }
.bright-booking .client-theme-toggle { --booking-control-shape: var(--booking-moon-shape); }
.bright-booking .client-theme-toggle[aria-pressed="true"] { --booking-control-shape: var(--booking-sun-shape); }
.bright-booking .assistant-collapse { --booking-control-shape: var(--booking-minus-shape); }
.bright-booking .assistant-collapse[aria-expanded="false"] { --booking-control-shape: var(--booking-plus-shape); }
.bright-booking .month-head button { --booking-control-shape: var(--booking-chevron-shape); }

.bright-booking :is(.time-dialog-close, .appointments-close button, .client-theme-toggle, .assistant-collapse)::after,
.bright-booking .month-head button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border: 0;
  translate: -50% -50%;
  transform: none;
  background: currentColor;
  mask: var(--booking-control-shape) center / contain no-repeat;
  pointer-events: none;
  forced-color-adjust: none;
}

.bright-booking .month-head button:first-of-type::before { transform: scaleX(-1); }

.bright-booking :is(.procedure-check, .variant-check, .booking-steps .complete > span, .week-check > span, .date-check, #specialistMenu button span[aria-hidden]) {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  font-size: 0;
  line-height: 0;
}

.bright-booking :is([aria-pressed="true"] > .variant-check, [aria-pressed="true"] .procedure-check,
  .booking-steps .complete > span, .week-check[aria-checked="true"] > span, .week-check[aria-checked="mixed"] > span,
  [aria-pressed="true"] > .date-check, #specialistMenu button[aria-selected="true"] span[aria-hidden])::after {
  content: "";
  grid-area: 1 / 1;
  width: 13px;
  height: 13px;
  background: currentColor;
  mask: var(--booking-check-shape) center / contain no-repeat;
  forced-color-adjust: none;
}

.bright-booking .week-check[aria-checked="mixed"] > span::after {
  mask-image: var(--booking-minus-shape);
}
