/* ===== REFSA SUPPORT1 — Support / Content Subpage System ===== */
body.rx-is-subpage {
    background: var(--rx-bg, #f7f3ef);
}

body.rx-is-subpage #wrapper_title {
    max-width: var(--rx-content-max, 1320px);
    margin: 0 auto;
    padding: 28px 28px 10px;
    box-sizing: border-box;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rx-text, #111);
    border: 0;
    background: transparent;
    line-height: 1.25;
}

body.rx-is-subpage #wrapper_title::after {
    display: block;
    margin-top: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--rx-text-secondary, #757575);
    line-height: 1.5;
}

body.rx-is-faq #wrapper_title::after { content: "자주 묻는 질문을 확인해 보세요."; }
body.rx-is-qa #wrapper_title::after { content: "문의 내역과 답변 상태를 확인할 수 있습니다."; }
body.rx-is-itemuse #wrapper_title::after { content: "구매 고객의 실제 후기를 확인해 보세요."; }
body.rx-is-itemqa #wrapper_title::after { content: "상품에 관한 문의와 답변을 확인해 보세요."; }
body.rx-is-couponzone #wrapper_title::after { content: "현재 사용할 수 있는 혜택을 확인해 보세요."; }
body.rx-is-privacy #wrapper_title::after { content: "개인정보 처리 기준을 안내합니다."; }
body.rx-is-company #wrapper_title::after { content: "REPSA를 소개합니다."; }

body.rx-is-pc.rx-is-subpage .shop-content.rx-main,
body.rx-is-pc.rx-is-subpage #container {
    max-width: var(--rx-content-max, 1320px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 64px;
    box-sizing: border-box;
}

body.rx-is-subpage .frm_input,
body.rx-is-subpage .sch_input,
body.rx-is-subpage input[type="text"],
body.rx-is-subpage select {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dedbd7;
    border-radius: 6px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
    font-size: 0.9375rem;
}

body.rx-is-subpage .frm_input:focus,
body.rx-is-subpage .sch_input:focus,
body.rx-is-subpage input[type="text"]:focus,
body.rx-is-subpage select:focus {
    outline: none;
    border-color: #e85d04;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.08);
}

body.rx-is-subpage .btn_submit,
body.rx-is-subpage .btn_b01,
body.rx-is-subpage .btn02,
body.rx-is-subpage .coupon_download,
body.rx-is-subpage a.btn_b01 {
    background: #e85d04 !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    min-height: 44px;
    text-decoration: none !important;
}

body.rx-is-subpage .pg_page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 2px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 6px;
    background: #fff;
    color: #444;
    text-decoration: none;
}

body.rx-is-subpage .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 2px;
    border-radius: 6px;
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

body.rx-is-subpage .empty_list,
body.rx-is-subpage .empty_table,
body.rx-is-subpage .no_coupon {
    margin: 24px 0;
    padding: 40px 20px;
    text-align: center;
    color: #777;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
}

body.rx-is-subpage #bo_cate a {
    color: #444 !important;
}

body.rx-is-subpage #bo_cate #bo_cate_on,
body.rx-is-subpage #bo_cate a#bo_cate_on {
    color: #111 !important;
    background: #faf8f5 !important;
    border-color: rgba(232, 93, 4, 0.35) !important;
}

/* FAQ */
body.rx-is-faq #faq_sch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.rx-is-faq #faq_sch .sch_tit {
    display: none;
}

body.rx-is-faq #faq_sch .frm_input {
    flex: 1;
    max-width: 360px;
}

body.rx-is-faq #bo_cate {
    margin: 0 0 20px;
}

body.rx-is-faq #bo_cate h2,
body.rx-is-faq #faq_con h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.rx-is-faq #bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rx-is-faq #bo_cate_ul a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #444 !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

body.rx-is-faq #faq_wrap,
body.rx-is-faq #faq_con {
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

