/* yoursiteisdone — shared interactive-widget styles
 * Used by per-sample widget bundles (booking forms, quote calculators, etc).
 * Each sample loads its own CSS first, then this file provides the shared
 * primitives. Designed to inherit each sample's local --accent / palette so
 * widgets feel native to whichever sample they're embedded in.
 */

/* shared widget primitives */
.ysid-w {
  --w-bg: #fff;
  --w-fg: #1a1a1a;
  --w-muted: #6b6b6b;
  --w-line: #e6e3dc;
  --w-radius: 12px;
  --w-radius-sm: 8px;
  --w-accent: #ea5234;
  --w-accent-ink: #fff;
  --w-success: #047857;
  --w-success-bg: #ecfdf5;
}

.ysid-w__step-indicator {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.ysid-w__step {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--w-muted); font-weight: 600;
}
.ysid-w__step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--w-line); color: var(--w-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.ysid-w__step.is-active .ysid-w__step-dot {
  background: var(--w-accent); color: var(--w-accent-ink);
}
.ysid-w__step.is-done .ysid-w__step-dot {
  background: var(--w-success); color: #fff;
}
.ysid-w__step-bar {
  height: 1px; background: var(--w-line); flex: 1; min-width: 12px;
}

/* --- Date grid (small calendar)  --- */
.ysid-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  font-family: inherit;
}
.ysid-cal__head {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--w-muted); text-align: center; padding: 6px 0;
}
.ysid-cal__day {
  appearance: none; -webkit-appearance: none;
  background: var(--w-bg); border: 1px solid var(--w-line);
  border-radius: var(--w-radius-sm);
  padding: 12px 0; text-align: center;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--w-fg); cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ysid-cal__day:hover { border-color: var(--w-accent); }
.ysid-cal__day.is-out { color: #c7c7c7; cursor: default; }
.ysid-cal__day.is-out:hover { border-color: var(--w-line); }
.ysid-cal__day.is-disabled { background: #f5f5f5; color: #c7c7c7; cursor: not-allowed; }
.ysid-cal__day.is-disabled:hover { border-color: var(--w-line); }
.ysid-cal__day.is-today { font-weight: 800; }
.ysid-cal__day.is-selected {
  background: var(--w-accent); color: var(--w-accent-ink);
  border-color: var(--w-accent);
}

/* --- Time slot grid --- */
.ysid-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.ysid-slot {
  appearance: none; -webkit-appearance: none;
  background: var(--w-bg); border: 1px solid var(--w-line);
  border-radius: 999px; padding: 9px 12px;
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  color: var(--w-fg); cursor: pointer; text-align: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ysid-slot:hover { border-color: var(--w-accent); color: var(--w-accent); }
.ysid-slot.is-full {
  background: #f5f5f5; color: #c7c7c7; cursor: not-allowed;
  text-decoration: line-through;
}
.ysid-slot.is-full:hover { border-color: var(--w-line); color: #c7c7c7; }
.ysid-slot.is-selected {
  background: var(--w-accent); color: var(--w-accent-ink);
  border-color: var(--w-accent);
}
.ysid-slot small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.85; margin-top: 2px; }

/* --- Quantity stepper --- */
.ysid-qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--w-line); border-radius: 999px; overflow: hidden;
  background: var(--w-bg);
}
.ysid-qty button {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; padding: 6px 14px; cursor: pointer;
  font-family: inherit; font-size: 1.1rem; font-weight: 600; color: var(--w-fg);
  line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}
.ysid-qty button:hover { background: var(--w-accent); color: var(--w-accent-ink); }
.ysid-qty button:disabled { color: #c7c7c7; cursor: not-allowed; background: transparent; }
.ysid-qty__val { padding: 6px 8px; font-weight: 700; min-width: 32px; text-align: center; }

/* --- Confirmation card --- */
.ysid-confirm {
  background: var(--w-success-bg); border: 1px solid #a7f3d0;
  border-radius: var(--w-radius); padding: 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: start;
}
.ysid-confirm__check {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--w-success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900;
}
.ysid-confirm h4 {
  margin: 0 0 4px; color: #064e3b; font-size: 1.15rem; letter-spacing: -0.005em;
}
.ysid-confirm p { margin: 0 0 8px; color: #065f46; }
.ysid-confirm dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px;
  margin: 12px 0 0; font-size: 0.92rem;
}
.ysid-confirm dt { color: #047857; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; padding-top: 2px; }
.ysid-confirm dd { margin: 0; color: #064e3b; font-weight: 600; }
.ysid-confirm__cancel {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1px solid #047857; color: #047857;
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  margin-top: 12px;
}
.ysid-confirm__cancel:hover { background: #047857; color: #fff; }

/* --- Live mat / availability dots --- */
.ysid-avail {
  display: inline-flex; gap: 3px; vertical-align: middle;
}
.ysid-avail span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--w-success);
}
.ysid-avail span.is-taken { background: var(--w-line); }

/* --- Price summary panel --- */
.ysid-summary {
  background: #f9f7f3; border: 1px solid var(--w-line);
  border-radius: var(--w-radius); padding: 18px 20px;
  display: grid; gap: 8px;
}
.ysid-summary__row { display: flex; justify-content: space-between; gap: 12px; }
.ysid-summary__row .lbl { color: var(--w-muted); }
.ysid-summary__row .val { font-weight: 600; color: var(--w-fg); }
.ysid-summary__total {
  border-top: 1px solid var(--w-line); margin-top: 4px; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.ysid-summary__total .val {
  font-size: 1.4rem; font-weight: 800;
}

/* --- VIN/inputs row helpers --- */
.ysid-field {
  display: block; margin-bottom: 14px;
}
.ysid-field > label {
  display: block; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--w-muted); font-weight: 700;
  margin-bottom: 6px;
}
.ysid-field input, .ysid-field select, .ysid-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--w-line); border-radius: var(--w-radius-sm);
  background: var(--w-bg); color: var(--w-fg);
  font-family: inherit; font-size: 1rem;
}
.ysid-field input:focus, .ysid-field select:focus, .ysid-field textarea:focus {
  outline: none; border-color: var(--w-accent);
  box-shadow: 0 0 0 4px rgba(234, 82, 52, 0.10);
}

/* --- Stepper buttons (next/back) --- */
.ysid-step-actions {
  display: flex; gap: 12px; margin-top: 18px; align-items: center;
}
.ysid-btn {
  appearance: none; -webkit-appearance: none;
  background: var(--w-accent); color: var(--w-accent-ink);
  border: none; padding: 12px 22px; border-radius: 999px;
  font-family: inherit; font-size: 0.94rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.04em;
  transition: background 140ms ease;
}
.ysid-btn:hover { background: var(--w-accent-ink, #000); }
.ysid-btn:disabled { background: var(--w-line); color: var(--w-muted); cursor: not-allowed; }
.ysid-btn--ghost {
  background: transparent; color: var(--w-fg); border: 1px solid var(--w-line);
}
.ysid-btn--ghost:hover { background: transparent; border-color: var(--w-fg); }

/* --- Empty state --- */
.ysid-empty {
  padding: 22px; text-align: center;
  color: var(--w-muted); font-style: italic; font-size: 0.94rem;
  border: 1px dashed var(--w-line); border-radius: var(--w-radius);
}

/* --- Live "X spots left" pill --- */
.ysid-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ysid-pill--ok   { background: #d1fae5; color: #047857; }
.ysid-pill--low  { background: #fef3c7; color: #92400e; }
.ysid-pill--full { background: #f5f5f5; color: #6b6b6b; }
