/* Korea Store BY · product gallery, share and editorial copy · 2026-10-29
   Purposefully scoped to the public product detail, no gallery data mutation. */

/* Gallery: thumb rail on the LEFT at every viewport size. */
body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single){
  display:grid!important;
  grid-template-columns:clamp(55px,5.8vw,78px) minmax(0,1fr)!important;
  align-content:start!important;
  align-items:start!important;
  column-gap:10px!important;
  row-gap:0!important;
  min-width:0!important;
}
body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single)>.ksp-thumbs{
  display:flex!important;
  flex-direction:column!important;
  grid-column:1!important;
  grid-row:1!important;
  order:0!important;
  align-self:start!important;
  min-width:0!important;
  width:100%!important;
  max-height:min(75dvh,560px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin!important;
  scroll-snap-type:y proximity!important;
  overscroll-behavior:contain!important;
  gap:7px!important;
}
body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single)>.ksp-thumbs>.ksp-thumb{
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  scroll-snap-align:start!important;
}
body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single)>.ksp-main-media{
  grid-column:2!important;
  grid-row:1!important;
  order:1!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
}
@media(max-width:820px){
  body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single){
    grid-template-columns:clamp(48px,12vw,64px) minmax(0,1fr)!important;
    gap:7px!important;
  }
  body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single)>.ksp-thumbs{
    max-height:min(88vw,510px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
}
@media(max-width:380px){
  body[data-product-page] .ksp-product .ksp-media:not(.ksp-media--single){
    grid-template-columns:44px minmax(0,1fr)!important;
    gap:6px!important;
  }
}

/* Share next to the review jump, at the TOP of the product card. */
body[data-product-page] .ksp-detail .ksp-rating-line{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
body[data-product-page] .ksp-detail .ksp-share-product{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  min-height:36px;
  padding:7px 9px;
  background:#fff;
  border:1px solid #e7dfd9;
  border-radius:8px;
  color:#171717;
  font-size:12px;
  font-weight:650;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease;
}
body[data-product-page] .ksp-detail .ksp-share-product svg{
  display:block;width:17px;height:17px;flex:0 0 17px;
}
body[data-product-page] .ksp-detail .ksp-share-product:hover{
  border-color:#E91E63;background:#FFF2F7;color:#E91E63;
}
body[data-product-page] .ksp-detail .ksp-share-product:focus-visible{
  outline:2px solid #E91E63;outline-offset:2px;
}
@media(max-width:380px){
  body[data-product-page] .ksp-detail .ksp-share-product{
    min-height:34px;padding:6px;font-size:11px;gap:4px;
  }
}

/* Inna: clean white description canvas and black copy.
   Small colored benefit panels remain untouched. */
body[data-product-page] .ksp-info--unified,
body[data-product-page] .ksp-description-priority,
body[data-product-page] .ksp-description-priority .ksp-long-copy--editorial,
body[data-product-page] .ksp-description-priority .ksp-editorial-copy{
  background:#FFFFFF!important;
  background-image:none!important;
}
body[data-product-page] .ksp-description-priority>h3,
body[data-product-page] .ksp-description-priority .ksp-editorial-copy>p,
body[data-product-page] .ksp-description-priority .ksp-editorial-paragraph,
body[data-product-page] .ksp-description-priority .ksp-editorial-paragraph.is-first::first-letter,
body[data-product-page] .ksp-description-priority .ksp-editorial-highlight p,
body[data-product-page] .ksp-description-priority .ksp-editorial-note p{
  color:#171717!important;
  -webkit-text-fill-color:#171717!important;
}

/* Inna: remove outer description cards and contours, 2026-10-29. */
/* The enclosing information section is no longer a rounded card.
   Only its outer frame is removed; internal benefit chips, accordion
   separators, descriptions and functional controls are unchanged. */
body[data-product-page] .ksp-page .ksp-info.ksp-info--unified{
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  background-image:none!important;
  padding:0!important;
}
/* The nested description used to be another bordered cream card. */
body[data-product-page] .ksp-info--unified .ksp-description-priority{
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  background-image:none!important;
  padding:0!important;
  margin:12px 0 18px!important;
}
body[data-product-page] .ksp-info--unified .ksp-description-priority .ksp-long-copy--editorial{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
@media(max-width:640px){
  body[data-product-page] .ksp-info--unified .ksp-description-priority{
    margin:10px 0 16px!important;
  }
}
