.select2-container {
  position: relative;
  display: block;
  padding: 0;
}

.athlete-profile-table {
  margin-bottom: 1rem;
  border: solid 1px #ddd;

  td {
    padding: 4px 4px;
  }

  .select2-selection__clear {
    padding-left: 4px;
    padding-right: 4px;
  }
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #5897fb !important;
  color: white;
}

#athlete-profile-fields-section {
  margin: 1rem 0;
  background-color: #f1f1f1;
  border-radius: var(
    --has-classic-forms,
    var(--theme-form-field-border-radius, 3px)
  );
  padding: var(--has-classic-forms, var(--theme-form-field-padding, 15px 15px));
}

.single_variation_wrap {
  margin-top: 1rem;
}

.event-details {
  width: 100%;
  table-layout: auto;

  .label {
    width: 1%;
    white-space: nowrap;
    font-weight: 600;
  }
}

.ts-dropdown {
  margin-top: auto;
  border-color: var(--theme-form-field-border-initial-color);

  &.single {
    border-color: var(--theme-form-field-border-initial-color);
  }

  .option {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 5px;
    border-bottom: solid 1px var(--theme-form-field-border-initial-color);

    .name {
      font-weight: bold;
      flex: 1;
      flex-basis: 100%;

      @media screen and (min-width: 600px) {
        flex-basis: auto;
      }
    }

    .mykad {
      font-family: monospace;
      flex-basis: 100%;

      @media screen and (min-width: 600px) {
        flex-basis: auto;
      }
    }

    .age {
      white-space: nowrap;
    }

    .chapter {
      @media screen and (min-width: 600px) {
        flex-basis: 250px;
      }
    }

    .gender {
      flex-shrink: 1;
      flex-basis: 60px;
      text-transform: capitalize;
      text-align: center;
    }
  }
}

.ts-control {
  border-color: var(--theme-form-field-border-initial-color);

  input {
    height: 28px;
    line-height: 28px;
    font-size: 1rem;
    width: auto;
  }
}

.ts-wrapper.single .ts-control {
  padding: 6px 15px;
  font-size: 1rem;
  line-height: 28px;
  border-color: var(--theme-form-field-border-initial-color);
  background: none;
  background-color: white;
  box-shadow: none;

  .option {
    &.item {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      row-gap: 5px;
      /* border-bottom: solid 1px var(--theme-form-field-border-initial-color); */

      /* @media screen and (min-width: 600px) {
        flex-wrap: nowrap;
      } */

      .name {
        font-weight: bold;
        flex: 1;
        flex-basis: 100%;
        white-space: nowrap;

        /* @media screen and (min-width: 600px) {
          flex-basis: auto;
        } */
      }

      .mykad {
        font-family: monospace;
        flex-basis: 100%;
        white-space: nowrap;

        @media screen and (min-width: 600px) {
          flex-basis: auto;
        }
      }

      .age {
        white-space: nowrap;
      }

      .chapter {
        white-space: nowrap;

        @media screen and (min-width: 600px) {
          /* flex-basis: 250px; */
        }
      }

      .gender {
        white-space: nowrap;
        flex-shrink: 1;
        /* width: 60px; */
        text-transform: uppercase;
        text-align: center;
      }
    }
  }
}
