.datetime-picker {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: min(94vw, 360px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.07),
              0 2px 2px rgba(0,0,0,0.08);
}

.datetime-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.datetime-picker-title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: center;
  width: 100%;
  margin: 0;
}

.datetime-picker-content {
  padding: 14px 14px 16px;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-title {
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

.month-btn {
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: #1e88e5;
  font-size: 18px;
  line-height: 1;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 18px;
}

.weekday {
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  color: #999;
}

.date-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  color: #000;
  transition: background-color 0.2s, color 0.2s;
  padding: 0;
  margin: 1px;
  line-height: 1;
}

.date-cell:hover {
  background: #f0f7ff;
}

.date-cell.placeholder {
  visibility: hidden;
  pointer-events: none;
}

.date-cell.selected {
  background: #1e88e5;
  color: #fff;
}

.date-cell.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.date-cell.today:not(.selected) {
  background: rgba(30, 136, 229, 0.12);
  color: #1e88e5;
}

.date-cell.weekend:not(.selected):not(.disabled) {
  color: #ff7043;
}

.date-cell .date-cell-num {
  display: block;
}

.time-section {
  margin-top: 16px;
}

.time-period-label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px 2px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.time-slot {
  padding: 10px 6px;
  text-align: center;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #000;
  transition: all 0.2s;
}

.time-slot:hover:not(.disabled) {
  background: #e3f2fd;
}

.time-slot.selected {
  background: #1e88e5;
  color: white;
}

.time-slot.disabled {
  color: #ccc;
  background: #f8f8f8;
  cursor: not-allowed;
}

/* Service info */
.service-info {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

.chip.datetime-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  height: calc(var(--chip-h) * 2 + var(--gap-y));
  min-height: calc(var(--chip-h) * 2 + var(--gap-y));
  justify-content: center;
}

.chip.datetime-chip .dt-chip-weekday {
  font-size: 13px;
  font-weight: 600;
  color: #6b778a;
  line-height: 1.1;
  align-self: center;
  text-align: center;
}

.chip.datetime-chip .dt-chip-weekday.placeholder {
  color: #9ca3b0;
}

.chip.datetime-chip .dt-chip-date {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a90;
  line-height: 1.2;
}

.chip.datetime-chip .dt-chip-time {
  font-size: 14px;
  font-weight: 600;
  color: #6b778a;
  line-height: 1.2;
}

.chip.datetime-chip .dt-chip-time.placeholder {
  color: #9ca3b0;
}

.datetime-picker-header button[data-action="close"] {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
}

.datetime-picker-header button[data-action="close"]:hover {
  color: #6b7280;
}

.month-btn:disabled {
  color: #d1d5db;
  cursor: default;
}

@media (max-width: 480px) {
  .datetime-picker {
    width: min(96vw, 340px);
  }

  .datetime-picker-content {
    padding: 12px 12px 14px;
  }

  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }

  .date-cell {
    font-size: 13px;
  }
}