/* NAVER_REVIEW_RESPONSIVE_UX Phase 2A — 아래 "#comments .commentlist ..." 선택자들은
   모두 원본 상품 상세페이지의 리뷰 카드 스타일이다. 전체보기 모달 안에서도 같은 카드를
   clone해 재사용하므로, 각 규칙의 선택자 목록에 ".okgs-review-browse-modal__list-wrap
   .commentlist ..." 변형을 추가해 동일한 시각 스타일이 모달 안에서도 적용되게 했다.
   (원본 "#comments" 규칙 자체는 값 변경 없이 그대로 유지됨) */

/* Phase 03B — review badges (BEST / 한달사용) */
.okgs-review-badges,
.okgs-review-modal__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.okgs-review-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.okgs-review-badge--best {
  background: #111;
  color: #fff;
}

.okgs-review-badge--after-use {
  background: #eef4ff;
  color: #1a56db;
  border: 1px solid #c7d7fe;
}

.okgs-review-modal__badges {
  display: flex;
  margin-left: 0;
  margin-top: 6px;
}

/* Phase 2B — review list thumbnail: PC right-fixed, mobile Naver-style (v1.0.42) */
/* Phase 3A-6/3A-7 — compact fixed-height list cards (PC), 3-line clamp + ellipsis.
   Mobile list: Naver-style 2-line body + right thumbnail (v1.0.42). */

.okgs-has-review-media .comment_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

li.okgs-review-clickable .comment_container {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* Phase 3A-5 — full-card hover: a li-level overlay fills the rounded card shell
   edge-to-edge when the pointer is anywhere inside .comment_container. */
#comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable ,
.okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0 !important;
}

#comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable::before ,
.okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  transition: background-color 0.15s ease;
  pointer-events: none;
}

#comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable:has(.comment_container:hover)::before ,
.okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable:has(.comment_container:hover)::before {
  background-color: #f5f5f5;
}

#comments .commentlist > li.okgs-review-clickable .comment_container:hover ,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .comment_container:hover {
  background-color: #f5f5f5 !important;
}

#comments .commentlist > li.okgs-review-clickable .comment_container ,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .comment_container {
  position: relative;
  z-index: 1;
}

#comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable > .comment_container ,
.okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable > .comment_container {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
}

#comments .commentlist > li.okgs-review-clickable .comment_container,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .comment_container,
#comments .commentlist > li.okgs-review-clickable .comment-text,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .comment-text,
#comments .commentlist > li.okgs-review-clickable .okgs-review-media-preview,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .okgs-review-media-preview,
#comments .commentlist > li.okgs-review-clickable .okgs-review-image-button ,
.okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable .okgs-review-image-button {
  background-color: transparent !important;
}

.okgs-has-review-media .comment-text {
  flex: 1 1 auto;
  min-width: 0;
}

.okgs-review-media-preview {
  flex: 0 0 120px;
  width: 120px;
  margin: 0;
  padding: 0;
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.okgs-review-image-button {
  display: block;
  position: relative;
  width: 100%;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none !important;
}

.okgs-review-media-preview img,
.okgs-review-media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

/* Video-only review card: poster + play overlay. */
#comments .okgs-review-image-button.okgs-review-image-button--video,
.okgs-review-browse-modal__list-wrap .okgs-review-image-button.okgs-review-image-button--video {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 0;
  overflow: hidden;
}

.okgs-review-image-button--video {
  position: relative;
}

#comments .okgs-review-image-button--video .okgs-review-media-play,
.okgs-review-browse-modal__list-wrap .okgs-review-image-button--video .okgs-review-media-play,
.okgs-review-card-video .okgs-review-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  fill: #fff !important;
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

#comments .okgs-review-image-button--video .okgs-review-media-play polygon,
.okgs-review-browse-modal__list-wrap .okgs-review-image-button--video .okgs-review-media-play polygon {
  fill: #fff !important;
}

#comments .okgs-review-image-button .okgs-review-media-count,
.okgs-review-browse-modal__list-wrap .okgs-review-image-button .okgs-review-media-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

/* REVIEW_SUMMARY — 고객 리뷰 제목 더 굵게·약간 크게 */
.wpb_wrapper:has(#reviews) > .title-wrapper .woodmart-title-container {
  font-size: 1.5625rem;
  font-weight: 800;
}

/* REVIEW_SUMMARY — 리뷰 개수: 고객 리뷰 제목보다 작게, 검정 Bold */
#reviews .wd-rating-summary-heading .wd-rating-summary-total,
#reviews .wd-rating-summary-total.okgs-review-summary-count {
  display: block;
  width: 100%;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  color: #111;
}

