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

.itemContainer {
  .size(@w: 660px, @h: 333px);
  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;
      }

      .options {
        font-size: 24px;
        line-height: 1.33;
        color: #808080;
      }

      .prodQty {
        font-size: 24px;
        line-height: 1.33;
        color: #808080;
        margin-bottom: 12px;
      }

      .priceWrap {
        display: flex;
        align-items: center;
        .font(@fontFamily: @baseFont, @fontSize: 24px);
        color: @COLOR_GRAY03;
        line-height: 1.33;
        flex-wrap: wrap;

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

          &:after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 2px;
            height: 18px;
            background-color: @COLOR_GRAY03;
          }
        }

        .noticeBox {
          width: 100%;
          font-size: 18px;
          color: @COLOR_GRAY03;
        }
      }
    }
  }

  &:focus {
    &::after {
      .focused(@boxShadow:22px, @borderRadius: 12px);
    }
  }
}
