/* 후기 상세 팝업 전용 — review.css 에서 팝업이 쓰는 규칙만 복사. 메인처럼 review.css 를 못 싣는 페이지용. 원본 수정 시 같이 맞출 것 */
.review-manager {
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-manager-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.review-manager-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Satisfaction tags */
.review-satisfaction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.satisfaction-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.4;
  background: #F0F4F8;
}
.sat-label {
  font-weight: 700;
  color: #3D5A80;
}
.sat-level {
  font-weight: 500;
}
.sat-level[data-level="매우 만족"] {
  color: #1565C0;
}
.sat-level[data-level="만족"] {
  color: #5C6BC0;
}
.sat-level[data-level="보통"] {
  color: #F59E0B;
}
.sat-level[data-level="불만족"] {
  color: #E65100;
}
.sat-level[data-level="매우 불만족"] {
  color: #C62828;
}
.review-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Heart button + Views */
.review-heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}
.review-heart-btn:hover {
  border-color: #ff6b81;
  color: #ff6b81;
}
.review-heart-btn.liked {
  border-color: #ff6b81;
  background: #fff0f3;
  color: #ff6b81;
}
.review-heart-btn.liked .heart-icon {
  fill: #ff6b81;
  stroke: #ff6b81;
}
.heart-count { font-weight: 700; }

.review-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}
.review-ad-btn:hover {
  border-color: #F59E0B;
  color: #D97706;
}
.review-ad-btn.clicked {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #D97706;
}

.ad-icon { width: 16px; height: 16px; vertical-align: -2px; }
.ad-count { font-weight: 700; }

.review-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================
   Review Popup (shared PC + Mobile)
   Chanawa Blue Theme
   ======================== */
.rp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
  padding: 20px;
  overflow: hidden;
}
.rp-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rp-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: auto;
  max-height: 92vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 20, 60, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
.rp-modal > #rpContent {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.rp-overlay.open .rp-modal {
  transform: translateY(0) scale(1);
}

.rp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rp-hero {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.rp-slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-y;
}
.rp-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}
.rp-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.rp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.rp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.15s, transform 0.15s;
}
.rp-arrow:hover { transform: translateY(-50%) scale(1.06); }
.rp-arrow-prev { left: 10px; }
.rp-arrow-next { right: 10px; }
.rp-arrow[disabled] { opacity: 0; pointer-events: none; }
.rp-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  z-index: 3;
}
.rp-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.rp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}
.rp-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}
.rp-hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 14px;
  letter-spacing: 0.04em;
}