.okgs-review-card-video {
  position: relative;
}

.okgs-review-card-video__stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

.okgs-review-card-video__player-host {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.okgs-review-card-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}

.okgs-review-card-video.is-playing .okgs-review-image-button--video {
  display: none !important;
}

.okgs-review-media-mute {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  cursor: pointer;
  line-height: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.okgs-review-media-mute[hidden] {
  display: none !important;
}

.okgs-review-media-mute__icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.okgs-review-media-mute__icon[hidden] {
  display: none !important;
}

.okgs-review-modal__big-video-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.okgs-review-modal__big-video-wrap[data-video-fullscreen="true"] .okgs-review-modal__video-controls,
.okgs-review-modal__big-video-wrap[data-video-fullscreen="true"] .okgs-review-modal__video-center-play,
.okgs-review-modal__big-video-wrap[data-video-fullscreen="true"] .okgs-review-modal__video-center-pause {
  display: none !important;
  pointer-events: none !important;
}

.okgs-review-modal__big-video:fullscreen,
.okgs-review-modal__big-video:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #000;
  border-radius: 0;
}

.okgs-review-modal__video-controls {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  box-sizing: border-box;
  padding: 20px 8px 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: auto;
  line-height: normal;
}

.okgs-review-modal__video-controls[hidden] {
  display: none !important;
}

.okgs-review-modal__video-progress {
  padding: 0 4px 8px;
}

.okgs-review-modal__video-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
}

.okgs-review-modal__video-progress-fill {
  height: 100%;
  width: 0%;
  background: #03c75a;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.okgs-review-modal__video-controls-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.okgs-review-modal__video-controls-left {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.okgs-review-modal__video-controls-right {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
}

