/* 만족 후기 팝업 — 보기(#popupView) · 작성(#write) · 수정(#modify)  2026-11-25
   review.php 에서만 불러온다. 옛 스타일(style_copy2.css 의 .pop_layer, .service_Form …)을
   .rvp 범위 안에서만 덮어쓰므로 같은 팝업을 쓰는 다른 페이지(index.php 등)에는 영향이 없다. */

/* ---------- 공통 틀 ---------- */
.rvp { width:760px; max-width:calc(100% - 32px); top:50% !important; left:50% !important; margin:0 !important; transform:translate(-50%,-50%); border:0; border-radius:18px; background:#fff; box-shadow:0 30px 80px rgba(11,20,73,.28); overflow:hidden; font-family:inherit; }
.rvp .pop_container { max-height:88vh; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
.rvp .pop_conts { padding:0; }
.rvp .pop_con, .rvp .pop_con.type02 { height:auto; }
.rvp .pop_close { position:absolute; top:14px; right:14px; z-index:20; display:flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.92); box-shadow:0 2px 10px rgba(0,0,0,.18); cursor:pointer; transition:transform .15s, background .15s; }
.rvp .pop_close:hover { transform:rotate(90deg); background:#fff; }
.rvp .pop_close svg { width:18px; height:18px; stroke:#1e2a3a; stroke-width:2.4; stroke-linecap:round; fill:none; }

/* ---------- 보기 팝업 ---------- */
.rvp-view .rvp_media { position:relative; background:#eef1f5; }
.rvp-view .bx-wrapper { margin:0; }
.rvp-view .bx-viewport { max-height:none; }
.rvp-view .slider > div { height:auto; width:min(760px, calc(100vw - 32px)) !important; } /* style_copy2.css 의 .slider div { width:450px !important } 를 팝업 폭에 맞춘다 */
.rvp-view .rvp_media .table { position:relative; overflow:hidden; margin:0; display:flex; align-items:center; justify-content:center; width:100%; height:440px; }
/* 사진 뒤 배경: 같은 사진을 크게 흐려서 깐다(사진마다 어울리는 색). --bg 는 review.php 의 _rvMedia 가 넣는다 */
.rvp-view .rvp_media .table::before { content:''; position:absolute; inset:-40px; background:var(--bg) center / cover no-repeat; filter:blur(32px) saturate(1.2); opacity:.85; }
.rvp-view .rvp_media .table::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.12)); }
.rvp-view .rvp_media .table img { position:relative; z-index:1; border-radius:6px; box-shadow:0 12px 32px rgba(0,0,0,.22); }
.rvp-view .rvp_media .table_cell { display:contents; }
.rvp-view .rvp_media img, .rvp-view .bx-wrapper img { display:block; max-width:100%; max-height:440px; margin:0 auto; object-fit:contain; }
.rvp-view .bx-controls-auto { display:none; }
.rvp-view .bx-pager { bottom:14px; padding:0; z-index:5; }
.rvp-view .bx-pager.bx-default-pager a { width:8px; height:8px; margin:0 4px; background:rgba(255,255,255,.5); border-radius:50%; text-indent:-9999px; overflow:hidden; display:block; }
.rvp-view .bx-pager.bx-default-pager a.active, .rvp-view .bx-pager.bx-default-pager a:hover { background:#fff; }
.rvp-view .bx-controls-direction a { width:40px; height:40px; margin-top:-20px; border-radius:50%; background:rgba(255,255,255,.88); box-shadow:0 2px 10px rgba(0,0,0,.2); }
.rvp-view .bx-controls-direction a:after { content:''; position:absolute; top:50%; left:50%; width:10px; height:10px; border:solid #1e2a3a; border-width:2.4px 2.4px 0 0; }
.rvp-view .bx-wrapper .bx-prev { left:16px; background:rgba(255,255,255,.88); }
.rvp-view .bx-wrapper .bx-next { right:16px; background:rgba(255,255,255,.88); }
.rvp-view .bx-prev:after { transform:translate(-30%,-50%) rotate(-135deg); }
.rvp-view .bx-next:after { transform:translate(-70%,-50%) rotate(45deg); }
.rvp-view.rvp-single .bx-controls { display:none; }
.rvp-view.rvp-nomedia .rvp_media { display:none; }

.rvp-view .rvp_body { padding:28px 36px 34px; }
.rvp-view .rvp_meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding-bottom:18px; border-bottom:1px solid #edf0f5; }
.rvp-view .rvp_name { font-size:18px; font-weight:800; color:#1e2a3a; letter-spacing:-.3px; }
.rvp-view .rvp_stars img { display:block; height:18px; width:auto; }
.rvp-view .rvp_dest { display:inline-flex; align-items:center; gap:6px; margin-left:auto; padding:5px 12px; font-size:13px; font-weight:600; color:#0068b7; background:#eef5fc; border-radius:999px; }
.rvp-view .rvp_dest em { font-style:normal; font-weight:600; color:#8a97b0; }
.rvp-view .rvp_text { padding-top:20px; font-size:15.5px; line-height:1.85; color:#3d4656; word-break:keep-all; overflow-wrap:anywhere; }
.rvp-view .rvp_reply { margin-top:24px; padding:18px 20px; background:#fbf5f4; border-left:4px solid #d71a0e; border-radius:0 12px 12px 0; }
.rvp-view .rvp_reply strong { display:block; margin-bottom:8px; font-size:13px; font-weight:800; color:#d71a0e; letter-spacing:.2px; }
.rvp-view .rvp_reply #reviewReply { font-size:14px; line-height:1.75; color:#4d5565; }

/* ---------- 작성 · 수정 팝업 ---------- */
.rvp-form { width:640px; }
.rvp-form .rvp_head { padding:34px 36px 6px; }
.rvp-form .rvp_head h3 { margin:0; font-size:24px; font-weight:800; color:#1e2a3a; letter-spacing:-.5px; }
.rvp-form .rvp_head h3:before { content:''; display:block; width:28px; height:4px; margin-bottom:14px; background:#d71a0e; border-radius:2px; }
.rvp-form .rvp_head p { margin:8px 0 0; font-size:14px; color:#6b7385; }
.rvp-form .rvp_fields { padding:18px 36px 0; }
.rvp-form .rvp_field { display:block; margin:0 0 18px; font-weight:normal; }
.rvp-form .rvp_label { display:block; margin-bottom:8px; font-size:13.5px; font-weight:700; color:#1e2a3a; }
.rvp-form .rvp_label em { margin-left:6px; font-style:normal; font-weight:500; color:#8a97b0; }
.rvp-form .rvp_grid { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.rvp-form input[type="text"], .rvp-form input[type="tel"], .rvp-form textarea { display:block; width:100%; height:48px; margin:0; padding:0 14px; font-size:15px; color:#1e2a3a; background:#f7f8fb; border:1.5px solid #e3e7ee; border-radius:10px; outline:0; box-shadow:none; transition:border-color .15s, background .15s, box-shadow .15s; }
.rvp-form textarea { height:auto; min-height:150px; padding:14px; line-height:1.7; resize:vertical; }
.rvp-form input::placeholder, .rvp-form textarea::placeholder { color:#a6adbb; }
.rvp-form input:focus, .rvp-form textarea:focus { background:#fff; border-color:#d71a0e; box-shadow:0 0 0 4px rgba(215,26,14,.1); }
.rvp-form .rvp_hint { display:block; margin-top:7px; font-size:12.5px; color:#8a93a3; }
.rvp-form .rvp_hint.rvp_warn { color:#c0554d; }

/* 별점 (기존 이미지 별 + 점수 표시) */
.rvp-form .rvp_rating_row { display:flex; align-items:center; gap:16px; padding:14px 16px; background:#f7f8fb; border:1.5px solid #e3e7ee; border-radius:10px; }
.rvp-form .star-input > .input { transform:scale(1.4); transform-origin:left center; margin-right:48px; }
.rvp-form .rvp_score { font-size:14px; font-weight:600; color:#a6adbb; }
.rvp-form .rvp_score.on { color:#d71a0e; font-weight:800; }
.rvp-form #popModifyPoint img { display:block; height:24px; width:auto; }

/* 사진 첨부 */
.rvp-form .filebox { display:flex; flex-wrap:wrap; gap:10px; padding:0; }
.rvp-form .filebox ul { display:flex; gap:10px; max-width:none; height:auto; margin:0; padding:0; overflow:visible; }
.rvp-form .imgs_wrap, .rvp-form .upload_wrap { display:block; height:auto; }
.rvp-form .upload_wrap > div { position:static; width:auto; height:auto; }
.rvp-form .filebox ul li { float:none; margin:0; border:0; list-style:none; }
.rvp-form .filebox ul li a { position:relative; display:block; width:96px; height:96px; border-radius:12px; overflow:hidden; }
.rvp-form .filebox ul li img { width:100%; height:100%; object-fit:cover; display:block; }
.rvp-form .filebox ul li a:before { content:'삭제'; display:flex; align-items:center; justify-content:center; position:absolute; inset:0; width:auto; height:auto; margin:0; background:rgba(15,20,32,.55); color:#fff; font-size:13px; font-weight:700; opacity:0; z-index:2; transition:opacity .15s; }
.rvp-form .filebox ul li a:after { display:none !important; }
.rvp-form .filebox ul li a:hover:before { display:flex; opacity:1; }
.rvp-form .filebox label.rvp_add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:96px; height:96px; margin:0; padding:0; font-size:12.5px; font-weight:600; line-height:1.3; color:#6b7385; text-align:center; background:#f7f8fb; border:1.5px dashed #c9cfda; border-radius:12px; cursor:pointer; transition:border-color .15s, color .15s, background .15s; }
.rvp-form .filebox label.rvp_add b { font-size:26px; font-weight:300; line-height:1; color:#a6adbb; transition:color .15s; }
.rvp-form .filebox label.rvp_add:hover { border-color:#d71a0e; color:#d71a0e; background:#fff; }
.rvp-form .filebox label.rvp_add:hover b { color:#d71a0e; }

/* 개인정보 동의 */
.rvp-form .rvp_agree { margin:6px 36px 0; padding:18px 20px; background:#f7f8fb; border-radius:12px; }
.rvp-form .rvp_agree p { margin:0 0 10px; font-size:13.5px; font-weight:700; color:#1e2a3a; }
.rvp-form .rvp_agree table { width:100%; margin:0 0 14px; border-collapse:collapse; font-size:13px; }
.rvp-form .rvp_agree th, .rvp-form .rvp_agree td { padding:8px 10px; text-align:center; border:1px solid #e3e7ee; background:#fff; }
.rvp-form .rvp_agree th { font-weight:600; color:#6b7385; background:#eef1f6; }
.rvp-form .rvp_agree td { color:#3d4656; }
.rvp-form .rvp_check { display:flex; align-items:center; gap:10px; margin:0; font-size:14px; font-weight:600; color:#1e2a3a; cursor:pointer; }
.rvp-form .rvp_check input { flex:none; width:20px; height:20px; margin:0; accent-color:#d71a0e; cursor:pointer; }
.rvp-form .rvp_check small { font-size:12px; font-weight:600; color:#d71a0e; }

/* 등록 버튼 */
.rvp-form .rvp_submit { padding:22px 36px 34px; text-align:center; }
.rvp-form .rvp_submit .g-recaptcha { display:inline-block; margin-bottom:16px; }
.rvp-form .rvp_btn { display:block; width:100%; height:54px; border:0; border-radius:12px; background:#d71a0e; color:#fff; font-size:17px; font-weight:800; letter-spacing:-.2px; box-shadow:0 8px 20px rgba(215,26,14,.25); cursor:pointer; transition:background .15s, transform .15s, box-shadow .15s; }
.rvp-form .rvp_btn:hover { background:#bd150a; transform:translateY(-1px); box-shadow:0 12px 24px rgba(215,26,14,.3); }

@media screen and (max-width:720px){
	.rvp-view .rvp_media .table { height:300px; }
	.rvp-view .rvp_media img, .rvp-view .bx-wrapper img { max-height:300px; }
	.rvp-view .rvp_body, .rvp-form .rvp_fields { padding-left:22px; padding-right:22px; }
	.rvp-form .rvp_head, .rvp-form .rvp_submit { padding-left:22px; padding-right:22px; }
	.rvp-form .rvp_agree { margin-left:22px; margin-right:22px; }
	.rvp-form .rvp_grid { grid-template-columns:1fr; }
	.rvp-view .rvp_dest { margin-left:0; }
}

/* 첨부 사진이 아직 없을 때 "사진 추가" 타일 앞에 빈 간격이 생기지 않게 — 2026-11-25 */
.rvp-form .imgs_wrap:has(ul:empty) { display:none; }

/* 등록 진행 중 버튼(review_s3.js 의 rvBusy): 회전 표시로 멈춘 게 아님을 알린다 — 2026-11-25 */
.rv_busy { cursor:progress !important; opacity:.9; }
.rv_busy:before { content:''; display:inline-block; width:15px; height:15px; margin:0 8px -2px 0; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:rv_spin .8s linear infinite; }
@keyframes rv_spin { to { transform:rotate(360deg); } }
