/*!
 * https://github.com/YouCanBookMe/react-datetime
 */
.bb-logic-rule-field .rdt {
  position: relative;
  width: 100%; }

.bb-logic-rule-field .rdtPicker {
  display: none;
  position: absolute;
  width: 250px;
  padding: 4px;
  margin-top: 1px;
  z-index: 99999 !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f9f9f9; }

.bb-logic-rule-field .rdtOpen .rdtPicker {
  display: block; }

.bb-logic-rule-field .rdtStatic .rdtPicker {
  box-shadow: none;
  position: static; }

.bb-logic-rule-field .rdtPicker .rdtTimeToggle {
  text-align: center; }

.bb-logic-rule-field .rdtPicker table {
  width: 100%;
  margin: 0; }

.bb-logic-rule-field .rdtPicker td,
.bb-logic-rule-field .rdtPicker th {
  text-align: center;
  height: 28px;
  padding: 0; }

.bb-logic-rule-field .rdtPicker td {
  cursor: pointer; }

.bb-logic-rule-field .rdtPicker td.rdtDay:hover,
.bb-logic-rule-field .rdtPicker td.rdtHour:hover,
.bb-logic-rule-field .rdtPicker td.rdtMinute:hover,
.bb-logic-rule-field .rdtPicker td.rdtSecond:hover,
.bb-logic-rule-field .rdtPicker .rdtTimeToggle:hover {
  background: #eeeeee;
  cursor: pointer; }

