.CalendarModal {
  .modal-dialog {
    max-width: 26.25rem;
    .modal-content {
      padding: 0.375rem 1rem 1rem;
    }
  }

  .repeat-mode {
    position: relative;

    .repeat-mode-button {
      margin-bottom: 0.5rem;
    }

    .drop-down-icon {
      transition: transform 0.3s ease;
    }

    .expanded-icon {
      transform: rotate(-180deg);
    }

    .repeated-mode-transition-slide {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .timepicker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;

    .form-control {
      max-width: 5rem;
      text-align: center;

      &:first-child {
        margin-right: 1rem;
      }
      &:last-child {
        margin-left: 1rem;
      }
    }
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    .description {
      min-height: 2.75rem;
      margin-bottom: 1rem;
      margin-left: 1rem;

      font-size: 0.875rem;
      color: var(--color-text-secondary);
    }

    .Button {
      text-transform: none;

      + .Button {
        margin-top: 0.5rem;
      }
    }
  }

  .container {
    margin-top: 0.1875rem;
  }

  .month-selector {
    display: flex;
    align-items: center;

    h4 {
      flex: 1;
      margin: 0 0 0 2.25rem;
      font-size: 1.25rem;

      & ~ .Button {
        color: var(--color-primary);
      }

      @media (max-width: 600px) {
        margin-left: 0.75rem;
      }
    }

    .Button.hidden {
      pointer-events: none;
      opacity: 0.5;
    }
  }

  .day-button {
    --button-text-color: var(--color-text);

    position: relative;
    font-weight: var(--font-weight-medium);
    font-variant-numeric: tabular-nums;

    &.weekday {
      height: 1rem;
      margin-bottom: 0;
    }

    &.selected {
      --button-text-color: revert-layer;
    }
  }

  .calendar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 17rem;
    margin: 0rem -0.5rem 1rem;
  }

  .calendar-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(7, 1fr);
    place-items: center;

    width: 100%;
  }
}
