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

.panel {
  > section {
    color: @COLOR_GRAY06;
  }
}

.termsOptionalLayout {
  .flex(@direction: column);
  background-color: @BG_COLOR_03;
  text-align: center;
  width: 100%;
  height: 100vh;

  .title {
    font-size: 60px;
    padding: 44px 201px;
    white-space: pre-wrap;
    line-height: normal;
  }

  .txtPoint {
    font-weight: bold;
    font-size: 74px;
    color: #57585a;
  }

  .pointColor {
    color: #c91d53;
  }

  .description {
    width: 1200px;
    white-space: pre-wrap;
    line-height: normal;
    font-size: 36px;
    padding: 0 10px;
    padding-top: 14px;
  }

  .termsItemsLayer {
    display: flex;
    margin: 113px 0 120px 0;
    .termsButton {
      > div {
        padding-right: 10px;
      }
    }
  }

  .bottomBtnLayer {
    margin-top: 50px;
    .flex();
  }
}

/* TermsOfOptional 전용 스타일들 - IntroPanel 패턴 따라서 추가 */
.welcomeSection {
  width: 100%;
  max-width: 1834px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh;
  margin-bottom: 50px;
}

.welcomeTitle {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.welcomeText {
  color: #807f81;
  font-size: clamp(48px, 3.23vw, 62px);
  font-family: 'LG Smart UI';
  font-weight: 400;
  line-height: 1;
  word-break: break-word;
}

.brandTitle {
  font-size: clamp(54px, 3.65vw, 70px);
  font-family: 'LG Smart_Korean';
  font-weight: 700;
  line-height: 1.07;
  word-break: break-word;
  display: inline;
}

.brandShop { color: #57585a; }
.brandO { color: #c91d53; }
.brandPTime { color: #57585a; }

.welcomeDescription {
  width: 100%;
  max-width: 1012.49px;
  text-align: center;
  color: #807f81;
  font-size: clamp(24px, 1.875vw, 36px);
  font-family: 'LG Smart UI';
  font-weight: 400;
  line-height: 1.19;
  word-break: break-word;
  margin-top: 1vh;
}

.termsSection {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 50px 0;
}

.mandatoryTerms {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-right: 60px;
}

.termItem {
  height: 120px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin: 0;
}

.termCheckbox,
.selectAllCheckbox {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;

  &.tCheckBox {
    border-radius: 0 !important;
    border: 3px solid #C70850 !important;
    background: #fff !important;
    transition: background 0.15s, border 0.15s;
  }

  &.tCheckBox.selected {
    border: 3px solid #7A808D !important;
    background: #7A808D !important;
  }

  &.tCheckBox::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px !important;
    height: 10px !important;
    border-left: 4px solid #fff !important;
    border-bottom: 4px solid #fff !important;
    transform: translate(-50%, -70%) rotate(-45deg) scale(0);
    border-radius: 0 !important;
    transition: transform 0.2s ease-in-out;
  }

  &.tCheckBox.selected::before {
    transform: translate(-50%, -70%) rotate(-45deg) scale(1);
  }
}

.termBox {
  width: 530px;
  height: 120px;
  padding: 0 50px;
  background: white;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.20);
  border-radius: 6px;
  outline: 1px #CFCFCF solid;
  outline-offset: -1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  will-change: transform;

  &:focus {
    outline: 2px #C91D53 solid !important;
    outline-offset: 2px !important;
    background-color: rgba(201, 29, 83, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(201, 29, 83, 0.3) !important;
  }

  &.hovered {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

.termName {
  color: #1a1a1a;
  font-size: 35px;
  font-family: 'LG Smart UI';
  font-weight: 700;
  line-height: 35px;
  word-wrap: break-word;
  transition: color 0.3s ease;
  flex: 1;
  text-align: left;
  margin-right: 20px;

  &.titleHovered {
    color: #c70850;
    font-weight: bold;
  }
}

.termNameMandatory {
  color: #207847 !important;
}

.expandIconContainer {
  width: 37px;
  height: 37px;
  position: relative;
  border-radius: 100px;
  outline: 2.5px black solid;
  outline-offset: -2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;

  &:hover {
    transform: scale(1.05);
  }
}

.selectAllSection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.selectAllText {
  color: #1a1a1a;
  font-size: 35px;
  font-family: 'LG Smart UI';
  font-weight: 700;
  line-height: 35px;
  word-break: break-word;
}

.agreeButton {
  width: 450px;
  height: 100px;
  padding-left: 50px;
  padding-right: 50px;
  background-color: #C70850 !important;
  border: 2px solid #C70850 !important;
  color: white !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  font-family: 'LG Smart UI';
  font-weight: 700;
  transition: all 0.3s ease;

  &:hover,
  &:focus,
  &.spott-focus {
    background-color: #a40640 !important;
    border-color: #a40640 !important;
    color: white !important;
    transform: scale(1.05);
  }
}

.disagreeButton {
  width: 450px;
  height: 100px;
  padding-left: 50px;
  padding-right: 50px;
  background-color: #999999 !important;
  border: 2px solid #999999 !important;
  color: white !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  font-family: 'LG Smart UI';
  font-weight: 700;
  transition: all 0.3s ease;

  &:hover,
  &:focus,
  &.spott-focus {
    background-color: #7a7a7a !important;
    border-color: #7a7a7a !important;
    color: white !important;
    transform: scale(1.05);
  }
}

.divider {
  width: 1px;
  height: 100%;
  background-color: #c5c6c9;
  margin: 0 16px;
  display: inline-block;
}

/* IntroPanel과 동일한 약관 팝업 스타일 */
.introTermsConts {
  background-color: #f8f8f8;

  > div:nth-child(2) {
    background-color: @COLOR_WHITE;
    .border-solid(1px,@COLOR_GRAY02);
    width: 980px;
    height: 300px;
  }

  .termsDesc {
    padding: 30px;
    min-height: 300px;
    color: @COLOR_GRAY03;
    font-size: 24px;
    line-height: 1.27;
    letter-spacing: normal;
    text-align: left;
    .flex( @direction:column, @justifyCenter:flex-start,@alignCenter:flex-start);
  }
}

.tab {
  width: 980px;
}