/* ============================================================================
 * rental-detail-wells.css
 *
 * 교원웰스 (WELLS) 상품 상세 — 운영 화면용 CSS 스코프.
 * kyowonwells.com Product/Detail 페이지의 .prd-details 영역을
 * sanitize 후 .rental-detail-wells wrapper 로 감싸 사용.
 *
 * 사용:
 *   <link rel="stylesheet" href="/rental/assets/css/rental-detail-wells.css">
 *   <div class="rental-detail-wells"> ... 정리된 detail HTML ... </div>
 * ============================================================================ */

.rental-detail-wells {
    max-width: 100%;
    margin: 0 auto;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 16px;
    word-break: keep-all;
}
.rental-detail-wells * { box-sizing: border-box; }

/* ── 본문 이미지 ────────────────────────────────────────── */
.rental-detail-wells img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── prd-details 본문 wrapper ───────────────────────────── */
.rental-detail-wells .prd-details,
.rental-detail-wells .prd-detail-area {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 16px;
}
.rental-detail-wells .prd-head {
    text-align: center;
    margin: 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.rental-detail-wells .tit-area .tit,
.rental-detail-wells .tit {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.4;
}
.rental-detail-wells .tit-area .desc,
.rental-detail-wells .desc {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}
.rental-detail-wells .model {
    font-size: 13px;
    color: #888;
    margin: 4px 0;
}

/* ── 사양 테이블 ──────────────────────────────────────── */
.rental-detail-wells table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}
.rental-detail-wells table caption { display: none; }
.rental-detail-wells table th,
.rental-detail-wells table td {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}
.rental-detail-wells table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* ── swiper-slide → 가로 스크롤 폴백 (JS 미동작 시) ────── */
.rental-detail-wells .swiper-container,
.rental-detail-wells .swiper-wrapper {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    padding: 0 0 12px;
    margin: 16px 0;
    transform: none !important;
    width: 100% !important;
}
.rental-detail-wells .swiper-slide {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
    width: auto !important;
    margin: 0 !important;
}
@media (min-width: 769px) {
    .rental-detail-wells .swiper-slide {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

/* ── 본문 p / br ──────────────────────────────────────── */
.rental-detail-wells p {
    margin: 0 0 8px;
}
.rental-detail-wells br {
    line-height: 1.2;
}

/* ── prd-info-tab — 모든 tab 강제 노출 (JS 미동작 환경) ── */
.rental-detail-wells .prd-info-tab {
    display: block !important;
    margin: 24px 0;
}
.rental-detail-wells .prd-strongpoint-inner {
    text-align: center;
}
.rental-detail-wells .prd-strongpoint-inner img {
    max-width: 100%;
    height: auto !important;  /* inline style의 height: 100% override */
    display: inline-block;
    float: none !important;
}
.rental-detail-wells .ctit-box {
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a1a1a;
}
.rental-detail-wells .ctit-box .tit,
.rental-detail-wells .ctit-box h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* ── 안전망 (sanitize 누락 시) ──────────────────────────── */
.rental-detail-wells .blind,
.rental-detail-wells .hidden,
.rental-detail-wells .sr-only,
.rental-detail-wells .swiper-pagination,
.rental-detail-wells .swiper-button-next,
.rental-detail-wells .swiper-button-prev,
.rental-detail-wells .swiper-scrollbar,
.rental-detail-wells .tab-box,
.rental-detail-wells .infor-wrap,
.rental-detail-wells .thumb-wrap,
.rental-detail-wells .modal,
.rental-detail-wells .guide-area,
.rental-detail-wells .review-group,
.rental-detail-wells .review-swiper,
.rental-detail-wells .photo-review,
.rental-detail-wells .add-discount,
.rental-detail-wells .associated-card,
.rental-detail-wells .tooltip,
.rental-detail-wells .prd-info-tab.prd-review { display: none !important; }
