.widget { max-width: 1120px; margin: 0 auto; padding: 20px; display: grid; gap: 20px; }
.widget__loading { color: var(--muted); padding: 40px 0; text-align: center; }
.widget__head h1 { font-size: 30px; }
.widget__head p { margin: 2px 0 0; color: var(--muted); }

.step { display: grid; gap: 10px; }
.step__title { font: 600 15px var(--body); color: var(--muted); letter-spacing: .01em; }

.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }

.stepper { display: inline-flex; justify-self: start; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; line-height: 1; border-radius: 8px; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 96px; text-align: center; font-weight: 600; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto;
  width: 70px;
  padding: 7px 4px;
  display: grid;
  justify-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  line-height: 1.2;
}
.day:hover { border-color: var(--ink); }
.day__weekday { font-size: 13px; color: var(--muted); }
.day__number { font: 600 22px var(--display); }
.day__month { font-size: 13px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day[aria-pressed="true"] .day__weekday,
.day[aria-pressed="true"] .day__month { color: inherit; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 44px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-weight: 600; display: grid; line-height: 1.2; justify-items: start; }
.slot small { font-weight: 400; font-size: 13px; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { background: transparent; color: var(--muted); text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot[aria-pressed="true"] small { color: inherit; }
.slot { max-width: 280px; }
.slot__price { font-weight: 500; font-size: 13px; line-height: 1.3; color: #6b4a0e; white-space: normal; text-align: left; }
.slot[aria-pressed="true"] .slot__price { color: inherit; }
.summary__price { font-size: 14px; color: #6b4a0e; font-weight: 600; }
.chip-price { color: #8a5d0a; font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.layout--slots { grid-template-columns: minmax(0, 560px); }
.panel--wide { position: static; }

.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; min-width: 0; }
.plan-scroll { overflow-x: auto; }

.table-list { display: flex; flex-wrap: wrap; gap: 6px; }
.table-chip { min-height: 38px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface); font-size: 14px; font-weight: 600; }
.table-chip small { font-weight: 400; color: var(--muted); }
.table-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.table-chip[aria-pressed="true"] small { color: inherit; }
.table-chip:disabled { border-color: var(--line); color: var(--muted); background: transparent; }

.table-chip--combo { border-style: dashed; }

.extra { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed #b9831a; border-radius: 8px; background: #fdf6e6; }
.extra p { margin: 0; font-size: 14px; }
.extra__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.extra__row small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.stepper--small button { width: 36px; height: 36px; font-size: 18px; }
.stepper--small output { min-width: 32px; }

.birthday { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.birthday.is-on { border-color: var(--accent); background: #f3f8f4; }
.birthday__toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 28px; }
.birthday__toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

.photo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-pick__img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent); background: var(--paper); }
input[type="file"].input { padding: 8px; font-size: 14px; }

.ticket__status { margin: 0; justify-self: start; padding: 3px 12px; border-radius: 99px; font-weight: 700; }
.ticket__status--active { background: #e8f2ec; color: #1f4f39; }
.ticket__status--pending { background: #f7ecd9; color: #6b4a0e; }
.ticket__status--cancelled, .ticket__status--expired { background: #fbeae6; color: #7c2a1d; }
.ticket .done { margin: 0; }
.ticket__photo { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.ticket__photo h3 { margin: 0; font-size: 16px; }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket__form { display: grid; gap: 12px; }
.ticket__form .form__pair { align-items: end; }
.ticket__deadline { font-size: 14px; color: var(--muted); }
.btn--big { min-height: 52px; font-size: 18px; padding: 8px 22px; }
.dialog { border: 0; border-radius: 12px; padding: 20px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 12px 40px rgba(40, 30, 15, .28); color: var(--ink); }
.dialog::backdrop { background: rgba(40, 30, 15, .4); }
.dialog h2 { font-size: 20px; margin-bottom: 6px; }
.dialog p { margin: 0 0 14px; }
.dialog__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; position: sticky; top: 12px; }
.panel h2 { font-size: 21px; }
.panel__empty { color: var(--muted); margin: 0; }
.summary { margin: 0; display: grid; gap: 2px; padding: 10px 12px; background: var(--paper); border-radius: 8px; }
.summary strong { font-size: 17px; }
.form { display: grid; gap: 10px; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form__privacy { font-size: 13px; color: var(--muted); margin: 0; }
.form__privacy a { color: inherit; }
.req { color: var(--danger); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.done h2 { font-size: 26px; }
.done p { margin: 0; }
.done__mail { overflow-wrap: anywhere; }
.done__code { font: 700 24px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.done dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.done dt { color: var(--muted); }
.done dd { margin: 0; font-weight: 600; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { color: var(--ink); margin-bottom: 6px; font-size: 22px; }

@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .top-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  .widget { padding: 12px; gap: 16px; }
  .widget__head h1 { font-size: 25px; }
  .plan-scroll .plan { min-width: 560px; }
  .form__pair { grid-template-columns: 1fr; }
}