.rp-body {
  padding: 18px 20px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.rp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rp-car-name {
  font-size: 19px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}
.rp-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff7e0;
  color: #f5a302;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rp-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}
.rp-meta-dot {
  margin: 0 5px;
  color: #ccc;
}

.rp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f3;
}
.rp-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-quote {
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
  background: #f0f5ff;
  border-left: 3px solid #3B82F6;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.rp-section {
  margin-bottom: 14px;
}
.review-popup-scroll .rp-section {
  padding: 14px 20px 8px;
}
.rp-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.rp-product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rp-product-btn {
  padding: 11px 0;
  border: 1.5px solid #e5e8e7;
  background: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.rp-product-btn:hover {
  border-color: #3B82F6;
  color: #2563EB;
}
.rp-product-btn.active {
  border-color: #2563EB;
  background: #2563EB;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rp-period-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.rp-period-btn {
  padding: 9px 0;
  border: 1.5px solid #e5e8e7;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.rp-period-btn:hover {
  border-color: #3B82F6;
  color: #2563EB;
}
.rp-period-btn.active {
  border-color: #2563EB;
  background: rgba(59, 130, 246, 0.08);
  color: #2563EB;
}

.rp-estimate {
  margin-top: 12px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e0eaff 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.rp-estimate-label {
  font-size: 12px;
  color: #5a6a7e;
  font-weight: 600;
}
.rp-estimate-value {
  font-size: 22px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: -0.01em;
}
.rp-estimate-unit {
  font-size: 13px;
  color: #2563EB;
  font-weight: 700;
  margin-left: 2px;
}
.rp-estimate-note {
  font-size: 11px;
  color: #8a9599;
  margin-top: 6px;
  text-align: right;
}

.rp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.rp-input {
  padding: 11px 12px;
  border: 1.5px solid #e5e8e7;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
}
.rp-input:focus {
  border-color: #3B82F6;
}
.rp-input[readonly] {
  background: #F0F4F8;
  color: var(--text-secondary, #555);
  cursor: default;
}
.rp-input-full {
  grid-column: 1 / -1;
}

.rp-agree {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #666;
  margin-bottom: 14px;
  cursor: pointer;
}
.rp-agree input {
  width: 14px;
  height: 14px;
  accent-color: #3B82F6;
}

.rp-agree .rp-privacy-link {
  color: #3B82F6 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: inherit;
}
.rp-agree .rp-privacy-link:hover {
  text-decoration: underline !important;
}

.rp-consult-section {
  margin-top: 20px;
  border-top: 1px solid #f1f3f3;
  padding: 18px 20px 20px;
}
.rp-submit-btn {
  width: 100%;
  padding: 13px 0;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.rp-submit-btn:hover {
  background: #1d4ed8;
}

.rp-privacy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.rp-privacy-overlay.active {
  display: flex;
}
/* === chanawa.co.kr 원본 약관 모달 CSS === */
.layer_popup_wrap_new {
  display: none;
  width: 100%; height: 100%;
  position: fixed; top: 0; left: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 99999999;
}
.layer_popup_wrap_new.active { display: block; }
.layer_popup_wrap_new .layer_popup_renew02 {
  position: absolute; width: 450px; height: 536px;
  left: 50%; top: 50%; margin-left: -225px; margin-top: -268px;
  background-color: #fff; border-radius: 16px;
}
.layer_popup_wrap_new .popup_title_renew02 {
  width: 100%; height: 60px; background-color: #2B88FF;
  padding: 0 30px; box-sizing: border-box; margin-top: -18px;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  position: relative;
}
.layer_popup_wrap_new .popup_title_renew02 p.tc {
  color: #fff; font-size: 18px; line-height: 58px; text-align: center;
}
.layer_popup_wrap_new .popup_close_renew02 {
  position: absolute; top: 18px; right: 30px; cursor: pointer; line-height: 58px;
}
.layer_popup_wrap_new .popup_close_renew02 img { width: 16px; vertical-align: middle; }
.layer_popup_wrap_new .popup_body_renew02 {
  width: 450px; height: 467px; padding: 30px; box-sizing: border-box; overflow: hidden scroll;
}
.layer_popup_wrap_new .popup_body_renew02 ul { width: 390px; }
.layer_popup_wrap_new .popup_body_renew02 li { list-style: none; margin-bottom: 0; padding: 0; }
ul.terms_list li.terms_item:first-child { background-color: #fff; }
ul.terms_list li.terms_item.open:first-child .btn02 { background-color: #fff; border: none; }
ul.terms_list li.terms_item.open:first-child .input_chk_new label { background-color: #fff; }
ul.terms_list li.terms_item .btn02 {
  position: relative; width: 100%; background-color: #fff; cursor: pointer; padding: 18px 0; box-sizing: border-box;
}
ul.terms_list li.terms_item.open .btn02 {
  background-color: #f8f8f8;
  border-width: 1px 1px 0; border-style: solid solid none; border-color: #ebebeb;
}
ul.terms_list li.terms_item.close .btn02 { background-color: #fff; }
ul.terms_list li.terms_item.close .btn02 .arrow_down { position: absolute; right: 0; top: 15px; }
ul.terms_list li.terms_item.open .btn02 .arrow_down { position: absolute; right: 0; top: 15px; transform: rotate(180deg); }
ul.terms_list li.terms_item .arrow_down img { width: 30px; height: 34px; }
ul.terms_list li.terms_item .input_chk_new input {
  position: absolute; overflow: hidden; clip: rect(0,0,0,0); margin: -1px; width: 1px; height: 1px;
}
ul.terms_list li.terms_item .input_chk_new label {
  position: relative; width: 100%; padding: 10px 0 10px 43px;
  font-size: 14px; font-weight: 700; line-height: 21px; cursor: pointer; color: #333;
  box-sizing: border-box;
  background: url("https://www.chanawa.co.kr/assets/img/chk_blue_icon_off.png") 3px 6px / 30px no-repeat;
}
ul.terms_list li.terms_item .input_chk_new input:checked + label {
  background: transparent 0% 0% / 0px;
}
ul.terms_list li.terms_item .input_chk_new input:checked + label::before {
  content: ""; position: absolute; top: 57%; left: 1px; display: block;
  width: 33px; height: 32px; margin-top: -15px;
  background: url("https://www.chanawa.co.kr/assets/img/chk_blue_icon_on.png") 3px 1px / 29px no-repeat;
}
ul.terms_list li.terms_item .desc {
  position: relative; left: 50%; transform: translateX(-50%); width: 100%;
  background-color: #f8f8f8; padding: 0; list-style: none; box-sizing: border-box; overflow: hidden;
}
ul.terms_list li.terms_item.open .desc {
  height: 207px; padding: 10px 19px; overflow-y: scroll;
  border-width: 0 1px 1px; border-style: none solid solid; border-color: #ebebeb;
}
ul.terms_list li.terms_item.close .desc { height: 0; overflow: hidden; }
ul.terms_list li.terms_item .desc::-webkit-scrollbar { overflow-x: hidden; width: 7px; }
ul.terms_list li.terms_item .desc::-webkit-scrollbar-track { background-color: transparent; }
ul.terms_list li.terms_item .desc::-webkit-scrollbar-thumb { border-radius: 3px; background-color: #1B57A4; }
ul.terms_list li.terms_item .desc::-webkit-scrollbar-button { width: 0; height: 0; }
ul.terms_list li.terms_item .desc p { word-break: break-all; font-size: 13px; }
ul.terms_list li.terms_item .desc span { display: block; font-size: 13px; padding-bottom: 5px; }
ul.terms_list li.terms_item .desc .tr { text-align: right; }
ul.terms_list li.terms_item .desc .terms_table { border: none; margin: 10px 0; }
ul.terms_list li.terms_item .desc .terms_table tr th {
  border: 1px solid #fff; background-color: #D6E5FA; padding: 10px; text-align: center; font-size: 13px;
}
ul.terms_list li.terms_item .desc .terms_table tr td {
  border: 1px solid #fff; background-color: #fff; padding: 10px; font-size: 13px;
}
ul.terms_list li.terms_item .blue { color: #2B88FF; }
ul.terms_list li.terms_item .bold { font-weight: normal; }
ul.terms_list li.terms_item .normal { font-weight: normal; }
ul.terms_list li.terms_item.terms_chk_all .btn02 .chk_all_txt { font-weight: bold; color: #2B88FF; }
.agreement_new_close_btn {
  cursor: pointer; background-color: #2B88FF; margin: 50px auto; text-align: center;
  transition: 0.4s ease-in; color: #fff; border: 1px solid #2B88FF; border-radius: 5px;
  display: block; box-sizing: border-box; width: 100%; height: 45px; padding: 11px; font-weight: bold;
}
.layer_popup_wrap_new .layer_popup_renew02{
	        padding: 0 0px !important;
}
.agreement_new_close_btn:hover { background-color: #fff; color: #1B57A4; }
/* 모바일 대응 */
@media (max-width: 480px) {
  .layer_popup_wrap_new .layer_popup_renew02 {
    width: 92vw; height: 80vh;
    margin-left: 0; margin-top: 0;
    left: 50vw; top: 51vh;
  }
  .layer_popup_wrap_new .popup_body_renew02 {
    width: 100%; height: calc(80vh - 60px);
  }
  .layer_popup_wrap_new .popup_body_renew02 ul { width: 100%; }
}
/* #rpPrivacyOverlay: main.css/sub.css의 mobile background·padding 충돌 수정 */
@media (max-width: 700px) {
  #rpPrivacyOverlay .layer_popup_renew02 {
    padding: 0;
    background-color: #fff;
  }
}
.rp-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid #f1f3f3;
  background: #fff;
  flex-shrink: 0;
}
.rp-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(110deg, #2563EB 0%, #3B82F6 50%, #2563EB 100%);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, background-position 0.4s;
}
.rp-submit:hover {
  background-position: 100% 50%;
}
.rp-submit:active {
  transform: scale(0.98);
}
.rp-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.rp-success {
  text-align: center;
  padding: 40px 24px;
}
.rp-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-success h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.rp-success p {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

@media (max-width: 1130px) {
	.banner-placeholder{
	background: url(/assets/img/m_delivery_bnr.jpg) top center no-repeat;
	height:240px;
	background-size: auto 240px;
	background-position-y: 10px;
	}
	.cta-section{
	background: url(/assets/img/m_bottom_bnr_delivery.jpg) top center no-repeat;
	}
}
@media (max-width: 600px) {
	.banner-placeholder{
	background: url(/assets/img/m_delivery_bnr_s.jpg) top center no-repeat;
	height:200px;
	background-size: auto 180px;
	}
	.cta-section{
	background: url(/assets/img/m_bottom_bnr_delivery_s.jpg) top center no-repeat;
	}
}

@media (min-width: 768px) {
  .rp-modal {
    max-width: 520px;
  }
  .rp-hero {
    height: 240px;
  }
  .rp-car-name {
    font-size: 22px;
  }
}

/* mobile bottom sheet */
@media (max-width: 767px) {
  .rp-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .rp-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 20, 60, 0.35);
  }
  .rp-overlay.open .rp-modal {
    transform: translateY(0);
  }
  .rp-hero {
    height: 36vh;
    max-height: 240px;
    min-height: 160px;
  }
  .rp-modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    z-index: 6;
  }
  .rp-close {
    top: 18px;
  }
  .rp-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .rp-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .rp-period-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Review Detail Popup ===== */
.review-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
  padding: 20px;
  box-sizing: border-box;
}
.review-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.review-popup {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: auto;
  max-height: 92vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 20, 60, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.review-popup-overlay.open .review-popup {
  transform: translateY(0) scale(1);
}
.review-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.review-popup-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
}
.review-popup-meta-wrap {
  padding: 16px 20px 4px;
}
.review-popup-slider {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f5f5f5;
  overflow: hidden;
  flex-shrink: 0;
}
.rp-slides-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.rp-prev, .rp-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: opacity 0.15s;
}
.rp-prev { left: 10px; }
.rp-next { right: 10px; }
.review-popup-body-text {
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.review-popup-sat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.review-popup-bottom {
  padding: 12px 20px 16px;
  border-top: 1px solid #f1f3f3;
}


/* ===== Review Popup Responsive ===== */
@media (min-width: 768px) {
  .review-popup { max-width: 520px; }
  .review-popup-slider { height: 240px; }
  .review-popup-scroll { flex: 0 1 auto; }
}

@media (max-width: 767px) {
  .review-popup-overlay { align-items: flex-end; padding: 0; }
  .review-popup {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 20, 60, 0.35);
  }
  .review-popup-overlay.open .review-popup { transform: translateY(0); }
  .review-popup-slider {
    height: 36vh;
    max-height: 240px;
    min-height: 160px;
  }
  .review-popup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    z-index: 6;
  }
  .review-popup-close { top: 18px; }
}
