// calendar
.calendar {
  .ui-datepicker {
    width: 100%;
    border: none;
    padding: 5px 0 0 0;
    .ui-datepicker-header {
      color: var(--text-color);
      background: none;
      border: none;
      padding: 5px 0 10px 0;
      align-items: center;
      justify-content: center;
      display: flex;
      .ui-datepicker-title {
        font: 14px/1.2 var(--primary-font);
      }
      .ui-datepicker-prev,
      .ui-datepicker-next {
        width: 24px;
        height: 24px;
        cursor: pointer;
        transition: all var(--primary-transition);
        border: none;
        border-radius: var(--primary-radius);
        position: relative;
        inset: 0;
        align-items: center;
        justify-content: center;
        display: inline-flex;
        &:hover {
          color: var(--white);
          background: var(--deco-color);
        }
        span {
          background: none;
          pointer-events: none;
        }
        &:before {
          font: 16px/1.2 icomoon;
        }
      }
      .ui-datepicker-prev {
        margin-right: auto;
        &:before {
          content: "\e901";
        }
      }
      .ui-datepicker-next {
        margin-left: auto;
        order: 1;
        &:before {
          content: "\e902";
        }
      }
    }
    .ui-datepicker-calendar {
      font: 12px/1 var(--primary-font);
      text-align: center;
      th {
        color: var(--secondary-text-color);
        padding: 8px 3px;
      }
      td {
        padding: 3px;
        a {
          color: var(--text-color);
          text-decoration: none;
          background: none;
          transition: all var(--primary-transition);
          border: none;
          text-align: center;
          border-radius: var(--primary-radius);
          padding: 6px 2px;
          &:hover {
            color: var(--white);
            background: var(--deco-color);
          }
        }
        &.ui-datepicker-current-day {
          a {
            color: var(--white);
            background: var(--deco-color);
          }
        }
      }
    }
  }
}

// select
.select2-container {
  .select2-selection {
    height: auto;
    min-height: 40px;
    transition: all var(--primary-transition);
    border-color: var(--deco-color);
    border-radius: var(--primary-radius);
    &:hover {
      border-color: var(--focus-color);
    }
    .select2-selection__rendered {
      color: var(--text-color);
      font: 15px/38px var(--primary-font);
      padding-left: 12px;
      padding-right: 30px;
    }
    .select2-selection__arrow {
      width: 30px;
      height: auto;
      bottom: 1px;
    }
  }
  &.select2-container--focus {
    .select2-selection {
      border-color: var(--focus-color);
    }
  }
  .select2-dropdown {
    border-color: var(--focus-color);
    .select2-search {
      padding: 12px;
      .select2-search__field {
        border: 1px solid var(--focus-color);
        padding: 9px 12px;
      }
    }
    .select2-results {
      .select2-results__option {
        font: 14px/1.2 var(--primary-font);
        padding: 5px 12px;
        &.select2-results__option--highlighted {
          background: var(--deco-color);
        }
      }
    }
  }
}