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

.tButton {
  // common style
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-size: contain;
  background-color: @BTN_MAIN_GREY;
  color: @COLOR_WHITE;
  font-family: @baseFont;
  border-radius: @btnRadius;
  padding: 0 12px;
  transition: all 0.1s ease;

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

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

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

  &.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;
    }
    s &: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: @PRIMARY_COLOR_RED;
      color: @COLOR_WHITE;
    }
  }
}