body.rx-is-faq #faq_con ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rx-is-faq #faq_con li {
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

body.rx-is-faq #faq_con li:last-child {
    border-bottom: 0;
}

body.rx-is-faq #faq_con h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    min-height: 56px;
    font-size: 1rem;
    font-weight: 600;
}

body.rx-is-faq #faq_con h3 .tit_bg {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 18px;
    border-radius: 50%;
    background: rgba(232, 93, 4, 0.1);
    color: #e85d04;
    font-size: 0.75rem;
    font-weight: 800;
}

body.rx-is-faq #faq_con h3 a {
    flex: 1 1 auto;
    padding: 16px 8px;
    color: #111;
    text-decoration: none;
    line-height: 1.45;
}

body.rx-is-faq #faq_con h3.faq_li_open a {
    font-weight: 700;
}

body.rx-is-faq #faq_con .tit_btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
}

body.rx-is-faq #faq_con .con_inner {
    margin: 0;
    padding: 0 22px 22px 58px;
    color: #444;
    line-height: 1.7;
    background: #faf8f5;
    border-top: 1px solid rgba(20, 20, 20, 0.06);
}

body.rx-is-faq #faq_con .closer_btn {
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
}

/* QA */
body.rx-is-qa #bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body.rx-is-qa #bo_list_total {
    color: #777;
    font-size: 0.875rem;
}

body.rx-is-qa .tbl_head01,
body.rx-is-qa .tbl_wrap {
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

body.rx-is-qa .tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
}

body.rx-is-qa .tbl_head01 th {
    background: #faf8f5 !important;
    color: #666 !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(20, 20, 20, 0.08) !important;
    padding: 14px 12px !important;
}

body.rx-is-qa .tbl_head01 td {
    border-bottom: 1px solid rgba(20, 20, 20, 0.06) !important;
    padding: 16px 12px !important;
    background: #fff !important;
    color: #333;
    vertical-align: middle;
}

body.rx-is-qa .td_subject a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

body.rx-is-mobile.rx-is-qa .list_01 ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rx-is-mobile.rx-is-qa .list_01 li {
    margin: 0 0 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
}

body.rx-is-mobile.rx-is-qa .bo_subject {
    display: block;
    margin: 6px 0 8px;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}

/* Reviews / product Q&A */
body.rx-is-itemuse #sps_sch,
body.rx-is-itemqa #sqa_sch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
}

body.rx-is-itemuse #sps ol,
body.rx-is-itemqa #sqa ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

body.rx-is-itemuse #sps li,
body.rx-is-itemqa #sqa li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

body.rx-is-itemuse .sps_img img,
body.rx-is-itemqa .sqa_img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

body.rx-is-itemuse .sps_img a,
body.rx-is-itemqa .sqa_img a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

body.rx-is-itemuse .sps_rv_tit,
body.rx-is-itemqa .sqa_section h2 {
    display: block;
    margin: 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

body.rx-is-itemuse .sps_pd_name,
body.rx-is-itemqa .sqa_dl,
body.rx-is-itemuse .sps_dl {
    color: #777;
    font-size: 0.8125rem;
}

body.rx-is-itemqa .sit_qaa_done,
body.rx-is-itemqa .sit_qaa_yet {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

body.rx-is-itemqa .sit_qaa_done {
    background: rgba(232, 93, 4, 0.1);
    color: #e85d04;
}

body.rx-is-itemqa .sit_qaa_yet {
    background: #f3f3f3;
    color: #666;
}

/* Coupon zone */
body.rx-is-couponzone .couponzone_list {
    margin: 0 0 40px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.rx-is-couponzone .couponzone_list h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}

body.rx-is-couponzone .couponzone_list > p {
    margin: 0 0 18px;
    color: #777;
    font-size: 0.9375rem;
}

body.rx-is-couponzone .couponzone_list ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rx-is-couponzone .couponzone_list li {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

body.rx-is-couponzone .cp_inner {
    padding: 18px;
    flex: 1;
}

body.rx-is-couponzone .coupon_tit {
    margin-top: 10px;
    color: #111;
}

body.rx-is-couponzone .cp_evt {
    display: block;
    margin-top: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
}

body.rx-is-couponzone .cp_evt b {
    color: #e85d04;
}

body.rx-is-couponzone .coupon_btn {
    padding: 0 18px 18px;
}

body.rx-is-couponzone .coupon_download {
    width: 100%;
    height: 48px;
}

body.rx-is-couponzone .coupon_download:disabled {
    background: #ddd !important;
    color: #888 !important;
    cursor: not-allowed;
}

body.rx-is-couponzone .coupon_img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Content pages */
body.rx-is-content #ctt > header {
    display: none;
}

body.rx-is-content #ctt {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

body.rx-is-privacy #ctt_con,
body.rx-is-company #ctt_con {
    margin: 0 auto;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

body.rx-is-privacy #ctt_con {
    max-width: 920px;
}

body.rx-is-company #ctt_con {
    max-width: 1080px;
}

