/**
      * '수업 후기' 페이지에서 'TS스토리' 페이지내 <후기 작성 Modal 팝업>
      *  을 사용함에 따라, 스타일 출력을 위해 ts_story_2.css의 복사본을 생성함.
      *
      * URL : https://talkstation.co.kr/board/index.php?id=ts_community1&review_type=playday
      * CSS 사용 : www/board/skin/home_review/list_foot.php
      * 
      * ts_story_2.css 를 그대로 사용할 경우 일부 클래스가 충돌하는 문제.
      *
      * by uno KAN-8 2024-06-11
    */
:root {
    --bg: #fff;
    --card: #ffe9e6;
    --text: #333;
    --blue: #00b1ff;
    --blue-dark: #0ea5e9;
    --pill: #1fc0ff;
    --radius: 16px;
    --shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
    --sub: #999;
    --line: #e5e5e5;
    --bg: #fff;
    --radius: 16px;
    --overlay: rgba(0, 0, 0, 0.45);
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #00b1ff;
    --primary-press: #1d4ed8;
    --ring: 0 0 0 3px rgba(37, 99, 235, 0.25);
    --radius: 16px;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}
@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2") format("woff2");
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}

.wrap_promotion {
    font-family: Paperozi;
    width: 100%;
    margin: 0 auto;
}

/* 베이스 */
.ts-intro {
    background-color: #f5ede9;
    padding: 3rem 1.6rem;
    font-family:
        "Paperozi",
        system-ui,
        -apple-system,
        sans-serif;
}

