/* Tire service / booking page */
.ts {
  padding: clamp(12px, 2.5vw, 24px);
  font-family: sans-serif;
}
.ts .price-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.ts .ts-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 18px;
}
.ts .ts-section h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 28px);
}
.ts .ts-section p.ts-text { color: #374151; line-height: 1.6; }
.ts .ts-section p.ts-muted { color: #6b7280; }
.ts .ts-section p.ts-muted-top { margin-top: 12px; color: #6b7280; }
.ts-booking {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.ts-booking h3 { margin: 0 0 8px; }
.ts-booking .ts-booking-desc { color: #6b7280; margin: 0 0 12px; font-size: 14px; }
.ts-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ts-calendar-header button {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.ts-calendar-header strong { font-size: 15px; }
.ts-calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ts-calendar thead tr { color: #6b7280; }
.ts-calendar th { padding: 4px; text-align: center; width: 14%; }
#ts-slots-wrap { display: none; margin-top: 16px; }
#ts-slots-wrap .ts-slots-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
#ts-slots-short-hint { margin: 0 0 8px; font-size: 12px; color: #92400e; display: none; }
#ts-slots-wrap .ts-slots-hint { margin: 0 0 8px; font-size: 12px; color: #6b7280; }
#ts-slots-list { display: flex; flex-wrap: wrap; gap: 6px; }
#ts-book-form { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
#ts-book-form .ts-form-title { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
#ts-book-form .ts-form-desc { margin: 0 0 10px; font-size: 13px; color: #6b7280; }
#ts-book-form-inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
#ts-book-form label { display: block; margin-bottom: 4px; font-size: 12px; }
#ts-client-name, #ts-client-phone {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}
#ts-client-name { width: 140px; }
#ts-client-phone { width: 180px; }
#ts-phone-error { display: none; font-size: 12px; color: #dc2626; margin-top: 4px; }
#ts-book-submit {
  padding: 8px 16px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
#ts-book-form .ts-form-comment-wrap { flex-basis: 100%; margin-top: 4px; }
#ts-client-comment {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 330px;
  max-width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
#ts-book-message { margin: 10px 0 0; font-size: 13px; display: none; }
#ts-book-message.ts-message--error { color: #dc2626; }

.ts-book-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  box-sizing: border-box;
}
.ts-book-modal.is-open { display: flex !important; }
#ts-book-modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.ts-book-modal .ts-modal-icon { font-size: 48px; margin-bottom: 12px; }
#ts-book-modal-message { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: #374151; }
#ts-book-modal-close {
  padding: 10px 24px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ts-aside {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 18px;
}
.ts-aside h3 { margin: 0 0 8px; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.price-table thead tr { background: #f9fafb; color: #6b7280; }
.price-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.price-table th:nth-child(1) { width: 40%; }
.price-table th:nth-child(2), .price-table th:nth-child(3) { text-align: right; width: 30%; }
.price-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.price-table td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-table td:nth-child(2), .price-table td:nth-child(3) { text-align: right; font-weight: 700; }
.price-table .price-empty { color: #6b7280; text-align: center; }
.ts-aside .ts-updated { margin-top: 8px; color: #6b7280; font-size: 14px; }

.ts-slot {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
.ts-slot-free { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ts-slot-free:hover { background: #d1fae5; }
.ts-slot-pending { background: #fef3c7; color: #92400e; cursor: default; }
.ts-slot-confirmed { background: #f3f4f6; color: #6b7280; cursor: default; }

.ts-cal-day { padding: 6px; text-align: center; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.ts-cal-day:hover:not(.ts-cal-day-past):not(.ts-cal-day-empty):not(.ts-cal-day-off) { background: #f0f9ff; border-color: #0ea5e9; }
.ts-cal-day-past, .ts-cal-day-empty, .ts-cal-day-off { color: #d1d5db; cursor: default; }
.ts-cal-day-off { background: #f3f4f6; }
.ts-cal-day-today { font-weight: 700; color: #0ea5e9; }
.ts-cal-day-selected { background: #0ea5e9; color: #fff; border-color: #0284c7; }

.ts-slots-loading, .ts-slots-empty { color: #6b7280; }
.ts-slots-error { color: #dc2626; }

@media (max-width: 768px) {
  .ts .price-layout { display: flex !important; flex-direction: column !important; }
  .price-table { font-size: 14px; }
  .price-table th, .price-table td { padding: 8px 10px !important; }
}