body.rx-is-content #ctt_con {
    color: #333;
    font-size: 0.975rem;
    line-height: 1.75;
}

body.rx-is-content #ctt_con h1,
body.rx-is-content #ctt_con h2,
body.rx-is-content #ctt_con h3,
body.rx-is-content #ctt_con h4 {
    margin: 1.6em 0 0.7em;
    color: #111;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

body.rx-is-content #ctt_con h2 { font-size: 1.35rem; }
body.rx-is-content #ctt_con h3 { font-size: 1.15rem; }
body.rx-is-content #ctt_con h4 { font-size: 1.05rem; }

body.rx-is-content #ctt_con p {
    margin: 0 0 1em;
}

body.rx-is-content #ctt_con ul,
body.rx-is-content #ctt_con ol {
    margin: 0 0 1.1em;
    padding-left: 1.25em;
}

body.rx-is-content #ctt_con li {
    margin: 0.35em 0;
}

body.rx-is-content #ctt_con a {
    color: #e85d04;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.rx-is-content #ctt_con table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9rem;
}

body.rx-is-content #ctt_con th,
body.rx-is-content #ctt_con td {
    padding: 12px 14px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    vertical-align: top;
    text-align: left;
}

body.rx-is-content #ctt_con th {
    background: #faf8f5;
    font-weight: 700;
    color: #333;
}

body.rx-is-content #ctt_con img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1023px) {
    body.rx-is-subpage #wrapper_title {
        padding: 18px 16px 8px;
        font-size: 1.5rem;
    }

    body.rx-is-mobile.rx-is-subpage .shop-content.rx-main,
    body.rx-is-mobile.rx-is-subpage #container {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 48px;
        box-sizing: border-box;
    }

    body.rx-is-itemuse #sps li,
    body.rx-is-itemqa #sqa li {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    body.rx-is-itemuse .sps_img img,
    body.rx-is-itemqa .sqa_img img {
        width: 72px;
        height: 72px;
    }

    body.rx-is-couponzone .couponzone_list ul {
        grid-template-columns: 1fr;
    }

    body.rx-is-privacy #ctt_con,
    body.rx-is-company #ctt_con {
        padding: 20px 16px;
        border-radius: 10px;
    }

    body.rx-is-content #ctt_con {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.rx-is-pc.rx-is-qa .tbl_head01 thead {
        display: none;
    }

    body.rx-is-pc.rx-is-qa .tbl_head01 tr {
        display: block;
        padding: 14px;
        border-bottom: 1px solid rgba(20, 20, 20, 0.08);
    }

    body.rx-is-pc.rx-is-qa .tbl_head01 td {
        display: block;
        width: 100% !important;
        border: 0 !important;
        padding: 4px 0 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    body.rx-is-couponzone .couponzone_list ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