.ts-intro__inner {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

/* 상단 브랜드 텍스트 */
.ts-intro__brand-text {
    font-family: Paperozi;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
}

.ts-intro__brand-name {
    color: #3d87f7;
    font-weight: 700;
}

/* 캐릭터 + 말풍선 */
.ts-intro__character-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ts-intro__character {
    order: 2;
}

.ts-intro__character img {
    display: block;
    width: 96px;
    height: auto;
}

/* 말풍선 공통 (비율 박스) */
.ts-intro__bubble {
    position: relative;
    width: 95%;
    margin: 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: visible;
}

.ts-intro__bubble-text {
    font-family: Paperozi;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 80%;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #333;
}
.ts-intro__bubble-text_small {
    font-family: Paperozi;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 90%;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #333;
}

.ts-intro__bubble--small {
    padding-top: 56.3%;
    background-image: url(/edu/skin/default/content/images/ts_story/fiesta_s02/bubble_small_mo.png);
    order: 1;
}

.ts-intro__bubble--large {
    padding-top: 50%;
    background-image: url(/edu/skin/default/content/images/ts_story/fiesta_s02/bubble_big.png);
    margin: 0 auto 1rem;
}

/* 공통 문단 */
.ts-intro__paragraph {
    font-family: Paperozi;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

/* 텍스트 강조 */
.ts-intro__text {
    font-weight: 700;
}

.ts-intro__text--blue {
    color: #3d87f7;
}

.ts-intro__text--pink {
    color: #ff7e81;
}

.ts-intro__text--bold {
    color: #222;
}

/* 하단 타이틀 */
.ts-intro__title {
    margin-top: 1.6rem;
}

.ts-intro__title-sub {
    font-family: Paperozi;
    font-size: 3rem;
    color: #555;
    margin-bottom: 1rem;
}

.ts-intro__title-main {
    font-family: Paperozi;
    font-size: 3rem;
    font-weight: 800;
    color: #ff9c00;
}

/* ---------- 반응형 ---------- */
@media (max-width: 480px) {
    .ts-intro {
        padding: 2.4rem 10px 3.2rem;
    }

    .ts-intro__character-bubble {
        flex-direction: column;
    }

    .ts-intro__character img {
        width: 130px;
    }

    .ts-intro__brand-text {
        font-size: 2.4rem;
    }
    .ts-intro__paragraph {
        font-size: 2rem;
        line-height: 1.4;
    }

    .ts-intro__bubble-text {
        font-size: 2.4rem;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 95%;
        line-height: 1.2;
        color: #333;
    }
    .ts-intro__bubble-text_small {
        font-size: 2.4rem;
        top: 45%;
        left: 52%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 80%;
        line-height: 1.2;
        color: #333;
    }
    .ts-intro__bubble_wrap {
        padding-left: 0.5rem;
        width: 100%;
    }
    .ts-intro__title-sub {
        font-size: 2rem;
        margin-bottom: 0;
    }
    .ts-intro__title-main {
        font-size: 2.6rem;
    }
}

@media (min-width: 768px) {
    .wrap_promotion {
        width: 1200px;
        margin: 0 auto;
    }

    .ts-intro {
        padding: 5rem 2rem 6rem;
    }

    .ts-intro__inner {
        max-width: 1200px;
    }
    .ts-intro__brand-text {
        font-size: 4.5rem;
    }
    .ts-intro__paragraph {
        font-size: 4rem;
        line-height: 1.3;
        margin: 5rem;
    }
    .ts-intro__character-bubble {
        flex-wrap: nowrap;
    }

    .ts-intro__character {
        order: 1;
        padding-left: 120px;
    }

    .ts-intro__character img {
        width: 230px;
    }
    .ts-intro__bubble-text {
        font-size: 3.8rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 95%;
        line-height: 1.2;
        color: #333;
    }
    .ts-intro__bubble-text_small {
        font-size: 3.8rem;
        top: 49%;
        left: 52%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 80%;
        line-height: 1.2;
        color: #333;
    }

    .ts-intro__bubble--small {
        width: 65%;
        max-width: 660px;
        padding-top: 28%;
        background-image: url(/edu/skin/default/content/images/ts_story/fiesta_s02/bubble_small.png);
        margin: unset;
    }
    .ts-intro__bubble_wrap {
        padding-left: 2rem;
        width: 1200px;
    }

    .ts-intro__bubble--large {
        width: 870px;
        max-width: 90%;
        padding-top: 30%;
    }
    .ts-intro__title-sub {
        font-size: 4.5rem;
        color: #555;
        margin-bottom: 1rem;
    }
    .ts-intro__title-main {
        font-size: 5.5rem;
    }
}

.ts-video {
    background: #ffbfcf; /* 핑크 배경 */
    padding: 10rem 1.6rem;
}

.ts-video__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* 플로팅용 기준 */
}

/* 타이틀 */
.ts-video__title {
    text-align: center;
    color: #fff;
    font-family: Paperozi;
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 2.4rem;
}
.ts-video__title p {
    font-family: Paperozi;
    color: #fff;
    font-size: 4.5rem;
    line-height: 1.3;
    font-weight: 700;
}
.ts-video__title--highlight {
    color: #ff8792;
}

/* 유튜브 영상 프레임 */
.ts-video__frame {
    max-width: 900px;
    margin: 0 auto;
}

.ts-video__ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 비율 */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.ts-video__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 플로팅 스티커 공통 */
.ts-video__floating {
    position: absolute;
    z-index: 2;
}

.ts-video__floating img {
    display: block;
    width: 100%;
    height: auto;
}

/* 각각 위치 지정 (PC 기준) */
.ts-video__floating--speech {
    top: 20%;
    left: 5%;
    width: 120px;
}

.ts-video__floating--heart {
    top: 45px;
    right: 23%;
    width: 70px;
}

.ts-video__floating--emoji {
    bottom: 30px;
    right: 42px;
    width: 106px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
    .ts-video {
        padding: 3rem 1.6rem 4rem;
    }

    .ts-video__title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    .ts-video__title p {
        font-family: Paperozi;
        color: #fff;
        font-size: 3rem;
        line-height: 1.2;
        font-weight: 700;
    }
    .ts-video__floating--speech {
        top: 16px;
        left: 4%;
        width: 80px;
    }

    .ts-video__floating--heart {
        top: 60px;
        right: 6%;
        width: 50px;
    }

    .ts-video__floating--emoji {
        bottom: -10px;
        right: 0;
        width: 90px;
    }
}

@media (max-width: 480px) {
    /* 너무 복잡하면 일부 스티커 숨기기 */
    .ts-video__floating--speech,
    .ts-video__floating--emoji,
    .ts-video__floating--heart {
        display: none;
    }
}
.ts-photolog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
    background-color: #f7f7f7;
}
.ts-photolog__item {
    padding: 3rem 0;
}
.ts-photolog__txtbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-bottom: 4rem;
}
.ts-photolog__chapter {
    font-family: Paperozi;
    font-size: 2.4rem;
    color: #666;
}
.ts-photolog__title--blue {
    font-family: Paperozi;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1389ee;
    padding-bottom: 0.5rem;
}
.ts-photolog__text {
    font-family: Paperozi;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    padding-bottom: 10px;
}
.ts-photolog__text--red {
    color: #ff7e81;
}
@media (max-width: 768px) {
    .ts-photolog {
        max-width: 100%;
        padding: 1rem 0;
    }
    .ts-photolog__item {
        padding: 2rem 0;
    }
    .ts-photolog__txtbox {
        gap: 0.5rem;
        text-align: center;
        padding-bottom: 1rem;
    }
    .ts-photolog__chapter {
        font-size: 1.8rem;
    }
    .ts-photolog__title--blue {
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1.2;
        color: #1389ee;
        padding: 0 2rem 0.5rem;
        word-break: keep-all;
    }
    .ts-photolog__text {
        font-size: 1.6rem;
        font-weight: 500;
        line-height: 1.3;
        padding: 0 3rem 0.5rem;
        word-break: keep-all;
    }
    .mo-hide {
        display: none;
    }
    .ts-photolog__text--red {
        color: #ff7e81;
    }
}

