.monthly-slots-wrapper {
  max-width: 750px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.monthly-slots__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.monthly-slots__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.monthly-slots__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #14221f;
}

.monthly-slots__subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #5a6b67;
}

.monthly-slots__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monthly-slots__nav,
.monthly-slots__month {
  border: 1px solid #ccd7d3;
  border-radius: 8px;
  background: #f7faf9;
  color: #14221f;
}

.monthly-slots__nav {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.monthly-slots__nav:active {
  transform: scale(0.98);
}

.monthly-slots__month {
  padding: 6px 8px;
  min-width: 140px;
}

.monthly-slots__body {
  margin-top: 8px;
}

.monthly-slots__status {
  margin: 6px 0 0;
  color: #4a5a56;
  font-size: 13px;
}

.monthly-slots__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.monthly-slots__item {
  background: #f1f6f5;
  border: 1px solid #d5e2de;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #1d2b28;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

.monthly-slots__item:hover {
  background: #e7f1ee;
}

.monthly-slots__item:focus-visible {
  outline: 2px solid #1c6b60;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .monthly-slots__controls {
    width: 100%;
  }

  .monthly-slots__month {
    flex: 1;
    min-width: 0;
  }
}