.bb-logic-rule-field .rdtPicker td.rdtOld,
.bb-logic-rule-field .rdtPicker td.rdtNew {
  color: #999999; }

.bb-logic-rule-field .rdtPicker td.rdtToday {
  position: relative; }

.bb-logic-rule-field .rdtPicker td.rdtToday:before {
  content: '';
  display: inline-block;
  border-left: 7px solid transparent;
  border-bottom: 7px solid #656565;
  border-top-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 4px;
  right: 4px; }

.bb-logic-rule-field .rdtPicker td.rdtActive,
.bb-logic-rule-field .rdtPicker td.rdtActive:hover {
  background-color: #656565;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); }

.bb-logic-rule-field .rdtPicker td.rdtActive.rdtToday:before {
  border-bottom-color: #fff; }

.bb-logic-rule-field .rdtPicker td.rdtDisabled,
.bb-logic-rule-field .rdtPicker td.rdtDisabled:hover {
  background: none;
  color: #999999;
  cursor: not-allowed; }

.bb-logic-rule-field .rdtPicker td span.rdtOld {
  color: #999999; }

.bb-logic-rule-field .rdtPicker td span.rdtDisabled,
.bb-logic-rule-field .rdtPicker td span.rdtDisabled:hover {
  background: none;
  color: #999999;
  cursor: not-allowed; }

.bb-logic-rule-field .rdtPicker th {
  border-bottom: 1px solid #f9f9f9; }

.bb-logic-rule-field .rdtPicker .dow {
  width: 14.2857%;
  border-bottom: none;
  cursor: default; }

.bb-logic-rule-field .rdtPicker th.rdtSwitch {
  width: 100px; }

.bb-logic-rule-field .rdtPicker th.rdtNext,
.bb-logic-rule-field .rdtPicker th.rdtPrev {
  font-size: 21px;
  vertical-align: top; }

.bb-logic-rule-field .rdtPrev span,
.bb-logic-rule-field .rdtNext span {
  display: block;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none; }

.bb-logic-rule-field .rdtPicker th.rdtDisabled,
.bb-logic-rule-field .rdtPicker th.rdtDisabled:hover {
  background: none;
  color: #999999;
  cursor: not-allowed; }

.bb-logic-rule-field .rdtPicker thead tr:first-child th {
  cursor: pointer; }

.bb-logic-rule-field .rdtPicker thead tr:first-child th:hover {
  background: #eeeeee; }

.bb-logic-rule-field .rdtPicker tfoot {
  border-top: 1px solid #f9f9f9; }

.bb-logic-rule-field .rdtPicker button {
  border: none;
  background: none;
  cursor: pointer; }

.bb-logic-rule-field .rdtPicker button:hover {
  background-color: #eee; }

.bb-logic-rule-field .rdtPicker thead button {
  width: 100%;
  height: 100%; }

.bb-logic-rule-field td.rdtMonth,
.bb-logic-rule-field td.rdtYear {
  height: 50px;
  width: 25%;
  cursor: pointer; }

.bb-logic-rule-field td.rdtMonth:hover,
.bb-logic-rule-field td.rdtYear:hover {
  background: #eee; }

.bb-logic-rule-field .rdtCounters {
  display: inline-block; }

.bb-logic-rule-field .rdtCounters > div {
  float: left; }

.bb-logic-rule-field .rdtCounter {
  height: 100px; }

.bb-logic-rule-field .rdtCounter {
  width: 40px; }

.bb-logic-rule-field .rdtCounterSeparator {
  line-height: 100px; }

.bb-logic-rule-field .rdtCounter .rdtBtn {
  height: 40%;
  line-height: 40px;
  cursor: pointer;
  display: block;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none; }

.bb-logic-rule-field .rdtCounter .rdtBtn:hover {
  background: #eee; }

.bb-logic-rule-field .rdtCounter .rdtCount {
  height: 20%;
  font-size: 1.2em; }

.bb-logic-rule-field .rdtMilli {
  vertical-align: middle;
  padding-left: 8px;
  width: 48px; }

.bb-logic-rule-field .rdtMilli input {
  width: 100%;
  font-size: 1.2em;
  margin-top: 37px; }

.bb-logic-rule-field .rdtTime td {
  cursor: default; }
.bb-logic-rule-field {
  /* Select Input */
  /* Select Menu */ }
  .bb-logic-rule-field .react-select__container {
    width: 100%; }
  .bb-logic-rule-field .react-select__control {
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    color: #32373c;
    border-color: #ddd;
    height: 28px;
    min-height: 0;
    transition: 50ms border-color ease-in-out; }
  .bb-logic-rule-field .react-select__control:hover {
    border-color: #ddd; }
  .bb-logic-rule-field .react-select__control.react-select__control--isFocused {
    border-color: #5B9DD7;
    box-shadow: rgba(30, 140, 190, 0.8) 0px 0px 2px 0px; }
  .bb-logic-rule-field .react-select__value-container {
    padding: 0 6px; }
  .bb-logic-rule-field .react-select__input input {
    background: transparent;
    box-shadow: none; }
  .bb-logic-rule-field .react-select__input input:focus {
    border: none;
    box-shadow: none;
    outline: none; }
  .bb-logic-rule-field .react-select__dropdown-indicator {
    border-color: #32373c transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    margin: 1px 7px 0 0;
    padding: 0;
    width: 0; }
  .bb-logic-rule-field .react-select__indicator svg {
    display: none; }
  .bb-logic-rule-field .react-select__indicator-separator {
    display: none; }
  .bb-logic-rule-field .react-select__menu {
    border: 1px solid #ddd;
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.1);
    outline: 0;
    margin: 3px 0; }
  .bb-logic-rule-field .react-select__option,
  .bb-logic-rule-field .react-select__option.react-select__option--isSelected {
    padding: 5px 12px; }
  .bb-logic-rule-field .react-select__group {
    padding: 0; }
  .bb-logic-rule-field .react-select__group-heading {
    color: #32373c;
    font-size: 100%;
    font-weight: bold;
    margin: 5px 0;
    text-transform: none; }
  .bb-logic-rule-field .react-select__group .react-select__option,
  .bb-logic-rule-field .react-select__group .react-select__option.react-select__option--isSelected {
    padding-left: 20px; }
/* Lightbox Display */
.bb-logic-display-lightbox {
  background: rgba(255, 255, 255, 0.85);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  padding: 30px;
  z-index: 999999999; }

.bb-logic-display-lightbox .bb-logic-content {
  background: #FCFCFC;
  box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
  -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px; }

/* Main Content */
.bb-logic-content {
  color: #333;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  margin: 0 auto;
  max-width: 1100px;
  padding: 25px; }

.bb-logic-heading {
  color: #333;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px; }

.bb-logic-description {
  margin-bottom: 20px; }

/* Rule Groups */
.bb-logic-rule-group-rules {
  background: #fff;
  border: 1px solid #DCDCDC;
  padding: 15px; }

.bb-logic-rule {
  display: flex;
  margin-bottom: 15px; }

/* Rule Fields */
.bb-logic-rule-fields {
  display: flex;
  width: 100%; }

.bb-logic-rule-field {
  align-items: center;
  display: flex;
  font-size: 14px;
  margin-right: 10px;
  position: relative;
  width: 100%; }

.bb-logic-rule-field:last-of-type {
  margin-right: 0; }

/* Rule Form Inputs */
.bb-logic-rule-field input[type],
.bb-logic-rule-field select {
  width: 100%; }

/* Rule Delete */
.bb-logic-rule-delete {
  align-items: center;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  line-height: 18px;
  margin-left: 10px;
  padding: 0; }

.bb-logic-rule-delete:hover {
  background: transparent;
  border: none; }

.bb-logic-rule-delete svg.bb-logic-icon {
  fill: #ccc; }

.bb-logic-rule-delete:hover svg.bb-logic-icon {
  fill: #d54e21; }

/* Rule Group Separator */
.bb-logic-rule-group-separator {
  padding: 15px; }

.bb-logic-rule > .bb-logic-rule-group-separator {
  margin-bottom: 15px;
  padding: 0; }

/* Form Action Buttons */
.bb-logic-buttons {
  display: flex;
  margin-top: 20px; }

.bb-logic-save {
  margin-right: 10px; }

/* Responsive Layout */
@media (max-width: 768px) {
  .bb-logic-rule {
    margin-bottom: 25px; }
  .bb-logic-rule-fields {
    display: block; }
  .bb-logic-rule-field {
    margin-bottom: 5px; } }