/*리뷰영역*/

.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.point--blue {
    color: var(--blue);
}

/* 아주 작은 화면 보정(선택) */
@media (max-width: 360px) {
    .main-text {
        line-height: 1.25;
    }
}

.wrap-review-list {
    background: #ffeeeb;
    padding-bottom: 60px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrap-review-item {
    padding: 0;
    max-width: 1060px;
    width: 88%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    border: 1px solid #ffdad4;
    overflow: hidden;
}
/* 
    .check{
		border: 1px solid #999 !important;
		background: #ededed !important;
	} 
    */

.review-item {
    padding: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 6% 12% 1fr 12% 10%;
    align-content: center;
    align-items: center;
    justify-items: start;
    cursor: pointer;
}

.review-nmbr {
    padding-left: 10px;
    font-weight: 700;
}

.review-badge {
    text-align: center;
    padding: 8px 18px;
    background: var(--blue);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    color: #fff;
}

.review-title {
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow: hidden;
    width: 96%;
    align-items: center;
}
.review-reg-date {
    width: 100%;
    text-align: center;
}

.mo-title {
    display: none;
    font-size: 12px;
}

.icon--new {
    background: #f88170;
    padding: 2px 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.icon--image {
    display: block;
    width: 18px;
}

.icon--image img {
    width: 100%;
    display: block;
}

.review-writer {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.review-writer > img,
.img-profile {
    width: 30px;
}

.review-panel {
    /* height animation container */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
    background: #f7f7f7;
    border-top: 1px solid #ffdad4;
}

.review-panel[data-open="true"] {
    grid-template-rows: 1fr;
}

.rv-panel-inner {
    overflow: hidden; /* needed for the 0fr → 1fr trick */
}

.panel-body {
    padding: 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.panel-body p {
    margin: 0 0 8px;
    text-align: left;
    word-break: break-all;
}

.panel-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    justify-content: flex-end;
}
.review-title-txt {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    word-break: break-word;
}
@media (max-width: 1023px) {
    .wrap-review-item {
        padding: 0;
        width: 88%;
    }

    .review-item {
        padding: 10px;
        grid-template-columns: 10% 65% auto;
        grid-row-gap: 10px;
    }

    .review-nmbr {
        padding-left: 12px;
        font-size: 10px;
    }

    .review-badge {
        padding: 3px 8px;
        font-size: 12px;
        line-height: 1.1;
    }

    .review-title {
        display: none;
    }

    .icon--new {
        padding: 2px 3px;
        border-radius: 2px;
        font-size: 7px;
        font-weight: 500;
    }

    .icon--image {
        display: block;
        width: 10px;
    }

    .icon--image img {
        width: 100%;
        display: block;
    }

    .review-writer {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        align-items: center;
        font-size: 12px;
    }

    .review-writer > img,
    .img-profile {
        width: 20px;
    }

    .mo-title {
        display: flex;
        grid-column: span 2;
        padding-left: 10px;
        font-size: 12px;
        text-align: left;
        font-size: 12px;
        word-break: break-word;
        width: 100%;
        min-width: 0;
    }

    .review-title-txt {
        text-align: left;
        font-size: 12px;
        word-break: break-all;
        width: unset;
        min-width: 0;
    }
}

.rv-btn {
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.btn--primary {
    background: var(--blue);
    color: #fff;
}

.btn--ghost {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.panel-img {
    margin: 12px 16px 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.panel-img img {
    display: block;
    width: 100%;
    height: auto;
}

.btn-write {
    border: 0;
    padding: 15px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(12px, 4.5vw, 20px);
    width: 70%;
    max-width: 810px;
    display: flex;
    margin: 20px auto;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
}

.btn-write img {
    display: block;
    width: auto;
}

/* ------- pagination ------- */
.rvw__pager,
.rvw__pager > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    user-select: none;
}
.rvw__pager > ul,
.rvw__pager > ul > li,
.rvw__pager > ul > li > a {
    border: none;
}

.rvw-pagebtn,
.rvw-arrowbtn,
.rvw__pager .pagination > li:first-child > a,
.rvw__pager .pagination > li:last-child > a,
.rvw__pager > ul > li > a {
    border: none;
    appearance: none;
    background: #fff;
    padding: 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 10px;
    min-width: 30px;
}

.rvw-arrowbtn:hover,
.rvw__pager > .pagination > li > a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.rvw-pagebtn:hover,
.rvw__pager > .pagination > li > a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.rvw-pagebtn[aria-current="page"],
.rvw__pager > ul > li.active > a {
    background: #ffd200;
    color: #fff;
    border-color: #ffd200;
    cursor: default;
    font-weight: 700;
}

.rvw-arrowbtn:disabled,
.rvw__pager > ul > li.disabled > a {
    opacity: 0.5;
    cursor: default;
    background: #fff;
}

/* ------- responsive pager ------- */
@media (min-width: 768px) {
    .rvw__list {
        gap: 10px;
    }

    .rvw-card {
        padding: 30px 60px;
    }

    .rvw-card__body {
        line-height: 1.4;
        font-size: 18px;
        text-align: left;
        word-break: keep-all;
    }

    .rvw-user__name {
        font-weight: 700;
        font-size: 16px;
        text-align: left;
    }

    .rvw-pagebtn,
    .rvw-arrowbtn {
        border: none;
        appearance: none;
        background: #fff;
        padding: 10px;
        border-radius: 99px;
        cursor: pointer;
        font-size: 13px;
        min-width: 34px;
    }
}

/*후기작성 모달 */

.rvw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.rvw-btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: transparent;
}

.rvw-btn--primary:hover {
    background: var(--blue-dark);
}

/* Modal */
.rvw-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999000;
}

.rvw-modal[open] {
    display: block;
}

.rvw-modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.rvw-modal__panel {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(720px, 92vw);
    max-height: min(80vh, 880px);
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.rvw-modal__head {
    background: var(--blue);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

/* Body */
.rvw-modal__body {
    padding: 18px 20px 0;
    overflow: auto;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.label {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    text-align: left;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
}

.textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.5;
}

/* Attach section title bar */
.attach-bar {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
    font-weight: 700;
}

.attach-bar .ico {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.attach-bar .ico::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
}

.attach-bar .ico::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
}

/* File rows */
.file-row {
    display: grid;
    grid-template-columns: 64px 1fr 40px;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
}

.file-row .file-name {
    height: 42px;
}

.file-row .btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f56b5b;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.file-row .btn-plus:hover {
    background: #e85a4d;
}

.file-row input[type="file"] {
    position: absolute; /* DOM에는 존재하지만 화면에는 안 보이게 */
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.rvw-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--line);
}

.rvw-btn--sub {
    background: #fff;
    border: 1px solid var(--line);
}

.rvw-btn--sub:hover {
    background: #f7f7f7;
}

/* Mobile */
@media (max-width: 480px) {
    .rvw-modal__head {
        font-size: 20px;
    }

    .textarea {
        min-height: 160px;
    }

    .file-row {
        grid-template-columns: 56px 1fr 40px;
    }
}

/*리뷰 이미지 영역 썸네일 그리드 */
.rw-grid {
    padding: 16px 16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--rw-gap);
}

.rw-thumb {
    position: relative;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
}

.rw-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.rw-thumb .rw-cap {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
}

/* 리뷰이미지 모달 */
.rw-modal[hidden] {
    display: none !important;
}

.rw-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
}

.rw-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.rw-modal__dialog {
    position: relative;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.rw-modal__head {
    display: flex;
    justify-content: flex-end;
}

.rw-modal__close {
    margin: 8px;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-size: 18px;
}

.rw-modal__body {
    padding: 8px;
}

.rw-modal__body img {
    display: block;
    max-width: calc(100vw - 40px);
    max-height: 75vh;
    width: auto;
    height: auto;
}

.rw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rw-notice {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}
.ts-outro {
    padding-bottom: 50px;
}
