@import "../../style/CommonStyle.module.less";
@import "../../style/utils.module.less";

.tButton {
  // common style
  width: auto;
  height: 78px;
  line-height: 78px;
  display: inline-block;
  background-color: #7a808d;
  color: @COLOR_WHITE;
  border-radius: 12px;
  .font (@baseFontBold, 30px);
  transition: all 0.1s ease;
  padding: 0 12px;

  .text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
  }

  .marquee {
    width: 100%;
    > div > div {
      text-align: center;
    }
  }

  &.small {
    min-width: 180px;
    max-width: 300px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    border-radius: 6px;
  }

  &.large {
    min-width: 324px;
    max-width: 650px;
    letter-spacing: -0.75px;
  }
  &.full {
    width: 100%;
  }
  &.basic {
    &.disabled {
      background-color: #7a808d;
    }
  }
  &.gray {
    background-color: @COLOR_GRAY03;
    &.disabled {
      color: #fff;
      background-color: @COLOR_GRAY03;
    }
  }
  &.white {
    color: @COLOR_GRAY03;
    background-color: @COLOR_WHITE;
    &:hover,
    &:active,
    &:focus-within,
    &:focus {
      box-shadow: 0px 18px 28.2px 1.8px rgba(62, 59, 59, 0.4);
      background-color: @PRIMARY_COLOR_RED;
      color: @COLOR_WHITE;
    }
    &.disabled {
      color: @COLOR_GRAY02;
      background-color: @COLOR_WHITE;
      border: 1px solid #dadada;
    }
  }

  &.popup {
    min-width: 240px;
    max-width: 340px;
  }

  &.focused {
    background-color: @PRIMARY_COLOR_RED;
    .focusDropShadow();
  }

  &.disabled {
    opacity: 0.3;
  }

  &.terms {
    background-color: @COLOR_WHITE;
    .flex(@justifyCenter: space-between);
    width: 530px;
    position: relative;
    height: 120px;
    font-size: 34px;
    color: @COLOR_GRAY08;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 0 20px;
    padding: 0 50px;
    box-shadow: 0 0 25px #0003;

    &:hover,
    &:active,
    &:focus-within,
    &:focus {
      border: 1px solid @PRIMARY_COLOR_RED;
      color: @PRIMARY_COLOR_RED;
    }

    &:after {
      content: "";
      background: url(../../../assets/ic-pop-conts-go.png);
      .imgElement(cover, cover, right, top);
      width: 37px;
      height: 37px;
    }
    &:hover,
    &:active,
    &:focus-within,
    &:focus {
      &:after {
        background-position: right bottom;
      }
    }
  }

  &.agree {
    width: auto;
    background-color: #999999;
    color: @COLOR_WHITE;
    min-width: 450px;
    height: 100px;
    margin: 0 20px;
    font-size: 30px;
    border-radius: 10px;
    box-sizing: border-box;
    .flex();
    box-shadow: 0 5px 5px #003 0 6px 7px #0000001a;
    line-height: normal;

    &:hover,
    &:active,
    &:focus-within,
    &:focus {
      box-shadow: 0px 18px 28.2px 1.8px rgba(0, 0, 0, 0.4);
      font-size: 40px;
      // line-height: normal;
      background-color: @PRIMARY_COLOR_RED;
      color: @COLOR_WHITE;
    }
  }
}
