/* Beauty Equipment Rental: booking widget.
   Inherits the theme font. Override the custom properties below in your theme to restyle. */

.beb {
  --beb-accent: #7a4b6e;
  --beb-on-accent: #fff;
  --beb-ink: #2a2230;
  --beb-muted: #6b6270;
  --beb-line: #e4dce2;
  --beb-soft: #f7f2f5;
  --beb-bg: #fff;
  --beb-page: #fff; /* page background, used for the ticket notches */
  --beb-ok: #2f7a57;
  --beb-warn: #c08318;
  --beb-err: #a4271f;
  color: var(--beb-ink);
  line-height: 1.5;
  max-width: 1040px;
  margin: 0 auto;
}
.beb *, .beb *::before, .beb *::after { box-sizing: border-box; }
.beb [hidden] { display: none !important; }

/* Neutralise theme button styles inside the widget. */
.beb button {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
  text-transform: none; letter-spacing: normal; box-shadow: none; line-height: inherit;
  min-height: 0; min-width: 0; width: auto; border-radius: 0; text-align: inherit; cursor: pointer;
}
.beb button:hover, .beb button:focus { background: none; color: inherit; box-shadow: none; }
.beb button:disabled { cursor: default; }
.beb button:focus-visible, .beb input:focus-visible, .beb textarea:focus-visible {
  outline: 2px solid var(--beb-accent); outline-offset: 2px;
}

/* Layout */
.beb .beb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 860px) {
  .beb .beb-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Steps */
.beb .beb-step { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--beb-line); }
.beb .beb-step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: inherit; }
.beb .beb-step-num {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--beb-accent); color: var(--beb-accent); font-size: .8125rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.beb .beb-step-lead { margin: 0 0 4px; font-weight: 500; }
.beb .beb-label { margin: 16px 0 8px; font-size: .8125rem; color: var(--beb-muted); }
.beb .beb-muted { color: var(--beb-muted); }

/* Equipment */
.beb .beb-eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.beb .beb-eq {
  display: flex; flex-direction: column; overflow: hidden; background: var(--beb-bg);
  border: 1px solid var(--beb-line); border-radius: 14px; transition: border-color .15s ease;
}
.beb .beb-eq:hover { border-color: var(--beb-accent); background: var(--beb-bg); }
.beb .beb-eq.is-selected { outline: 2px solid var(--beb-accent); outline-offset: -2px; border-color: var(--beb-accent); }
.beb .beb-eq img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; }
.beb .beb-eq-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.beb .beb-eq-name { font-weight: 600; line-height: 1.3; }
.beb .beb-eq-desc {
  font-size: .875rem; color: var(--beb-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.beb .beb-eq-price { margin-top: 2px; font-size: .875rem; font-weight: 600; color: var(--beb-accent); }

/* Rental type */
.beb .beb-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.beb .beb-mode {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--beb-bg);
  border: 1px solid var(--beb-line); border-radius: 10px;
}
.beb .beb-mode:hover { border-color: var(--beb-accent); background: var(--beb-bg); }
.beb .beb-mode.is-selected { background: var(--beb-accent); border-color: var(--beb-accent); color: var(--beb-on-accent); }
.beb .beb-mode-name { font-weight: 600; }
.beb .beb-mode-price { font-size: .8125rem; opacity: .8; }

/* Calendar */
.beb .beb-cal { max-width: 400px; }
.beb .beb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.beb .beb-cal-title { font-weight: 600; }
.beb .beb-cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--beb-line); }
.beb .beb-cal-nav:hover:not(:disabled) { border-color: var(--beb-accent); color: var(--beb-accent); }
.beb .beb-cal-nav:disabled { opacity: .35; }
.beb .beb-cal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.beb .beb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.beb .beb-cal-wd { padding-bottom: 4px; font-size: .75rem; color: var(--beb-muted); text-align: center; }
.beb .beb-day {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px;
  font-size: .9375rem; font-variant-numeric: tabular-nums; text-align: center;
}
.beb .beb-day::after {
  content: ""; position: absolute; left: 32%; right: 32%; bottom: 6px; height: 3px; border-radius: 2px; background: transparent;
}
.beb .beb-day.is-free::after { background: var(--beb-ok); }
.beb .beb-day.is-limited::after { background: var(--beb-warn); }
.beb .beb-day.is-full { color: var(--beb-muted); text-decoration: line-through; }
.beb .beb-day.is-closed, .beb .beb-day.is-out, .beb .beb-day.is-loading { color: #b5acb3; }
.beb .beb-day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.beb .beb-day:not(:disabled):hover { background: var(--beb-soft); }
.beb .beb-day.is-selected, .beb .beb-day.is-selected:hover { background: var(--beb-accent); color: var(--beb-on-accent); }
.beb .beb-day.is-selected::after { background: var(--beb-on-accent); opacity: .7; }
.beb .beb-cal.is-loading .beb-cal-grid { opacity: .6; }
.beb .beb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: .8125rem; color: var(--beb-muted); }
.beb .beb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.beb .beb-legend span::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: var(--beb-line); }
.beb .beb-legend .is-free::before { background: var(--beb-ok); }
.beb .beb-legend .is-limited::before { background: var(--beb-warn); }
.beb .beb-legend .is-full::before { background: var(--beb-muted); height: 1px; }

