:root {
  --rv-calendar-background-color: var(--rv-white);
  --rv-calendar-popup-height: 80%;
  --rv-calendar-header-box-shadow: 0 4px 20px rgba(125, 126, 128, 0.16);
  --rv-calendar-header-title-height: 88px;
  --rv-calendar-header-title-font-size: var(--rv-font-size-lg);
  --rv-calendar-header-subtitle-font-size: var(--rv-font-size-md);
  --rv-calendar-weekdays-height: 60px;
  --rv-calendar-weekdays-font-size: var(--rv-font-size-sm);
  --rv-calendar-month-title-font-size: var(--rv-font-size-md);
  --rv-calendar-month-mark-color: rgba(242, 243, 245, 0.8);
  --rv-calendar-month-mark-font-size: 320px;
  --rv-calendar-day-height: 128px;
  --rv-calendar-day-font-size: var(--rv-font-size-lg);
  --rv-calendar-range-edge-color: var(--rv-white);
  --rv-calendar-range-edge-background-color: var(--rv-danger-color);
  --rv-calendar-range-middle-color: var(--rv-danger-color);
  --rv-calendar-range-middle-background-opacity: 0.1;
  --rv-calendar-selected-day-size: 108px;
  --rv-calendar-selected-day-color: var(--rv-white);
  --rv-calendar-info-font-size: var(--rv-font-size-xs);
  --rv-calendar-info-line-height: var(--rv-line-height-xs);
  --rv-calendar-selected-day-background-color: var(--rv-danger-color);
  --rv-calendar-day-disabled-color: var(--rv-gray-5);
  --rv-calendar-confirm-button-height: 72px;
  --rv-calendar-confirm-button-margin: 14px 0;
}

.rv-calendar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  background-color: var(--rv-calendar-background-color);
}

.rv-calendar__popup.rv-popup--bottom,
.rv-calendar__popup.rv-popup--top {
  height: var(--rv-calendar-popup-height);
}

.rv-calendar__popup.rv-popup--left,
.rv-calendar__popup.rv-popup--right {
  height: 100%;
}

.rv-calendar__popup .rv-popup__close-icon {
  top: 22px;
}

.rv-calendar__header {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  box-shadow: var(--rv-calendar-header-box-shadow);
}

.rv-calendar__header-subtitle,
.rv-calendar__header-title,
.rv-calendar__month-title {
  height: var(--rv-calendar-header-title-height);
  font-weight: var(--rv-font-weight-bold);
  line-height: var(--rv-calendar-header-title-height);
  text-align: center;
}

.rv-calendar__header-title {
  font-size: var(--rv-calendar-header-title-font-size);
}

.rv-calendar__header-subtitle {
  font-size: var(--rv-calendar-header-subtitle-font-size);
}

.rv-calendar__month-title {
  font-size: var(--rv-calendar-month-title-font-size);
}

.rv-calendar__weekdays {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.rv-calendar__weekday {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  font-size: var(--rv-calendar-weekdays-font-size);
  line-height: var(--rv-calendar-weekdays-height);
  text-align: center;
}

.rv-calendar__body {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.rv-calendar__days {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-user-select: none;
  user-select: none;
}

.rv-calendar__month-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: var(--rv-calendar-month-mark-color);
  font-size: var(--rv-calendar-month-mark-font-size);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.rv-calendar__day,
.rv-calendar__selected-day {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.rv-calendar__day {
  position: relative;
  width: 14.285%;
  height: var(--rv-calendar-day-height);
  font-size: var(--rv-calendar-day-font-size);
  cursor: pointer;
}

.rv-calendar__day--end,
.rv-calendar__day--multiple-middle,
.rv-calendar__day--multiple-selected,
.rv-calendar__day--start,
.rv-calendar__day--start-end {
  color: var(--rv-calendar-range-edge-color);
  background-color: var(--rv-calendar-range-edge-background-color);
}

.rv-calendar__day--start {
  border-radius: var(--rv-border-radius-md) 0 0 var(--rv-border-radius-md);
}

.rv-calendar__day--end {
  border-radius: 0 var(--rv-border-radius-md) var(--rv-border-radius-md) 0;
}

.rv-calendar__day--multiple-selected,
.rv-calendar__day--start-end {
  border-radius: var(--rv-border-radius-md);
}

.rv-calendar__day--middle {
  color: var(--rv-calendar-range-middle-color);
}

.rv-calendar__day--middle::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  opacity: var(--rv-calendar-range-middle-background-opacity);
  content: '';
}

.rv-calendar__day--disabled {
  color: var(--rv-calendar-day-disabled-color);
  cursor: default;
}

.rv-calendar__bottom-info,
.rv-calendar__top-info {
  position: absolute;
  right: 0;
  left: 0;
  font-size: var(--rv-calendar-info-font-size);
  line-height: var(--rv-calendar-info-line-height);
}

@media (max-width:350px) {
  .rv-calendar__bottom-info,
  .rv-calendar__top-info {
    font-size: 18px;
  }
}

.rv-calendar__top-info {
  top: 12px;
}

.rv-calendar__bottom-info {
  bottom: 12px;
}

.rv-calendar__selected-day {
  width: var(--rv-calendar-selected-day-size);
  height: var(--rv-calendar-selected-day-size);
  color: var(--rv-calendar-selected-day-color);
  background-color: var(--rv-calendar-selected-day-background-color);
  border-radius: var(--rv-border-radius-md);
}

.rv-calendar__footer {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  padding-right: var(--rv-padding-md);
  padding-left: var(--rv-padding-md);
}

.rv-calendar__confirm {
  height: var(--rv-calendar-confirm-button-height);
  margin: var(--rv-calendar-confirm-button-margin);
}