.day-btn {
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.day-btn.selected {
  background: var(--color-base-primary);
  color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-bg-accent);
}
.day-btn.unavailable {
  color: var(--color-base-primary);
  background: var(--color-bg-accent);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}
.day-label {
  font-size: 0.85rem;
  color: var(--color-base-primary);
  margin-top: -2px;
}
.day-btn.selected .day-label {
  color: var(--color-white);
}

.btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-accent);
  color: var(--color-base-primary);
  transition: background 0.2s, opacity 0.2s;
}
.btn-arrow:hover, .btn-arrow:focus {
  background: var(--color-bg-accent);
}
.btn-arrow:disabled,
.btn-arrow.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.time-slots {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.time-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-bg-accent);
  border-radius: 12px;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 6px;
  min-height: 42px;
  transition: border 0.2s, color 0.2s, background 0.2s;
  text-align: center;
  width: 100%;
}
.time-btn.selected {
  border: 2px solid var(--color-base-primary);
  color: var(--color-base-primary);
  background: var(--color-base-bg-light);
  box-shadow: 0 0 0 2px var(--color-bg-accent);
}
.time-btn:focus {
  outline: none;
  border-color: var(--color-primary-hover);
}

.time-slot-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 42px;
  background: var(--color-base-bg-light);
  border: 1px solid var(--color-border);
}

.time-slot-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-white-0) 0%,
    var(--color-white-70) 50%,
    var(--color-white-0) 100%
  );
  transform: translateX(-100%);
  animation: time-slot-shimmer 1.15s infinite;
}

@keyframes time-slot-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.time-slots-empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 14px;
  background: var(--color-base-bg-light);
  text-align: center;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.time-slots-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.time-slots-empty-description {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.nearest-available-date-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-base-primary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.nearest-available-date-btn:hover,
.nearest-available-date-btn:focus-visible {
  color: var(--color-base-primary);
  opacity: 0.85;
}

.weeks-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .time-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .time-btn {
    font-size: 0.9rem;
    min-height: 40px;
    padding: 8px 4px;
  }

  #days-container {
    gap: 4px !important;
  }
  .day-btn {
    width: 44px;
    height: 44px;
  }
  .day-label {
    font-size: 0.7rem;
  }
} 

@media (max-width: 767px) {
  .booking-schedule-page.booking-page {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px)) !important;
  }
}