.ms-custom-calendar {
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ms-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ms-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(120, 47, 64, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #782f40;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ms-nav-btn:hover,
.ms-nav-btn:focus-visible {
  border-color: #782f40;
  background: #782f40;
  color: #fff;
  transform: translateY(-1px);
}

.ms-nav-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.ms-calendars-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.ms-calendar {
  min-width: 0;
  padding: 1.15rem 1rem 1rem;
  border: 1px solid rgba(120, 47, 64, 0.1);
  border-radius: 18px;
  background: rgba(245, 241, 236, 0.7);
  color: #101820;
}

.ms-calendar-header {
  margin-bottom: 0.95rem;
  color: #101820;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ms-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  color: rgba(16, 24, 32, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ms-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(2.6rem, auto);
  gap: 0.3rem;
}

.ms-day {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 2.6rem;
  padding: 0.2rem;
  border-radius: 12px;
  color: #101820;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  position: relative;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ms-day:hover:not(.ms-disabled),
.ms-day:focus-visible:not(.ms-disabled) {
  background: rgba(120, 47, 64, 0.08);
  color: #782f40;
}

.ms-disabled {
  color: rgba(16, 24, 32, 0.18);
  cursor: default;
}

.ms-today {
  color: #0b96b2;
  font-weight: 800;
}

.ms-selected,
.ms-selected:hover {
  background: #782f40 !important;
  color: #fff !important;
}

.ms-in-range,
.ms-in-range:hover {
  background: rgba(120, 47, 64, 0.14) !important;
  color: #101820 !important;
}

.ms-selected.ms-has-event::after {
  background: #fff;
}

.ms-has-event::after {
  content: "";
  position: absolute;
  top: 0.38rem;
  right: 0.42rem;
  width: 0.36rem;
  height: 0.36rem;
  background: #0b96b2;
  border-radius: 999px;
}

.ms-date-range-info {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(120, 47, 64, 0.12);
  border-radius: 16px;
  background: #101820;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.ms-buttons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.ms-clear-btn,
.ms-apply-btn {
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ms-clear-btn {
  background: #7a8590;
  color: #fff;
}

.ms-clear-btn:hover,
.ms-clear-btn:focus-visible {
  background: #626c76;
  transform: translateY(-1px);
}

.ms-apply-btn {
  background: #0b96b2;
  color: #fff;
}

.ms-apply-btn:hover,
.ms-apply-btn:focus-visible {
  background: #087f97;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .ms-calendars-container {
    grid-template-columns: 1fr;
  }

  .ms-calendar {
    padding: 1rem 0.8rem 0.85rem;
  }

  .ms-calendar-header {
    font-size: 1rem;
  }

  .ms-weekdays {
    font-size: 0.72rem;
  }

  .ms-day {
    min-height: 2.35rem;
    font-size: 0.88rem;
  }

  .ms-buttons {
    flex-wrap: wrap;
  }

  .ms-clear-btn,
  .ms-apply-btn {
    flex: 1 1 10rem;
  }
}
