.appointment-card {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  padding: 34px 28px 28px;
  margin: 12px 0 24px 0;
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 45, 80, 0.10);
  font-family: inherit;
  color: #07194a;
}

.appointment-title {
  margin: 0 0 24px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #07194a;
}

.appointment-calendar-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 22px;
}

.appointment-month-title {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #07194a;
}

.appointment-nav {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f7fd;
  color: #006fe6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.appointment-nav:hover,
.appointment-nav:focus {
  background: #e3f0fb;
  outline: none;
}

.appointment-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.appointment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 6px;
}

.appointment-weekday {
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2a5578;
  padding-bottom: 4px;
}

.appointment-day {
  width: 34px;
  height: 34px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #173b5c;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.appointment-day:hover,
.appointment-day:focus {
  background: #edf6ff;
  color: #006fe6;
  outline: none;
}

.appointment-day.is-today {
  font-weight: 700;
}

.appointment-day.is-selected {
  background: #0074f5;
  color: #ffffff;
  font-weight: 700;
}

.appointment-day.is-available:not(.is-selected) {
  background: #f1f7fd;
  color: #006fe6;
  font-weight: 700;
}

.appointment-day:disabled {
  color: #b9c8d6;
  cursor: not-allowed;
  background: transparent;
}

.appointment-empty {
  width: 34px;
  height: 34px;
}

.appointment-time-block {
  margin-top: 26px;
}

.appointment-time-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #07194a;
}

.appointment-time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-time-button {
  min-width: 68px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d9e3ef;
  border-radius: 18px;
  background: #ffffff;
  color: #173b5c;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.appointment-time-button:hover,
.appointment-time-button:focus {
  border-color: #0074f5;
  color: #0074f5;
  outline: none;
}

.appointment-time-button.is-selected {
  background: #0074f5;
  border-color: #0074f5;
  color: #ffffff;
  font-weight: 700;
}

.appointment-summary {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: #173b5c;
}

.appointment-error {
  margin: 8px 0 0 0;
  color: #b00020;
  font-size: 13px;
  font-weight: 700;
}

.appointment-hidden-fields {
  display: none;
}

@media (max-width: 480px) {
  .appointment-card {
    max-width: 100%;
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .appointment-calendar-grid {
    gap: 7px 4px;
  }

  .appointment-day,
  .appointment-empty {
    width: 32px;
    height: 32px;
  }

  .appointment-time-button {
    min-width: 62px;
  }
}