$red: #DB2828;
$orange: #F2711C;
$yellow: #FBBD08;
$olive: #B5CC18;
$green: #21BA45;
$teal: #00B5AD;
$blue: #2192e2;
$violet: #6435C9;
$purple: #A333C8;
$pink: #E03997;
$brown: #A5673F;
$grey: #767676;
$black: #1B1C1D;

$lightRed: #ffe8e6;
$lightOrange: #FF851B;
$lightYellow: #FFE21F;
$lightOlive: #D9E778;
$lightGreen: #e5f9e7;
$lightTeal: #6DFFFF;
$lightBlue: #dff0ff;
$lightViolet: #A291FB;
$lightPurple: #DC73FF;
$lightPink: #FF8EDF;
$lightBrown: #D67C1C;
$lightGrey: #DCDDDE;
$lightBlack: #545454;

#wpcontent {
  padding-right: 20px;

  * {
    box-sizing: border-box;
  }
}

.epoi-user-point-manager {
  max-width: 1200px;
  margin: auto;
  padding-top: 20px;

  .epoi-user-detail {
    display: flex;
    gap: 20px;
    background: #fff;
    margin: 1rem 0;
    padding: 1em;
    border-radius: 0.28571429rem;
    border: 1px solid rgba(34, 36, 38, 0.15);
  }

  .epoi-rank-section {
    text-align: center;
    //padding: 1em;
    width: 25%;

    .epoi-rank-icon {
      width: 100px;
      margin: 0 auto 1em;
    }
  }

  .epoi-right-section {
    flex-grow: 1;
    position: relative;
  }

  .epoi-points-list {
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
  }

  .epoi-point-cell {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: white;

    > div {
      border-radius: 5px;
      padding: 1.5em 1em;
      box-shadow: rgba(9, 30, 66, 0.15) 0 4px 8px -2px, rgba(9, 30, 66, 0.05) 0px 0px 0px 1px;

    }

    label {
      font-weight: 600;
      vertical-align: middle;
      line-height: 2;
    }

    .epoi-point {
      line-height: 2;
      font-weight: bolder;
      font-size: 24px;
    }

    .epoi-free {
      color: $green;
      //border: 1px solid $green;
      //background-color: $lightGreen;
    }

    .epoi-lock {
      color: $red;
      //border: 1px solid $red;
      //background-color: $lightRed;
    }

    .epoi-total {
      color: $blue;
      //border: 1px solid $blue;
      //background-color: $lightBlue;
    }
  }

  .epoi-transfer-header {
    margin: 0;
    font-size: 1.2em;
  }

  .epoi-transfer-point-action {
    display: flex;
    margin-top: 2em;
    border-radius: 5px;
    align-items: stretch;

    .epoi-label {
      background-color: $lightGrey;
      padding: 0.5em 1em;
      font-weight: bold;
      line-height: 2;
      border-top-left-radius: 5px;
      border-bottom-left-radius: 5px;
    }

    input[name=epoi_transfer_point_value] {
      flex-grow: 1;
      padding: 0.5em;
      border: none;
      border-top: 1px solid $lightGrey;
      border-bottom: 1px solid $lightGrey;
      border-radius: 0;
      line-height: 1.8;
      margin: 0;

      &:focus {
        border: 1px solid $blue;
        box-shadow: none;
      }
    }

    button.epoi-transfer-point-btn {
      border: none;
      padding: 0.5em 1.5em;
      cursor: pointer;
      color: white;
      background-color: $blue;
      line-height: 1.8;
      font-weight: bold;
      border-top-right-radius: 5px;
      border-bottom-right-radius: 5px;
    }
  }

  @media screen and (max-width: 700px) {
    .epoi-user-detail, .epoi-points-list {
      gap: 1em;
      flex-wrap: wrap;
    }
    .epoi-rank-section, .epoi-right-section {
      width: 100%;
      padding: 0;
    }
    .epoi-transfer-point-action {
      display: block;

      .epoi-label {
        background-color: transparent;
        padding: 0;
        line-height: 1;
        margin-bottom: 1em;
      }

      input[name=epoi_transfer_point_value] {
        width: 100%;
        margin-bottom: 1em;
        border: 1px solid $lightGrey;
        border-radius: 5px;
      }

      button.epoi-transfer-point-btn {
        display: block;
        border-radius: 5px;
      }
    }

    .epoi-point-cell {
      > div {
        padding: 0.5em;
      }

      .epoi-point {
        line-height: 1.5;
      }

    }

  }

  .epoi-point-to-next-rank-bar {
    height: 1.5em;
    border: 1px solid $blue;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    background-color: rgba(33, 146, 226, 0.3);

    .epoi-processing-percent {
      height: 100%;
      background-color: $blue;
    }

    .epoi-processing-label {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
    }
  }

  .epoi-user-error-notice {
    border: 1px solid $red;
    background-color: $lightRed;
    padding: 1em;
    color: $red;
    border-radius: 5px;
    font-weight: 600;
  }

  .epoi-user-success-notice {
    border: 1px solid $green;
    background-color: $lightGreen;
    padding: 1em;
    color: $green;
    border-radius: 5px;
    font-weight: 600;
  }

  .epoi-user-history-table {
    font-size: 1em;
    width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid rgba(34, 36, 38, .15);
    box-shadow: none;
    border-radius: 0.28571429rem;
    text-align: left;
    color: rgba(0, 0, 0, .87);
    border-collapse: separate;
    border-spacing: 0;

    thead {
      box-shadow: none;

      th {
        cursor: auto;
        background: #f9fafb;
        text-align: inherit;
        color: rgba(0, 0, 0, .87);
        padding: 0.92857143em 0.78571429em;
        vertical-align: inherit;
        font-weight: 700;
        text-transform: none;
        border-bottom: 1px solid rgba(34, 36, 38, .1);
        border-left: none;
      }

      tr:first-child > th:first-child {
        border-radius: 0.28571429rem 0 0 0;
      }

      tr > th:first-child {
        border-left: none;
      }

      tr:first-child > th:last-child {
        border-radius: 0 0.28571429rem 0 0;
      }
    }

    tr:first-child td {
      border-top: none;
    }

    tr td {
      border-top: 1px solid rgba(34, 36, 38, .1);
    }

    td {
      padding: 0.78571429em 0.78571429em;
      text-align: inherit;
    }

    td, th {
      -webkit-transition: background .1s ease, color .1s ease;
      transition: background .1s ease, color .1s ease;
    }

    tfoot {
      box-shadow: none;

      tr:first-child > th:first-child {
        border-radius: 0 0 0 0.28571429rem;
      }

      tr > th:first-child {
        border-left: none;
      }

      th {
        cursor: auto;
        border-top: 1px solid rgba(34, 36, 38, .15);
        background: #f9fafb;
        text-align: inherit;
        color: rgba(0, 0, 0, .87);
        padding: 0.78571429em 0.78571429em;
        vertical-align: middle;
        font-style: normal;
        font-weight: 400;
        text-transform: none;
      }

      tr:first-child > th:last-child {
        border-radius: 0 0 0.28571429rem 0;
      }
    }
  }

  .epoi-section {
    margin-bottom: 2em;
  }

  .epoi-transfer-point-form {
    position: relative;
    background: #fff;
    margin: 1rem 0;
    padding: 1em;
    border-radius: 0.28571429rem;
    border: 1px solid rgba(34, 36, 38, .15);
  }

  .epoi-form {
    ::-webkit-input-placeholder {
      color: rgba(191, 191, 191, .87)
    }

    :-ms-input-placeholder {
      color: rgba(191, 191, 191, .87)
    }

    ::-moz-placeholder {
      color: rgba(191, 191, 191, .87)
    }

    :focus::-webkit-input-placeholder {
      color: rgba(115, 115, 115, .87)
    }

    :focus:-ms-input-placeholder {
      color: rgba(115, 115, 115, .87)
    }

    :focus::-moz-placeholder {
      color: rgba(115, 115, 115, .87)
    }

    font-size: .92857143rem;
    position: relative;
    max-width: 100%;

    .field {
      clear: both;
      margin: 0 0 1em;

      > label {
        display: block;
        margin: 0 0 0.28571429rem 0;
        color: rgba(0, 0, 0, .87);
        font-size: .92857143em;
        text-transform: none;
        cursor: pointer;
        font-weight: 600;
      }
    }

    input:not([type]), input[type=date], input[type=datetime-local], input[type=email], input[type=file], input[type=number],
    input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url] {
      font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
      margin: 0;
      outline: 0;
      -webkit-appearance: none;
      line-height: 1.21428571em;
      padding: 0.67857143em 1em;
      font-size: 1em;
      background: #fff;
      border: 1px solid rgba(34, 36, 38, .15);
      color: rgba(0, 0, 0, .87);
      border-radius: 0.28571429rem;
      box-shadow: 0 0 0 0 transparent inset;
      -webkit-transition: color .1s ease, border-color .1s ease;
      transition: color .1s ease, border-color .1s ease;
      height: auto !important;
    }

    input:not([type]), input[type=date], input[type=datetime-local], input[type=email], input[type=file], input[type=number],
    input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], textarea {
      width: 100%;
      vertical-align: top;
    }

    textarea:not([rows]) {
      height: 12em;
      min-height: 8em;
      max-height: 24em;
    }

    textarea {
      margin: 0;
      -webkit-appearance: none;
      padding: 0.78571429em 1em;
      background: #fff;
      border: 1px solid rgba(34, 36, 38, .15);
      outline: 0;
      color: rgba(0, 0, 0, .87);
      border-radius: 0.28571429rem;
      box-shadow: 0 0 0 0 transparent inset;
      -webkit-transition: color .1s ease, border-color .1s ease;
      transition: color .1s ease, border-color .1s ease;
      font-size: 1em;
      line-height: 1.2857;
      resize: vertical;
    }

    input[type=text] {
      &.epoi-current-page {
        width: auto;
      }
    }

  }

  .button.primary:hover, .buttons.primary .button:hover {
    background-color: #1678c2;
    color: #fff;
    text-shadow: none;
  }

  .button.primary {
    box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
  }

  .button.primary, .buttons.primary .button {
    background-color: #2185d0;
    color: #fff;
    text-shadow: none;
    background-image: none;
  }

  .button, .buttons .button, .buttons .or {
    font-size: .92857143rem;
  }

  .button {
    height: auto;
    cursor: pointer;
    display: inline-block;
    min-height: 1em;
    outline: 0;
    border: none;
    vertical-align: baseline;
    background: #e0e1e2 none;
    color: rgba(0, 0, 0, .6);
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    margin: 0 0.25em 0 0;
    padding: 0.78571429em 1.5em 0.78571429em;
    text-transform: none;
    text-shadow: none;
    font-weight: 300;
    line-height: 1em;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    border-radius: 0.28571429rem;
    box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
    transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
    -webkit-tap-highlight-color: transparent;

    &:hover {
      background-color: #cacbcd;
      background-image: none;
      box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
      color: rgba(0, 0, 0, .8);
    }
  }

  .epoi-expire-notice {
    font-size: medium;
    text-align: right;
    margin-top: 15px;
  }

  .epoi-tablenav-pages {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;

    input {
      width: auto;
      margin: 0;
    }

    .button {
      margin: 0;
    }
  }

  @keyframes button-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .epoi-loading {
    position: relative;
    color: transparent !important;
    opacity: 0.6;
  }

  .epoi-loading:after {
    content: "";
    position: absolute;
    top: 48%;
    left: 50%;
    display: block;
    width: 2em;
    height: 2em;
    margin: -1em;
    border-radius: 50%;
    border: 4px solid;
    border-color: #333333 transparent #333333 transparent;
    animation: button-spin 0.7s linear infinite;
    box-sizing: border-box;
  }
}


.epoi-tablenav-paging-text {
  padding: 0.67857143em 0;
  display: inline-block;
}