@charset "utf-8";

/* 기본 */
#bo_v_con a { color: #12377c; text-decoration: underline; }
#bo_v_con a:hover { color: #0d295d; }
#bo_v_con img,
#bo_v_img img,
.gall_img img,
.gall_img video { max-width: 100%; height: auto !important; }

.autosave_content { display: none; }

/* 후기 게시판 공통 */
.ks-review-board,
.ks-review-view-wrap {
    max-width: 1280px;
    margin: 0 auto 30px;
}

.ks-review-top,
.ks-review-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0px;
}

.ks-review-total {
    font-size: 15px;
    color: #6b7280;
}

.ks-review-total strong {
    color: #111827;
    font-weight: 800;
}

.ks-btn-primary,
.ks-btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s ease;
}

.ks-btn-primary {
    background: #12377c;
    color: #fff !important;
    border: 1px solid #12377c;
}

.ks-btn-primary:hover {
    background: #0d295d;
    border-color: #0d295d;
}

.ks-btn-line {
    background: #fff;
    color: #1f2937 !important;
    border: 1px solid #d1d5db;
}

.ks-btn-line:hover {
    border-color: #12377c;
    color: #12377c !important;
}

.ks-btn-line.danger:hover {
    color: #c62828 !important;
    border-color: #ef9a9a;
}

/* 목록 */
.ks-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.ks-review-card {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ks-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    border-color: #d7d7d7;
}

.ks-review-thumb {
    display: block;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #e9ecef;
}

.ks-review-thumb-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.ks-review-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    letter-spacing: .08em;
    color: #9ca3af;
    background: #eef1f4;
}

.ks-review-body {
    padding: 26px 26px 22px;
}

.ks-review-title,
.ks-review-desc {
    text-decoration: none !important;
    display: block;
}

.ks-review-title {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    color: #222;
    margin-bottom: 14px;
    text-decoration: none !important;

    /* 제목 1줄 말줄임 - 모바일 넘침 방지 방식 */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: keep-all;
}

.ks-review-title:hover {
    color: #12377c;
}

.ks-review-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #5b6068;
    height: 115px;
    overflow: hidden;
    word-break: keep-all;
}

.ks-review-desc .ks-review-desc-inner {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ks-review-divider {
    margin: 18px 0 20px;
    height: 1px;
    background: #dfdfdf;
}

/* 목록 하단 고객정보 + 별점 위치 */
.ks-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.ks-review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.ks-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #0869f9;
    color: #fff;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ks-review-avatar.small {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.ks-review-avatar svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ks-review-avatar.small svg {
    width: 12px;
    height: 12px;
}

.ks-review-user-text {
    min-width: 0;
}

.ks-review-user-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: keep-all;
}

.ks-review-user-text span {
    display: block;
    font-size: 14px;
    color: #7b8190;
    line-height: 1.45;
    word-break: keep-all;
}

.ks-review-date {
    flex: 0 0 auto;
    font-size: 14px;
    color: #8b9099;
    padding-top: 2px;
    white-space: nowrap;
}

.ks-review-stars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 0;
    font-size: 28px;
    line-height: 1;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ks-review-stars .star {
    color: #d7d7d7;
}

.ks-review-stars .star.is-on {
    color: #f5b301;
}

.ks-review-stars.is-view {
    margin-top: 12px;
    font-size: 34px;
    justify-content: flex-start;
}

.ks-review-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 15px;
}

.ks-review-mask-name {
    letter-spacing: -0.01em;
}

/* 보기 */
.ks-review-view-card {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
}

.ks-review-view-gallery {
    padding: 32px 32px 0;
}

.ks-review-view-gallery .view_image,
.ks-review-view-gallery img {
    display: block;
    width: 100%;
}

.ks-review-view-gallery img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    object-fit: cover;
}

.ks-review-view-gallery p {
    margin: 0;
}

.ks-review-view-inner {
    padding: 24px 32px 32px;
}

.ks-review-view-title {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #222;
    word-break: keep-all;
}

.ks-review-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ks-review-view-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 15px;
}

.ks-review-view-author span:last-child {
    display: inline-block;
}

.ks-review-view-date {
    color: #a0a4ab;
    font-size: 15px;
}

.ks-review-view-submeta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ks-review-view-submeta span {
    font-size: 14px;
    color: #7b8190;
}

.ks-review-view-divider {
    height: 1px;
    background: #d9d9d9;
    margin: 24px 0 26px;
}

.ks-review-view-content {
    font-size: 18px;
    line-height: 2.0;
    color: #4b5563;
    word-break: keep-all;
}

.ks-review-view-content p {
    margin: 0 0 14px;
}

.ks-review-view-content img {
    border-radius: 14px;
    margin: 0 0 18px;
}

.ks-review-view-bottom {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    margin-bottom: 18px;
}

.ks-review-nav {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ks-review-nav li {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid #f0f1f3;
}

.ks-review-nav li:first-child {
    border-top: 0;
}

.ks-review-nav strong {
    flex: 0 0 54px;
    color: #6b7280;
    font-size: 14px;
}

.ks-review-nav a {
    min-width: 0;
    color: #1f2937;
    text-decoration: none;
}

.ks-review-nav a:hover {
    color: #12377c;
}

/* 댓글 */
#bo_vc,
#bo_vc_w {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
}

#bo_vc {
    margin-top: 18px;
}

#bo_vc_empty {
    padding: 24px 0;
}

/* 반응형 */
@media (max-width: 1100px) {
    .ks-review-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .ks-review-board,
    .ks-review-view-wrap {
        max-width: 100%;
    }

    .ks-review-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ks-review-card {
        border-radius: 14px;
    }

    .ks-review-thumb {
        aspect-ratio: 1.55 / 1;
    }

    .ks-review-body {
        padding: 16px 16px 18px;
    }

    .ks-review-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .ks-review-desc {
        height: auto;
        font-size: 14px;
        line-height: 1.75;
    }

    .ks-review-desc .ks-review-desc-inner {
        -webkit-line-clamp: 3;
    }

    .ks-review-divider {
        margin: 14px 0 14px;
    }

    .ks-review-meta {
        align-items: center;
        gap: 10px;
    }

    .ks-review-user {
        gap: 10px;
    }

    .ks-review-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .ks-review-avatar svg {
        width: 18px;
        height: 18px;
    }

    .ks-review-user-text strong {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .ks-review-user-text span,
    .ks-review-date {
        font-size: 12px;
    }

    .ks-review-stars {
        font-size: 22px;
        gap: 1px;
    }

    .ks-review-view-card {
        border-radius: 14px;
    }

    .ks-review-view-gallery {
        padding: 16px 16px 0;
    }

    .ks-review-view-inner {
        padding: 18px 16px 22px;
    }

    .ks-review-view-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .ks-review-view-meta {
        gap: 8px;
    }

    .ks-review-view-author,
    .ks-review-view-date {
        font-size: 13px;
    }

    .ks-review-stars.is-view {
        font-size: 28px;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .ks-review-view-divider {
        margin: 18px 0 18px;
    }

    .ks-review-view-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .ks-review-view-bottom {
        justify-content: space-between;
    }

    .ks-btn-primary,
    .ks-btn-line {
        min-width: 90px;
        height: 42px;
        padding: 0 15px;
        border-radius: 10px;
        font-size: 14px;
    }

    .ks-review-nav li {
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
    }
}
