/* Personalized Selector v5 — all controls belong to the VIP·DXB·RUS design system. */
.dialog--selector {
  width: min(960px, calc(100vw - 32px));
  height: min(600px, calc(100svh - 32px));
}

.step-content--catalog,
.step-content--details,
.step-content--date {
  padding: 22px 30px 18px;
}

.step-content--catalog > p,
.step-content--details > p,
.step-content--date > p {
  margin-bottom: 14px;
}

.service-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.service-group h3 {
  margin: 0 0 7px;
  color: var(--copper-deep);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.service-group--wide { grid-column: 1 / -1; }
.service-group__items { display: grid; gap: 6px; }
.service-group--wide .service-group__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-choice {
  min-height: 55px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}

.service-choice:hover,
.service-choice:focus-visible,
.service-choice.is-selected {
  border-color: var(--copper);
  background: var(--paper-soft);
}

.service-choice .choice-card__icon {
  width: 28px;
  height: 28px;
}

.service-choice .choice-card__icon .ui-icon { width: 15px; height: 15px; }
.service-choice strong { display: block; font-family: var(--display); font-size: 12px; font-weight: 400; line-height: 1.15; }
.service-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 6.8px; line-height: 1.25; }
.service-choice > .ui-icon { width: 12px; height: 12px; color: var(--copper-deep); }

.selector-footer__hint {
  display: inline-flex;
  max-width: 475px;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
}

.selector-footer__hint .ui-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--copper-deep); }

.detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.detail-question { min-width: 0; }
.detail-question--choice:first-child { grid-column: 1 / -1; }
.detail-form--car .detail-question { grid-column: 1 / -1; }
.detail-question h3 {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
}

.detail-question h3 > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-deep);
  font-family: var(--ui);
  font-size: 9px;
}

.detail-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.detail-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.detail-option {
  min-height: 54px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}

.detail-option:hover,
.detail-option:focus-visible,
.detail-option.is-selected {
  border-color: var(--copper);
  background: var(--paper-soft);
}

.detail-option .ui-icon { width: 12px; height: 12px; flex: 0 0 auto; color: var(--copper-deep); }

.brand-field {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--copper-deep);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.brand-field:focus-within { border-color: var(--copper); box-shadow: inset 2px 0 0 var(--copper); }
.brand-field > .ui-icon { width: 15px; height: 15px; justify-self: center; }
.brand-field input {
  width: 100%;
  height: 52px;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 10px;
}

.brand-field input::placeholder { color: transparent; }
.brand-field > span { position: absolute; left: 30px; color: var(--muted); font-size: 9px; pointer-events: none; transition: opacity var(--fast); }
.brand-field input:focus + span,
.brand-field input:not(:placeholder-shown) + span { opacity: 0; }

.detail-counter {
  width: 160px;
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-counter button { display: grid; place-items: center; background: transparent; color: var(--copper-deep); cursor: pointer; }
.detail-counter button:hover,
.detail-counter button:focus-visible { background: var(--paper-soft); }
.detail-counter .ui-icon { width: 14px; height: 14px; }
.detail-counter output { display: grid; place-items: center; border-inline: 1px solid var(--line); font-family: var(--display); font-size: 16px; }
.detail-question__note { display: block; margin-top: 6px; color: var(--muted); font-size: 7.5px; }

.compound-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 12px;
}

.compound-control > small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 7.5px;
}

.compound-control .detail-counter { width: 100%; }

.date-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.date-tiles { display: grid; gap: 7px; }
.date-tile {
  min-height: 85px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}

.date-tile:hover,
.date-tile:focus-visible,
.date-tile.is-selected { border-color: var(--copper); background: var(--paper-soft); }
.date-tile .choice-card__icon { width: 34px; height: 34px; }
.date-tile strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 400; }
.date-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.date-tile > .ui-icon { width: 12px; height: 12px; color: var(--copper-deep); }

.date-preview {
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-align: center;
}

.date-preview .ui-icon { width: 38px; height: 38px; margin-bottom: 15px; color: var(--copper-deep); }
.date-preview strong { font-family: var(--display); font-size: 24px; font-weight: 400; }
.date-preview small { margin-top: 7px; color: var(--muted); font-size: 8px; }

.brand-calendar {
  min-width: 0;
  padding: 12px 16px 10px;
  border: 1px solid var(--copper);
  background: #fff;
}

.brand-calendar > header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
}

.brand-calendar > header strong { text-align: center; font-family: var(--display); font-size: 17px; font-weight: 400; text-transform: capitalize; }
.brand-calendar > header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.brand-calendar > header button:hover,
.brand-calendar > header button:focus-visible { border-color: var(--copper); color: var(--copper-deep); }
.brand-calendar > header button:disabled { opacity: .25; cursor: default; }
.brand-calendar > header .ui-icon { width: 14px; height: 14px; }

.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { margin-top: 8px; }
.calendar-weekdays span { padding: 6px 0; color: var(--muted); text-align: center; font-size: 8px; font-weight: 600; }
.calendar-days { gap: 2px; }
.calendar-day {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 10px;
  cursor: pointer;
}

.calendar-day:hover:not(:disabled),
.calendar-day:focus-visible:not(:disabled) { border-color: var(--copper); color: var(--copper-deep); }
.calendar-day.is-selected { border-color: var(--copper-deep); background: var(--copper-deep); color: #fff; }
.calendar-day:disabled { color: rgba(26, 23, 20, .25); cursor: default; }
.calendar-day.is-outside { opacity: .4; }
.brand-calendar > footer {
  margin-top: 7px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.brand-calendar > footer .ui-icon { width: 14px; height: 14px; color: var(--copper-deep); }
.brand-calendar > footer strong { color: var(--copper-deep); font-weight: 600; }
.review-row {
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  overflow: hidden;
}

.review-row > span { min-width: 0; }

.review-row strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.review-row > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  justify-self: end;
}

.review-row--details strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.4;
  white-space: normal;
}
.ready-actions .ui-icon[data-icon="whatsapp"] { width: 15px; height: 15px; }

html[dir="rtl"] .service-choice,
html[dir="rtl"] .date-tile { text-align: right; }
html[dir="rtl"] .brand-field > span { right: 30px; left: auto; }
html[dir="rtl"] .brand-field input { padding: 0 0 0 10px; }

@media (max-width: 1023px), (max-height: 699px) {
  .dialog--selector { width: min(960px, calc(100vw - 20px)); height: auto; }
  .step-content--catalog,
  .step-content--details,
  .step-content--date { padding: 24px 28px; }
}

@media (max-width: 720px) {
  .service-catalog,
  .detail-form,
  .date-layout { grid-template-columns: 1fr; }
  .service-group--wide { grid-column: auto; }
  .service-group--wide .service-group__items { grid-template-columns: 1fr; }
  .detail-question--choice:first-child { grid-column: auto; }
  .compound-controls { grid-template-columns: 1fr; }
  .detail-options--3,
  .detail-options--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-calendar { min-height: 330px; }
}
