/* Merchant web registration (/merchant/register/). Loaded after
   driver-register.css, whose generic dr-* wizard components it reuses;
   only the merchant-specific pieces live here (type cards, map pin,
   opening hours). Mobile-first; site.css tokens. */

.mr-progress .dr-progress__list { gap: 3px; }
.mr-progress .dr-progress__dot { width: 28px; height: 28px; font-size: 12.5px; }

.mr-optional {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px;
  border-radius: 99px; background: #eef1ef; color: #3d4a43; vertical-align: middle;
}
.mr-rules {
  font-size: 14.5px; line-height: 1.5; background: #fff7e6; border: 1px solid #f2d39b; color: #6b4708;
  border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px;
}
.mr-rules--soft { background: var(--tint-soft); border-color: #bfe3cd; color: #075d31; }

/* B. Business type cards */
.mr-types { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .mr-types { grid-template-columns: 1fr 1fr; } }
.mr-type { position: relative; display: block; }
.mr-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mr-type__card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-items: center; border: 1.5px solid var(--field-line); border-radius: 16px; padding: 14px 16px; background: #fff;
}
.mr-type__icon { grid-row: 1 / span 2; font-size: 28px; line-height: 1; }
.mr-type__title { font-size: 17px; }
.mr-type__body { font-size: 14px; line-height: 1.45; color: var(--muted); }
.mr-type input:checked + .mr-type__card { background: var(--tint-soft); border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.mr-type input:focus-visible + .mr-type__card { outline: 2px solid var(--green); outline-offset: 2px; }
.mr-type input:disabled + .mr-type__card { opacity: .6; }

/* E. Map pin */
.mr-map {
  position: relative; height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--field-line);
  background: #eef3f0;
}
@media (min-width: 640px) { .mr-map { height: 320px; } }
.mr-map__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 14.5px; color: var(--muted); }
.mr-map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.mr-map__bar .dr-btn { height: 42px; font-size: 14.5px; }
.mr-map__coords { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mr-map.is-locked { opacity: .75; }
.mr-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(-45deg);
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); cursor: grab;
}

/* F. Opening hours */
.mr-hours { display: flex; flex-direction: column; margin-bottom: 6px; }
.mr-day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mr-day__toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 32px; }
.mr-day__toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); flex: none; }
.mr-day__name { font-weight: 600; font-size: 15.5px; flex: 1; }
.mr-day__state { font-size: 13.5px; color: var(--muted); }
.mr-day__periods { margin: 8px 0 0 34px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mr-period { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 8px; width: 100%; max-width: 320px; }
.mr-period [data-remove-period] { grid-column: 1 / -1; justify-self: start; }
.mr-time { width: 100%; min-width: 0; height: 44px; padding: 0 6px; }
.mr-day__periods .dr-link { padding: 2px 0; font-size: 14px; }

.mr-status-licence { border: 1px solid #e1e8e4; border-radius: 16px; padding: 4px 16px 10px; margin: 14px 0; }
