.slot-list-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-list-title {
  font-weight: 700;
  color: #0f172a;
}

.slot-list-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.slot-list-widget--single-day .slot-list-days,
.slot-list-widget--two-days .slot-list-days {
  justify-content: center;
}

.slot-list-widget--single-day .slot-day-card,
.slot-list-widget--two-days .slot-day-card {
  width: min(100%, 240px);
}

.slot-day-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.slot-day-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.slot-day-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-day-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.slot-day-weekday {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.slot-list-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.slot-list-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 10px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.slot-list-button:hover {
  border-color: #60a5fa;
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(96, 165, 250, 0.14);
}

.slot-list-button.selected {
  border-color: #2563eb;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.22);
}

.slot-list-time {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.slot-list-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.slot-list-button--read-only:disabled {
  cursor: default;
  opacity: 1;
  color: #1d4ed8;
  background: #ffffff;
  border-color: #bfdbfe;
}

.slot-list-button--read-only:disabled {
  cursor: default;
  opacity: 1;
  color: #1d4ed8;
  background: #ffffff;
  border-color: #bfdbfe;
}

.slot-list-button--read-only:disabled {
  cursor: default;
  opacity: 1;
  color: #1d4ed8;
  background: #ffffff;
  border-color: #bfdbfe;
}

@media (min-width: 900px) {
  .slot-list-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .slot-list-days {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .slot-list-days {
    grid-template-columns: 1fr;
  }

  .slot-list-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .slot-list-actions {
    grid-template-columns: 1fr;
  }
}
