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

[id="floatLayer"] {
  //common layout
  > div:not([id]) > div > div:nth-child(2) {
    bottom: 50%;
    transform: translateY(50%);
    overflow: unset;
    > div {
      overflow: unset;
    }
  }
}

.tPopUp {
  //enact popup reset
  margin: 0 auto !important;
  background: transparent !important;
  > div {
    padding: 0 !important;
    > div > div {
      width: unset !important;
      margin: 0 !important;
    }
  }
  box-shadow: 0 20px 70px rgba(2, 3, 3, 0.7) !important;
}

.default-style() {
  .info {
    width: 780px;
    background-color: @BG_COLOR_01;
    color: @COLOR_GRAY03;
    display: flex;
    flex-direction: column;
    font-family: @baseFont;
    box-sizing: border-box;
    border-radius: 4px;
  }

  .textLayer {
    width: 100%;

    .title {
      text-align: left;
      font-size: 36px;
      font-family: @baseFontBold;
      line-height: normal;
      color: @COLOR_BLACK;
      background-color: @COLOR_SKYBLUE;
      padding: 30px 60px;
    }

    .text {
      min-height: 180px;
      color: @COLOR_GRAY03;
      font-size: 30px;
      line-height: 38px;
      text-align: center;
      .flex();
    }
  }
}

.introTermsPopup {
  .default-style();

  .info {
    width: 1066px;
    background-color: @COLOR_SKYBLUE;
    padding: 60px;

    .buttonContainer {
      margin: 30px 0 0 0;
      display: flex;
      justify-content: center;
    }
  }
  .title {
    width: 100%;
  }
}

.textPopup {
  .default-style();

  .info {
    .buttonContainer {
      margin: 0 0 30px 0;
      display: flex;
      justify-content: center;
      gap: 12px;
    }
  }
}

.optionPopup {
  .default-style();
  .info {
    width: 820px;
  }

  .optionLayer {
    margin: 0 auto;
    width: 700px;
    max-height: 410px;
    border-top: 1px solid @COLOR_GRAY02;
    border-bottom: 1px solid @COLOR_GRAY02;

    li:not(:first-child) {
      border-top: 1px solid @COLOR_GRAY02;
    }

    .option {
      background: @COLOR_WHITE;
      font-size: 24px;
      color: @COLOR_GRAY03;
      padding: 30px;
      border-right: 1px solid @COLOR_GRAY02;
      border-left: 1px solid @COLOR_GRAY02;
      height: 90px;
      line-height: normal;
      align-items: center;
      display: flex;

      &:focus-within,
      &:hover,
      &:focus {
        background: @PRIMARY_COLOR_RED;
        color: @COLOR_WHITE;
      }
      .img {
        width: 60px;
        height: 60px;
        margin: 0 12px 0 0;
      }
    }

    &.optionScroll {
      overflow-y: auto;
    }
    .selectedOption {
      background: @SELECTED_COLOR_RED;
      color: @COLOR_WHITE;
    }
  }
  .buttonContainer {
    margin: 30px 0 30px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
}

.eventBannerPopup {
  .default-style();
  .info {
    width: 600px;
    height: 510px;
  }

  .buttonContainer {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    > div {
      min-width: 240px;
      height: 80px;
      cursor: pointer;
    }
  }
}

.supportPopup {
  .default-style();

  .info {
    width: 1064px;
    height: 749px;
    background-color: @COLOR_SKYBLUE;
    padding: 60px;

    .buttonContainer {
      margin: 30px 0 0 0;
      display: flex;
      justify-content: center;
    }
  }
  .title {
    width: 100%;
  }
}