/* Time choices */
.beb .beb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.beb .beb-pill {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: var(--beb-bg);
  border: 1px solid var(--beb-line); border-radius: 999px; font-variant-numeric: tabular-nums;
}
.beb .beb-pill small { font-size: .8125rem; color: var(--beb-muted); }
.beb .beb-pill:hover { border-color: var(--beb-accent); background: var(--beb-bg); }
.beb .beb-pill.is-selected, .beb .beb-block.is-selected { background: var(--beb-accent); border-color: var(--beb-accent); color: var(--beb-on-accent); }
.beb .beb-pill.is-selected small, .beb .beb-block.is-selected span { color: inherit; opacity: .85; }
.beb .beb-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.beb .beb-block {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--beb-bg);
  border: 1px solid var(--beb-line); border-radius: 10px;
}
.beb .beb-block:hover:not(:disabled) { border-color: var(--beb-accent); }
.beb .beb-block strong { font-weight: 600; }
.beb .beb-block span { font-size: .875rem; color: var(--beb-muted); font-variant-numeric: tabular-nums; }
.beb .beb-block:disabled { opacity: .5; }

/* Messages */
.beb .beb-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; font-size: .875rem; }
.beb .beb-msg.is-info { background: var(--beb-soft); color: var(--beb-ink); }
.beb .beb-msg.is-error { background: #fbeeed; color: var(--beb-err); }
.beb .beb-step-body > .beb-msg:first-child { margin: 0 0 12px; }

/* Form */
.beb .beb-form { display: grid; gap: 14px; max-width: 560px; }
.beb .beb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .beb .beb-row { grid-template-columns: 1fr; } }
.beb .beb-field { display: flex; flex-direction: column; gap: 6px; }
.beb .beb-field label { font-size: .875rem; font-weight: 500; }
.beb .beb-field input, .beb .beb-field textarea {
  width: 100%; margin: 0; padding: 10px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid #d2c8cf; border-radius: 8px; box-shadow: none;
}
.beb .beb-field input:focus, .beb .beb-field textarea:focus { border-color: var(--beb-accent); outline: 2px solid var(--beb-accent); outline-offset: 0; }
.beb .beb-check { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.beb .beb-check input { margin-top: 4px; accent-color: var(--beb-accent); }
.beb .beb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beb .beb-submit, .beb .beb-again {
  justify-self: start; padding: 12px 24px; border-radius: 999px; font-weight: 600;
  background: var(--beb-accent); color: var(--beb-on-accent);
}
.beb .beb-submit:hover, .beb .beb-submit:focus, .beb .beb-again:hover, .beb .beb-again:focus {
  background: color-mix(in srgb, var(--beb-accent) 85%, #000); color: var(--beb-on-accent);
}
.beb .beb-submit:disabled { opacity: .6; cursor: progress; }

/* Done */
.beb .beb-done { padding: 28px; border-radius: 16px; background: var(--beb-soft); }
.beb .beb-done:focus { outline: none; }
.beb .beb-done h3 { margin: 0 0 8px; font-size: 1.25rem; }
.beb .beb-done p { margin: 0 0 12px; }

/* Ticket: the booking summary */
.beb .beb-ticket { position: sticky; top: 24px; overflow: hidden; background: var(--beb-soft); border-radius: 16px; }
@media (max-width: 860px) { .beb .beb-ticket { position: static; } }
.beb .beb-ticket-empty { margin: 0; padding: 20px; color: var(--beb-muted); font-size: .9375rem; }
.beb .beb-ticket-top { padding: 20px 20px 18px; }
.beb .beb-ticket-kicker { margin: 0 0 14px; font-size: .875rem; font-weight: 600; color: var(--beb-accent); }
.beb .beb-ticket dl { display: grid; gap: 12px; margin: 0; }
.beb .beb-ticket dl div { display: grid; gap: 1px; }
.beb .beb-ticket dt { margin: 0; font-size: .75rem; font-weight: 400; color: var(--beb-muted); }
.beb .beb-ticket dd { margin: 0; font-weight: 500; }
.beb .beb-ticket-bottom {
  position: relative; padding: 18px 20px 20px;
  border-top: 2px dashed color-mix(in srgb, var(--beb-accent) 28%, transparent);
}
.beb .beb-ticket-bottom::before, .beb .beb-ticket-bottom::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--beb-page);
}
.beb .beb-ticket-bottom::before { left: -10px; }
.beb .beb-ticket-bottom::after { right: -10px; }
.beb .beb-ticket-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.beb .beb-ticket-total span { font-size: .875rem; }
.beb .beb-ticket-total strong { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.beb .beb-ticket-bottom p { margin: 8px 0 0; font-size: .8125rem; color: var(--beb-muted); }

@media (prefers-reduced-motion: reduce) {
  .beb * { transition: none !important; }
}
