/* Выбор даты и времени в стиле сервиса */
.dp { position: relative; }
.dp .dp-field { cursor: pointer; padding-right: 44px !important; background-repeat: no-repeat !important; background-position: right 14px center !important; font-variant-numeric: tabular-nums; }
.dp .dp-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235C586B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") !important; }
.dp .dp-time { cursor: text; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235C586B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") !important; }
.dp .dp-field[aria-expanded=true] { outline: 2px solid var(--accent, #C2255C); outline-offset: 0; border-color: transparent; }

.dp-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 320px; max-width: calc(100vw - 32px); padding: 14px; background: #fff; color: var(--ink, #16141F);
  border: 1px solid var(--line, #E4E2EC); border-radius: 18px; box-shadow: 0 18px 50px -12px rgba(22,20,31,.28), 0 2px 6px rgba(22,20,31,.06);
  font: 15px/1.3 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; text-transform: none; letter-spacing: normal; font-weight: 400; animation: dpIn .14s ease-out; }
.dp-pop.dp-up { top: auto; bottom: calc(100% + 8px); }
.dp-pop[hidden] { display: none; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dp-pop { animation: none; } }

.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-weight: 700; font-size: 16px; }
.dp-nav { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--soft, #F6F5FA); color: var(--ink, #16141F); cursor: pointer; padding: 0; margin: 0; min-height: 0; }
.dp-nav:hover { background: #ECEAF3; }

.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dp-wd { font-size: 12px; color: var(--muted, #5C586B); text-align: center; padding: 4px 0 6px; font-weight: 600; }
.dp-we { color: var(--accent, #C2255C); }
.dp-day { height: 38px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink, #16141F); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; width: 100%; }
.dp-day.dp-we { color: var(--accent, #C2255C); }
.dp-day:hover { background: var(--soft, #F6F5FA); }
.dp-day:focus-visible, .dp-nav:focus-visible, .dp-link:focus-visible { outline: 2px solid var(--accent, #C2255C); outline-offset: 1px; }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line, #E4E2EC); font-weight: 600; }
.dp-day.is-sel, .dp-day.is-sel:hover { background: var(--accent, #C2255C); color: #fff; font-weight: 700; box-shadow: none; }

.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, #E4E2EC); }
.dp-link { border: 0; background: none; padding: 6px 8px; margin: 0; min-height: 0; width: auto; font: inherit; font-weight: 600; color: var(--accent, #C2255C); cursor: pointer; border-radius: 8px; }
.dp-link:hover { background: var(--accent-soft, #FCE8EF); }

.dp-pop-time { width: 340px; }
.tp-cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.tp-label { font-size: 12px; font-weight: 600; color: var(--muted, #5C586B); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tp-grid { display: grid; gap: 3px; }
.tp-hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-mins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-grid .dp-day { height: 34px; }
.tp-night:not(.is-sel) { color: #A4A0B3; }

@media (max-width: 420px) {
  .dp-pop { width: 100%; max-width: none; }
}
