.mt-date-input {
  max-width: 350px;

  &__input {
    height: 2rem;
    position: relative;

    input[type="text"] {
      border: 2px solid @blue-3;
      .border-radius(2px);
      padding-left: 30px;
      cursor: pointer;
      height: 2rem;
      display: flex;
    }
  }

  &__top-label {
    bdi {
      display: inline-block;
      margin-bottom: 3px;
    }
  }

  .icon-calendar {
    position: absolute;
    left: 4px;
    top: 4px;
    font-size: 14px;
    cursor: pointer;
  }

  .icon-close {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 14px;
    cursor: pointer;
  }
}

.pika-single {
  border: none !important; 
  min-height: 200px;
  .border-radius(6px);

  .pika-title {
    display: flex;
    .pika-label {
      color: @text-default;
    }
  }

  .pika-table {
    abbr {
      color: @text-subdued;
      font-weight: 500;
      cursor: auto;
      text-decoration: none;
    }

    .pika-week {
      padding-right: 10px;
    }

    .pika-button {
      display: grid;
      place-items: center;
      font-size: 14px;
      font-weight: normal;
      .border-radius(999px);
      text-align: center;

      :hover {
        color: @text-default;
        background: @white;
        border: 1px solid @blue;
        box-shadow: none;
        .border-radius(999px);
      }
    }

    td[aria-selected='true'] {
      .pika-button {
        background: @blue !important;
        color: @white !important;  
      }
    }

    // These changes ensure the selected date is visibly highlighted in the calendar modal
    .is-selected {
      .pika-button {
        color: #fff !important; 
        background: #2a8bfb !important; 
        box-shadow: none !important;
        border-radius: 0 !important;

        &:hover {
          color: #fff !important;
          background: #2a8bfb !important;
        }
      }
    }
  }
}