/* ============================================================
   СЕЗОННОЕ ХРАНЕНИЕ КОЛЁС — локальные стили
   Дополняет /uslugi/sezonnaya-smena-shin/page.css
   ============================================================ */

/* ===== Блок «Проверить мои колёса» ===== */
.storage-search {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.storage-search__form {
  display: flex;
  gap: 10px;
}

.storage-search__form .field {
  flex: 1;
  margin-bottom: 0;
}

.storage-search__form .btn-primary {
  width: auto;
  flex: 0 0 auto;
  padding: 13px 24px;
}

@media (max-width: 600px) {
  .storage-search__form {
    flex-direction: column;
  }
  .storage-search__form .btn-primary {
    width: 100%;
  }
}

.storage-search__msg {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.storage-search__msg--error { color: #f87171; }
.storage-search__msg--ok    { color: #34d399; }

/* ===== Список карточек договоров ===== */
#storageResults {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storage-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: start;
}

@media (max-width: 600px) {
  .storage-card {
    grid-template-columns: 1fr;
  }
}

.storage-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.storage-card__num {
  font-family: monospace;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.storage-card__status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.storage-card__status--stored {
  color: #34d399;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.3);
}

.storage-card__status--return_requested {
  color: #fbbf24;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.3);
}

.storage-card__status--returned {
  color: var(--muted);
  background: rgba(154,160,166,.1);
  border: 1px solid var(--border);
}

.storage-card__status--expired {
  color: #f87171;
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.3);
}

.storage-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.storage-card__body strong {
  color: var(--text);
  font-weight: 700;
}

.storage-card__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.storage-card__label {
  font-size: 12px;
  min-width: 110px;
  color: var(--muted);
}

.storage-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .storage-card__actions { justify-content: stretch; }
}

.storage-card__btn {
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}

.storage-card__btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.storage-card__btn:disabled {
  cursor: default;
  opacity: .5;
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

@media (max-width: 600px) {
  .storage-card__btn { width: 100%; }
}

/* ===== Таблица цен для хранения (3 колонки) ===== */
.price-table--storage {
  min-width: 0;
}
.price-table--storage thead th {
  text-align: center;
}
.price-table--storage thead th:first-child {
  text-align: left;
  min-width: 140px;
}
.price-table--storage tbody td {
  text-align: center;
  font-size: 16px;
  padding: 14px 12px;
}
.price-table--storage tbody td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.price-table--storage tbody td:nth-child(2) {
  color: var(--text);
  font-weight: 700;
}
.price-table--storage tbody td:nth-child(3) {
  color: var(--accent);
  font-weight: 800;
}