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

.itemContainer {
  .size(@w: 660px, @h: 433px);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: @COLOR_WHITE;
  padding: 20px 0;

  .itemHeader {
    padding: 0 30px;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #dadada;

    .patnrLogo {
      .size(@w: 42px, @h: 42px);
      border: 1px solid #dadada;
      border-radius: 50%;
      margin-right: 12px;
    }

    .prdtId {
      .font(@fontFamily: @baseFont, @fontSize: 30px);
      color: #767676;
    }
  }

  .itemContents {
    display: flex;
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;

    .leftContents {
      .size(@w: 200px, @h: 200px);
      border: 1px solid #f0f0f0;
      margin-right: 20px;

      .itemImage {
        .size(@w: 100%, @h: 100%);
        object-fit: cover;
      }
    }

    .rightContents {
      .size(@w: calc(100% - 200px), @h: 200px);

      .prdtNm {
        .font(@fontFamily: @baseFont, @fontSize: 24px);
        .elip(@clamp: 2);
        line-height: 1.33;
        color: #333;
        font-weight: bold;
        margin-bottom: 16px;
      }

      .priceWrap {
        .font(@fontFamily: @baseFont, @fontSize: 24px);
        color: @COLOR_GRAY03;
        line-height: 1.33;

        .itemPrice {
          display: block;
          .font(@fontFamily: @baseFont, @fontSize: 30px);
          font-weight: bold;
          color: @PRIMARY_COLOR_RED;
          line-height: 1.27;
          padding-right: 16px;
          margin-right: 16px;
          margin-bottom: 14px;

          .originalPrice {
            font-weight: normal;
            margin-left: 5px;
            font-size: 18px;
            color: #767676;
            text-decoration: line-through;
          }
        }

        .shPrice {
          display: block;
        }

        .noticeBox {
          width: 100%;
          margin-top: 15px;
          font-size: 18px;
          color: @COLOR_GRAY03;
        }
      }
    }
  }
  > .dropDownWrap {
    width: 600px;
    margin: 10px auto 0;
    > div.dropDown {
      width: 100%;
      &.selected {
        > div {
          > div {
            background-color: @COLOR_WHITE !important;
            color: @PRIMARY_COLOR_RED !important;
            border: 1px solid @PRIMARY_COLOR_RED !important;
            box-shadow: 0 0 22px 0 rgba(0, 0, 0, 0.5);
            > div:nth-child(2) {
              > div:first-child {
                color: @PRIMARY_COLOR_RED !important;
              }
            }
          }
        }
      }

      > div {
        width: 100%;

        > div {
          width: 100% !important;
          background-color: @COLOR_WHITE !important;
          color: @COLOR_GRAY03 !important;
          border: 1px solid @COLOR_GRAY02;
          > div:nth-child(2) {
            > div:first-child {
              color: @COLOR_GRAY03 !important;
            }
          }
          &:focus,
          &:active {
            background-color: @COLOR_WHITE !important;
            color: @PRIMARY_COLOR_RED !important;
            border: 1px solid @PRIMARY_COLOR_RED !important;
            box-shadow: 0 0 22px 0 rgba(0, 0, 0, 0.5);
            > div:nth-child(2) {
              > div:first-child {
                color: @PRIMARY_COLOR_RED !important;
              }
            }
          }
        }
      }
    }
  }
}
[class="checkout_dropdown"] {
  > div > div[id] > div:nth-child(2) {
    -webkit-filter: none !important;
    filter: none !important;
    > div:nth-child(1) {
      height: 123px !important;
      width: 600px !important;
      margin-top: 0 !important;
      border-radius: 0 0 6px 6px !important;
      background-color: @COLOR_GRAY03 !important;
      overflow: hidden;
      > div {
        width: 600px !important;
        height: 123px !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
        > div {
          > div {
            > div {
              padding: 0 !important;

              &:first-child {
                > div:nth-child(1) {
                  border-radius: 6px 6px 0 0 !important;
                  overflow: hidden;
                  &:focus {
                    border-radius: 0 !important;
                  }
                  > div:first-child {
                    will-change: unset !important;
                  }
                }
              }
              &:last-child {
                > div:nth-child(1) {
                  border-radius: 0 0 6px 6px !important;
                  overflow: hidden;
                  &:focus {
                    border-radius: 0 0 6px 6px !important;
                  }
                }
              }
              > div:nth-child(1) {
                height: 61px !important;
                padding: 20px 19px !important;
                &:focus {
                  background-color: @PRIMARY_COLOR_RED !important;
                  color: @COLOR_WHITE !important;
                  box-shadow: 0 0 22px 0 rgba(0, 0, 0, 0.5);
                }
              }
            }
          }
        }
      }
    }
  }
}