.okgs-review-modal__video-toggle,
.okgs-review-modal__video-mute,
.okgs-review-modal__video-expand {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 6px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  line-height: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.okgs-review-modal .okgs-review-modal__video-toggle .okgs-review-modal__toggle-icon,
.okgs-review-modal .okgs-review-modal__video-mute .okgs-review-media-mute__icon {
  display: none !important;
  width: 100%;
  height: 100%;
  fill: #fff !important;
}

.okgs-review-modal .okgs-review-modal__video-toggle[data-state="paused"] .okgs-review-modal__toggle-icon--play,
.okgs-review-modal .okgs-review-modal__video-toggle[data-state="playing"] .okgs-review-modal__toggle-icon--pause {
  display: block !important;
}

.okgs-review-modal .okgs-review-modal__video-mute[data-muted="true"] .okgs-review-media-mute__icon--muted,
.okgs-review-modal .okgs-review-modal__video-mute[data-muted="false"] .okgs-review-media-mute__icon--unmuted {
  display: block !important;
}

.okgs-review-modal__video-expand .okgs-review-modal__expand-icon {
  display: block !important;
  width: 100%;
  height: 100%;
  stroke: #fff;
}

.okgs-review-modal__video-center-play,
.okgs-review-modal__video-center-pause {
  position: absolute !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  padding: 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.okgs-review-modal__video-center-play .okgs-review-modal__center-icon,
.okgs-review-modal__video-center-pause .okgs-review-modal__center-icon {
  display: block !important;
  width: 100%;
  height: 100%;
  fill: #fff !important;
}

.okgs-review-modal__big-video-wrap[data-state="paused"] .okgs-review-modal__video-center-play {
  opacity: 0.88;
  pointer-events: auto;
}

.okgs-review-modal__big-video-wrap[data-state="playing"] .okgs-review-modal__video-center-pause {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .okgs-review-modal__big-video-wrap[data-state="playing"]:hover .okgs-review-modal__video-center-pause {
    opacity: 0.88;
    pointer-events: auto;
  }
}

.okgs-review-modal__video-time {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.01em;
  user-select: none;
}

.okgs-review-modal__big-video {
  cursor: pointer;
  vertical-align: top;
}

@media (max-width: 768px) {
  #comments .okgs-review-image-button--video .okgs-review-media-play,
  .okgs-review-browse-modal__list-wrap .okgs-review-image-button--video .okgs-review-media-play {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 6px;
  }
}

/* ---------------------------------------------------------------------- */
/* Phase 3A-6/3A-7 — fixed-height review list cards + 3-line body clamp   */
/* ---------------------------------------------------------------------- */

@media (min-width: 769px) {
  #comments .commentlist > li.review ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.review {
    margin-bottom: 10px;
  }

  #comments .commentlist > li.okgs-review-clickable ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable {
    box-sizing: border-box;
    height: 144px;
    min-height: 144px;
    max-height: 144px;
  }

  #comments .commentlist .comment_container ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    padding: 0 12px;
    overflow: hidden;
  }

  #comments .commentlist .comment-text ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px 0;
    background: transparent;
  }

  #comments .commentlist .comment-text .meta ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta {
    margin: 0 0 4px;
    line-height: 1.3;
  }

  #comments .commentlist .comment-text .star-rating ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .star-rating {
    margin: 0 0 6px;
  }

  #comments .commentlist .comment-text .description ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    max-height: calc(1.45em * 3);
    flex: 1 1 auto;
    min-height: 0;
    word-break: break-word;
  }

  #comments .commentlist .comment-text .description p ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .description p {
    margin: 0;
  }

  #comments .commentlist .okgs-has-review-media .comment-text ,
  .okgs-review-browse-modal__list-wrap .commentlist .okgs-has-review-media .comment-text {
    flex: 1 1 auto;
  }

  #comments .commentlist .okgs-review-media-preview ,
  .okgs-review-browse-modal__list-wrap .commentlist .okgs-review-media-preview {
    flex: 0 0 120px;
    width: 120px;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
  }

  #comments .commentlist .okgs-review-image-button ,
  .okgs-review-browse-modal__list-wrap .commentlist .okgs-review-image-button {
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 768px) {
  /* Naver-style mobile card: compact meta/stars + 3-line body left + 84px thumb right */
  #comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable ,
  .okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #comments .commentlist.wd-review-style-2 > li.review.okgs-review-clickable > .comment_container ,
  .okgs-review-browse-modal__list-wrap .commentlist.wd-review-style-2 > li.review.okgs-review-clickable > .comment_container {
    position: relative;
    inset: auto;
    width: 100% !important;
    max-width: 100% !important;
  }

  #comments .commentlist > li.review ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.review {
    margin-bottom: 8px;
  }

  #comments .commentlist > li.okgs-review-clickable ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #comments .commentlist .comment_container ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment_container {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    padding: 6px 14px 12px;
    overflow: visible;
  }

  #comments .commentlist .comment-text .meta ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0;
    line-height: 1.2;
  }

  #comments .commentlist .comment-text .meta .woocommerce-review__author ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta .woocommerce-review__author {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #comments .commentlist .comment-text .meta .woocommerce-review__published-date ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta .woocommerce-review__published-date {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #comments .commentlist .comment-text .star-rating ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .star-rating {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1;
  }

  #comments .commentlist .comment-text .description ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding-bottom: 1px;
    font-size: 16px;
    line-height: 1.5;
    height: auto;
    max-height: none;
    max-block-size: none;
    min-width: 0;
    min-height: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
  }

  #comments .commentlist .comment-text .description p ,
  .okgs-review-browse-modal__list-wrap .commentlist .comment-text .description p {
    margin: 0;
    padding: 0;
  }

  /* With media: grid — body left, thumbnail right on same row */
  #comments .commentlist > li.okgs-has-review-media .comment_container ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment_container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: start;
  }

  #comments .commentlist > li.okgs-has-review-media .comment-text ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment-text {
    display: contents;
  }

  #comments .commentlist > li.okgs-has-review-media .comment-text .meta ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment-text .meta {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #comments .commentlist > li.okgs-has-review-media .comment-text .star-rating ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment-text .star-rating {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 0 10px;
  }

  #comments .commentlist > li.okgs-has-review-media .comment-text .description ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment-text .description {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    display: -webkit-box !important;
  }

  #comments .commentlist > li.okgs-has-review-media .okgs-review-media-preview ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-media-preview {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    flex: 0 0 84px;
    width: 84px;
    max-width: 84px;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
    overflow: hidden;
  }

  #comments .commentlist > li.okgs-has-review-media .okgs-review-image-button ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-image-button {
    width: 84px;
    height: 84px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #comments .commentlist > li.okgs-has-review-media .okgs-review-media-thumb ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-media-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
  }

  /* Without media: single column, body uses full width */
  #comments .commentlist > li.okgs-review-clickable:not(.okgs-has-review-media) .comment_container ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable:not(.okgs-has-review-media) .comment_container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #comments .commentlist > li.okgs-review-clickable:not(.okgs-has-review-media) .comment-text ,
  .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-review-clickable:not(.okgs-has-review-media) .comment-text {
    flex: none;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
  }

  /* Narrow mobile (Fold cover / in-app): tighter padding, 80px thumb, 15px body */
  @media (max-width: 340px) {
    #comments .commentlist .comment_container ,
    .okgs-review-browse-modal__list-wrap .commentlist .comment_container {
      padding: 4px 12px 10px;
    }

    #comments .commentlist .comment-text .meta ,
    .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta {
      gap: 6px;
      font-size: 13px;
    }

    #comments .commentlist .comment-text .meta .woocommerce-review__published-date ,
    .okgs-review-browse-modal__list-wrap .commentlist .comment-text .meta .woocommerce-review__published-date {
      font-size: 12px;
    }

    #comments .commentlist .comment-text .description ,
    .okgs-review-browse-modal__list-wrap .commentlist .comment-text .description {
      font-size: 15px;
      line-height: 1.5;
    }

    #comments .commentlist > li.okgs-has-review-media .comment_container ,
    .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .comment_container {
      grid-template-columns: minmax(0, 1fr) 80px;
      column-gap: 8px;
    }

    #comments .commentlist > li.okgs-has-review-media .okgs-review-media-preview ,
    .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-media-preview {
      flex: 0 0 80px;
      width: 80px;
      max-width: 80px;
    }

    #comments .commentlist > li.okgs-has-review-media .okgs-review-image-button ,
    .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-image-button {
      width: 80px;
      height: 80px;
    }

    #comments .commentlist > li.okgs-has-review-media .okgs-review-media-thumb ,
    .okgs-review-browse-modal__list-wrap .commentlist > li.okgs-has-review-media .okgs-review-media-thumb {
      width: 80px;
      height: 80px;
    }
  }
}

