/*
 * Стили раздела «Авто-публикация» в Профиле (v99, 07.11.2026).
 * Карточка, плитки разделов и статус берутся из restock.css — здесь только
 * то, чего там нет: переключатель и поле времени.
 */

.daily-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  cursor: pointer;
  user-select: none;
}

.daily-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.daily-switch-box {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.daily-switch-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  box-sizing: border-box;
  transition: transform 0.15s ease, background 0.15s ease;
}

.daily-switch input:checked + .daily-switch-box {
  background: var(--accent);
  border-color: var(--accent);
}

.daily-switch input:checked + .daily-switch-box::after {
  transform: translateX(18px);
  border-color: transparent;
}

.daily-switch-label {
  font-size: 15px;
  color: var(--text);
}

.daily-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 2px;
}

.daily-time-label {
  font-size: 14px;
  color: var(--muted);
}

.daily-time {
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 112px;
}

.daily-time:focus {
  outline: none;
  border-color: var(--accent);
}
