/* Mobile PDP A/B shared product details, Figma 7377:44944 and 7377:44959. */
html[data-pdp-design="draft-20261103"] .product-main > .brandInfo.pdp-brand-profile {
  box-shadow: inset 0 -1px #f1f1f1;
}

html[data-pdp-design="draft-20261103"] .product-main .itemInfo .priceWrap .generalSale + .priceDisCount,
html[data-pdp-design="draft-20261103"] .product-main .itemInfo .priceWrap .priceDisCount + .couponSale,
html[data-pdp-design="draft-20261103"] .product-main .itemInfo .priceWrap .originPrice + .couponSale {
  margin-top: 2px;
}

html[data-pdp-design="draft-20261103"] .product-main .itemInfo .pdp-mobile-product-badges + .selectSaleBox {
  margin-top: 12px;
}

html[data-pdp-design="draft-20261103"] .product-main .itemInfo .selectSaleBox .saleInfo > b,
html[data-pdp-design="draft-20261103"] .product-main .itemInfo .selectSaleBox .saleInfo .discount,
html[data-pdp-design="draft-20261103"] .product-main .itemInfo .selectSaleBox .saleInfo .finalPrice {
  letter-spacing: 0;
}

/* Match the desktop description toggle, with the mobile 16px gutter. */
html[data-pdp-design="draft-20261103"] .btn-moreV18 {
  box-sizing: border-box;
  padding: 20px 16px;
}

html[data-pdp-design="draft-20261103"] .btn-moreV18 p {
  margin: 0;
  padding: 0;
}

html[data-pdp-design="draft-20261103"] .btnAreaV16a.btn-moreV18 button.btnV16a.btnRed1V16a {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  height: 44px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: 600 14px/22px Pretendard, sans-serif;
  letter-spacing: 0;
}

html[data-pdp-design="draft-20261103"] .btnAreaV16a.btn-moreV18 button.btnV16a.btnRed1V16a :is(.down-open, .up-fold) {
  display: none;
}

/* Center just the empty message; leave the populated list rhythm unchanged. */
html[data-pdp-design="draft-20261103"] .pdp-design-review .pdp-review-heading:has(+ .pdp-review-empty) {
  margin-bottom: 0;
}

html[data-pdp-design="draft-20261103"] .pdp-design-review :is(.pdp-review-empty, .txtNoneV16a) {
  margin: 0;
  padding: 24px 0;
  color: #8e8e8e;
  text-align: center;
  font: 500 14px/22px Pretendard, sans-serif;
}

/* Preserve the outlined owned state in the current staging PDP bundles. */
html[data-pdp-design="draft-20261103"] .product-main .itemInfo .priceWrap > .downCoupon.allDownLoaded {
  background: #fff;
  border: 1px solid var(--Gray-600, #8e8e8e);
}

/* Full reviews share one inset and scroll within the dialog below its header. */
.fullmodal-body > .pdp-design-review.pdp-mobile-review-full {
  min-width: 0;
  padding: 0 16px max(24px, env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
}

.pdp-mobile-review-full > .btn-areaV19 {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.pdp-mobile-review-full > .btn-areaV19::after {
  content: none;
}

.pdp-mobile-review-full > .btn-areaV19 > p {
  flex: 1;
  min-width: 0;
  padding: 0;
  font: 500 13px/20px Pretendard, sans-serif;
  word-break: keep-all;
}

.pdp-mobile-review-full > .btn-areaV19 > .btn {
  flex: none;
  width: auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 13px/34px Pretendard, sans-serif;
  white-space: nowrap;
}

.pdp-mobile-review-full .review-gallery .swiper-container {
  overflow: hidden;
}

.pdp-mobile-review-full .review-gallery .review-gallery-slide:first-child {
  margin-left: 0;
}

@media (min-width: 600px) {
  .fullmodal-root:has(.pdp-mobile-review-full) {
    display: grid;
    place-items: center;
    background: rgb(0 0 0 / 35%);
  }

  .fullmodal-content:has(.pdp-mobile-review-full) {
    width: min(480px, calc(100% - 32px));
    height: auto;
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
  }
}

/* 2026-11-12 상품 상세 추천 카드도 홈과 같은 공용 카드 크기(DS Product Card): 브랜드·상품명 12/16, 가격 15/20 */
html[data-pdp-design] .product-recommendation-card [data-product-card-details] {
  --product-brand-size: 12px; --product-brand-line: 16px;
  --product-title-size: 12px; --product-title-line: 16px;
}
html[data-pdp-design] .product-recommendation-card [data-product-brand] { font-size: 12px !important; line-height: 16px !important; }
html[data-pdp-design] .product-recommendation-card [data-product-title] { font-size: 12px !important; line-height: 16px !important; }