/* ---------------------------------------------------------------------- */
/* Phase 3A (final) — review-browser modal                                */
/* Whole review card -> this modal. Prev/next arrows swap the ENTIRE       */
/* review (author/rating/date/content/media), not just the image.         */
/* ---------------------------------------------------------------------- */

.okgs-review-modal {
  position: fixed;
  inset: 0;
  z-index: 999997;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.okgs-review-modal[hidden] {
  display: none !important;
}

.okgs-review-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 84vw;
  height: 90vh;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.35);
}

.okgs-review-modal__topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}

.okgs-review-modal__position {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.okgs-review-modal__close {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #111;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.okgs-review-modal__close svg {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  display: block;
}

.okgs-review-modal__body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.okgs-review-modal__image-col {
  flex: 1 1 58%;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f7f7f7;
  padding: 24px 24px 16px;
  box-sizing: border-box;
}

.okgs-review-modal__image-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.okgs-review-modal__media-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.okgs-review-modal__big-image-btn {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.okgs-review-modal__big-image-btn[hidden] {
  display: none !important;
}

.okgs-review-modal__big-image-btn img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.okgs-review-modal__big-video-wrap {
  position: relative !important;
  display: block !important;
  width: fit-content !important;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.okgs-review-modal__big-video-wrap[hidden] {
  display: none !important;
}

.okgs-review-modal__big-video {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
  vertical-align: top;
}

.okgs-review-modal__no-image {
  color: #999;
  font-size: 14px;
}

.okgs-review-modal__no-image[hidden] {
  display: none !important;
}

.okgs-review-modal__info-col {
  flex: 0 0 40%;
  max-width: 480px;
  min-width: 300px;
  padding: 32px 36px;
  overflow: hidden;
  box-sizing: border-box;
  border-left: 1px solid #eee;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.okgs-review-modal__author {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: #111;
}

.okgs-review-modal__meta {
  margin-bottom: 20px;
}

.okgs-review-modal__rating {
  color: #f5a623;
  letter-spacing: 4px;
  font-size: 26px;
  line-height: 1;
}

.okgs-review-modal__date {
  color: #999;
  font-size: 13px;
  margin-left: 10px;
}

.okgs-review-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
  margin-bottom: 0;
}

.okgs-review-modal__thumbs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.okgs-review-modal__thumbs::-webkit-scrollbar {
  height: 4px;
}

.okgs-review-modal__thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.okgs-review-modal__thumbs:empty {
  display: none;
  padding: 0;
  margin: 0;
  border-bottom: 0;
}

.okgs-review-modal__thumb-btn {
  position: relative;
  flex: 0 0 84px;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  padding: 2px !important;
  margin: 0;
  border: 1px solid transparent !important;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  line-height: 0;
  display: block;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
}

.okgs-review-modal__thumb-btn:focus,
.okgs-review-modal__thumb-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.okgs-review-modal__thumb-btn.is-video {
  background: #222;
}

.okgs-review-modal__thumb-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #111 100%);
}

.okgs-review-modal__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.okgs-review-modal__thumb-btn img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.okgs-review-modal__thumb-btn.is-active {
  border: 1px solid #111 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Prev/next REVIEW arrows — positioned on active media center via JS (review-media.js).
   !important on position: theme generic `button { position: relative }` breaks absolute. */
.okgs-review-modal__arrow {
  position: absolute !important;
  top: 50%;
  left: auto;
  right: auto;
  transform: translateY(-50%);
  visibility: hidden;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.okgs-review-modal__arrow svg {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.okgs-review-modal__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.okgs-review-modal__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.okgs-review-modal__arrow.is-positioned {
  visibility: visible;
}

@media (max-width: 768px) {
  /* Hide WoodMart sticky bottom toolbar while the review modal is open (JS toggles body class). */
  body.okgs-review-modal-open .wd-toolbar {
    display: none !important;
  }

  .okgs-review-modal {
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
  }

  .okgs-review-modal__dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: 100vh;
    border-radius: 0;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .okgs-review-modal__topbar {
    position: sticky;
    top: 0;
    z-index: 6;
    flex-shrink: 0;
    padding: 10px 16px;
    background: #fff;
  }

  .okgs-review-modal__close svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
  }

  .okgs-review-modal__body {
    flex: 0 0 auto;
    flex-direction: column;
    overflow: visible;
    min-height: auto;
  }

  .okgs-review-modal__image-col {
    flex: 0 0 auto;
    position: relative;
    padding: 8px 16px 12px;
    background: #fff;
  }

  .okgs-review-modal__image-stage {
    min-height: 0;
    flex: 0 0 auto;
  }

  .okgs-review-modal__media-stage {
    width: fit-content;
    max-width: 100%;
  }

  .okgs-review-modal__big-image-btn {
    max-width: 100%;
  }

  .okgs-review-modal__big-image-btn img {
    max-width: calc(100vw - 32px);
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .okgs-review-modal__big-video {
    max-width: calc(100vw - 32px);
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .okgs-review-modal__big-video-wrap[data-native-controls="true"] .okgs-review-modal__video-controls,
  .okgs-review-modal__big-video-wrap[data-native-controls="true"] .okgs-review-modal__video-center-play,
  .okgs-review-modal__big-video-wrap[data-native-controls="true"] .okgs-review-modal__video-center-pause {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .okgs-review-modal__big-video-wrap[data-native-controls="true"] .okgs-review-modal__big-video {
    display: block;
    width: 100%;
    max-width: calc(100vw - 32px);
    pointer-events: auto;
  }

  .okgs-review-modal__video-controls {
    z-index: 10;
    touch-action: none;
  }

  .okgs-review-modal__video-toggle,
  .okgs-review-modal__video-mute,
  .okgs-review-modal__video-expand,
  .okgs-review-modal__video-progress-bar {
    touch-action: manipulation;
  }

  .okgs-review-modal__video-toggle svg,
  .okgs-review-modal__video-mute svg,
  .okgs-review-modal__video-expand svg,
  .okgs-review-modal__video-center-play svg,
  .okgs-review-modal__video-center-pause svg {
    pointer-events: none;
  }

  .okgs-review-modal__thumbs {
    padding: 0 0 10px;
    gap: 5px;
    margin: 12px 0 14px;
    border-bottom: 1px solid #eee;
  }

  .okgs-review-modal__thumb-btn {
    flex: 0 0 72px;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
  }

  .okgs-review-modal__play-icon {
    width: 24px;
    height: 24px;
  }

  .okgs-review-modal__info-col {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    overflow: visible;
    border-left: 0;
    border-top: 0;
    padding: 0 18px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  .okgs-review-modal__author {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .okgs-review-modal__meta {
    margin-bottom: 14px;
  }

  .okgs-review-modal__rating {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .okgs-review-modal__date {
    font-size: 13px;
  }

  .okgs-review-modal__content {
    flex: 0 0 auto;
    min-height: auto;
    max-height: none;
    height: auto;
    overflow: visible;
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .okgs-review-modal__arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .okgs-review-modal__arrow svg {
    width: 30px;
    height: 30px;
  }
}

/* ---------------------------------------------------------------------- */
/* Phase 3A — gallery lightbox (WoodMart PhotoSwipe, reused)              */
/* ---------------------------------------------------------------------- */

/* PhotoSwipe is a sitewide singleton; force it above our own modal
   (999997) whenever it is opened (from review list or review modal). */
.pswp {
  z-index: 1000000 !important;
}

.okgs-pswp-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000010;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  overflow-x: auto;
}

.okgs-pswp-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  background: transparent;
}

.okgs-pswp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.okgs-pswp-thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

/* REVIEW_IMAGE_LIGHTBOX_MOBILE_CLOSE_BUTTON_UX_FIX_PHASE_01 —
   리뷰·상품 갤러리 PhotoSwipe: WoodMart .pswp__button--close 재사용 + 직접 close API. */
body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__top-bar {
  height: auto;
  min-height: 44px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: calc(68px + env(safe-area-inset-right, 0px));
  pointer-events: none;
  opacity: 1 !important;
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced.pswp__ui--idle .pswp__top-bar,
body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced.pswp__ui--hidden .pswp__top-bar {
  opacity: 1 !important;
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__top-bar .pswp__button:not(.pswp__button--close) {
  pointer-events: auto;
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__button--close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  float: none;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  z-index: 1000040 !important;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  overflow: visible !important;
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__button--close::before,
body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__button--close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 3px;
  margin: 0;
  border: 0;
  background: #111 !important;
  background-image: none !important;
  border-radius: 2px;
  pointer-events: none;
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__button--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced .pswp__button--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced.pswp__ui--idle .pswp__button--close,
body.okgs-pswp-enhanced-open .pswp.okgs-pswp-enhanced.pswp__ui--hidden .pswp__button--close {
  opacity: 1 !important;
}

/* ---------------------------------------------------------------- */
/* NAVER_REVIEW_RESPONSIVE_UX Phase 1 — PC review preview height fit  */
/* PC(>=992px, 기존 2열↔1열 전환 breakpoint)에서만 적용된다. 모바일/    */
/* 태블릿(<992px)은 이 미디어쿼리 밖이라 전혀 영향받지 않는다.          */
/* ---------------------------------------------------------------- */

@media (min-width: 992px) {
  /* JS 계산이 끝나기 전(okgs-preview-ready 없음) 기본으로 3개만 노출해,
     전체 리뷰가 잠깐 보였다가 갑자기 줄어드는 초기 화면 깜빡임을 막는다. */
  #comments ol.commentlist:not(.okgs-preview-ready) > li.review:nth-child(n + 4) {
    display: none;
  }

  /* JS 계산 완료 후에는 이 클래스로만 표시 여부를 제어한다. */
  #comments ol.commentlist.okgs-preview-ready > li.review.okgs-review-preview-hidden {
    display: none;
  }
}

/* ---------------------------------------------------------------- */
/* NAVER_REVIEW_RESPONSIVE_UX Phase 3 — 모바일(<992px) 리뷰 더보기      */
/* ---------------------------------------------------------------- */

@media (max-width: 991px) {
  /* JS 준비 전 초기 깜빡임 방지: 10개만 노출 */
  #comments ol.commentlist:not(.okgs-mobile-load-more-ready) > li.review:nth-child(n + 11) {
    display: none;
  }

  #comments ol.commentlist.okgs-mobile-load-more-ready > li.review.okgs-review-mobile-load-more-hidden {
    display: none;
  }
}

.okgs-review-load-more-btn {
  display: none !important;
  width: 100%;
  box-sizing: border-box;
  margin: 10px auto 0;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 991px) {
  #comments ol.commentlist.okgs-mobile-load-more-ready + .okgs-review-load-more-btn:not([hidden]) {
    display: block !important;
  }

  .okgs-review-load-more-btn:hover {
    background: #f7f7f7;
  }
}

/* ---------------------------------------------------------------- */
/* NAVER_REVIEW_RESPONSIVE_UX Phase 2A — 리뷰 전체보기 버튼 + 전체보기 모달 */
/* PC(>=992px) 전용. 모바일은 별도 처리(Phase 3) 대상이라 이 블록은         */
/* @media (min-width: 992px) 안에서만 동작한다.                            */
/* ---------------------------------------------------------------- */

/* 기본값(모든 폭)은 항상 숨김. PC(min-width:992px)이면서 Phase1 계산이 끝난
   뒤(okgs-preview-ready)에만 아래 미디어쿼리에서 명시적으로 노출한다.
   이 규칙을 미디어쿼리 밖에 둬야 991px 이하에서 버튼 요소가 어떤 이유로든
   DOM에 남아 있어도 항상 안전하게 숨겨진다. */
.okgs-review-view-all-btn {
  /* 테마/부트스트랩 계열 전역 button 리셋(display: inline-flex 등)이 이 규칙보다
     나중에 로드되며 button 요소에 그대로 적용되는 경우가 있어(실측 확인됨),
     숨김/노출 여부만큼은 !important로 확정한다. */
  display: none !important;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 0;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 992px) {
  /* ol.commentlist 바로 다음 형제. 숨겨진 카드는 display:none이라 자연스럽게
     마지막으로 "보이는" 카드 바로 아래에 위치한다(별도 좌표 계산 불필요). */
  .okgs-review-view-all-btn:hover {
    background: #f7f7f7;
  }

  #comments ol.commentlist.okgs-preview-ready + .okgs-review-view-all-btn {
    display: block !important;
  }
}

/* 전체보기 모달 오버레이. 레이어 순서: 전체보기 모달(999990) < 기존 단일
   리뷰 모달(999997) < PhotoSwipe(1000000). 카드 클릭 시 단일 모달이,
   사진 클릭 시 PhotoSwipe가 이 모달 위에 자연스럽게 쌓인다. */
.okgs-review-browse-modal {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.okgs-review-browse-modal[hidden] {
  display: none !important;
}

.okgs-review-browse-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90vw;
  height: 90vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.35);
}

.okgs-review-browse-modal__topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #eee;
}

.okgs-review-browse-modal__heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.okgs-review-browse-modal__title {
  font-size: 1.3125rem;
  font-weight: 800;
  color: #111;
}

.okgs-review-browse-modal__rating {
  font-size: 15px;
  color: #222;
  white-space: nowrap;
}

.okgs-review-browse-modal__rating .star-rating {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.okgs-review-browse-modal__count {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111;
  white-space: nowrap;
  text-align: center;
}

.okgs-review-browse-modal__close {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #111;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.okgs-review-browse-modal__close svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  display: block;
}

/* 사진·동영상 리뷰 요약 띠 — 비인터랙티브 요약. 썸네일 클릭은 기존
   단일 리뷰 모달(openReviewModal)을 직접 재사용해 여는 것으로 연결되며,
   리뷰 목록을 걸러내는 필터 기능은 전혀 없다. */
.okgs-review-browse-modal__media-summary {
  flex: 0 0 auto;
  padding: 16px 28px;
  border-bottom: 1px solid #eee;
}

.okgs-review-browse-modal__media-summary[hidden] {
  display: none !important;
}

.okgs-review-browse-modal__media-summary-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.okgs-review-browse-modal__media-summary-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.okgs-review-browse-modal__media-summary-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #eee;
}

.okgs-review-browse-modal__media-summary-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.okgs-review-browse-modal__list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 28px 28px;
}

.okgs-review-browse-modal__list-wrap .commentlist {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.okgs-review-browse-modal__empty {
  padding: 40px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .okgs-review-browse-modal__dialog {
    width: 94vw;
  }
}
