/******************************************
   name :  mmf_config.css
   desc :  MMF STUDIO Configurator — layout v2
           replaces bct_web.css (bct_comm.css / loading.css 유지)
   rule :  JS(obfuscated)가 쓰는 id / class / cus_code 는 그대로 유지할 것
*******************************************/

:root{
    --f-ko:"Spoqa Han Sans Neo", "NotoSansKR", -apple-system, sans-serif;
    --f-display:"Archivo", "Inter", sans-serif;
    --f-body:"Inter", "Spoqa Han Sans Neo", sans-serif;

    --paper:#F4F2EE;
    --surface:#FFFFFF;
    --ink:#141414;
    --ink-2:#4A4844;
    --ink-3:#8C8983;
    --line:#E2DED6;
    --line-2:#CFCAC0;
    --accent:#B40023;

    --top-h:64px;
    --panel-w:400px;
    --radius:2px;
    --ease:cubic-bezier(.2,.8,.2,1);
}

/* ---------- base ---------- */
html{ font-size:10px; }
html,body{
    font-family:var(--f-ko); color:var(--ink); background:var(--paper);
    letter-spacing:-0.01em; -webkit-font-smoothing:antialiased;
}
body{ font-size:150%; }            /* 공통 규칙: body 150% (= 15px) */
body,div,p,span,button,input{ letter-spacing:-0.01em; }
button{ font-family:inherit; color:inherit; }

.ic{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ic-sm{ width:16px; height:16px; }

/* ---------- app frame ---------- */
.app_frame{ position:relative; width:100%; height:100%; min-width:350px; display:flex; flex-direction:column; }

/* ---------- top bar ---------- */
.top_bar{
    position:relative; z-index:120; flex:none; height:var(--top-h);
    display:flex; align-items:center; gap:24px; padding:0 24px;
    background:var(--surface); border-bottom:1px solid var(--line);
}
.top_bar .brand{ display:flex; align-items:baseline; gap:10px; flex:none; color:var(--ink); }
.top_bar .brand .word{ font-family:var(--f-display); font-weight:800; font-size:17px; letter-spacing:.14em; }
.top_bar .brand .sub{ font-family:var(--f-display); font-weight:500; font-size:11px; letter-spacing:.22em; color:var(--ink-3); }

.top_bar .top_actions{ margin-left:auto; display:flex; align-items:center; gap:8px; flex:none; }
.top_btn{
    display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px;
    border:1px solid var(--line); border-radius:var(--radius); background:var(--surface);
    font-size:13px; font-weight:500; color:var(--ink); cursor:pointer; transition:background .2s var(--ease), border-color .2s var(--ease);
}
.top_btn:hover{ border-color:var(--ink); }
.top_btn.solid{ background:var(--ink); border-color:var(--ink); color:#fff; }
.top_btn.solid:hover{ background:#000; }

/* line tabs (#id_tab_main / .btn_mnu — JS 연동) */
.mnu_wrap{
    display:flex; align-items:stretch; gap:0; height:var(--top-h); width:auto;
    justify-content:flex-start; margin:0 auto;
}
.mnu_wrap .btn_mnu{
    position:relative; display:flex; align-items:center; gap:8px; width:auto; padding:0 18px;
    opacity:1; cursor:pointer; color:var(--ink-3); text-align:left;
    transition:color .2s var(--ease);
}
.mnu_wrap .btn_mnu .no{ font-family:var(--f-display); font-size:11px; font-weight:500; letter-spacing:.08em; color:var(--line-2); transition:color .2s var(--ease); }
.mnu_wrap .btn_mnu p{ font-family:var(--f-display); font-size:14px; font-weight:600; letter-spacing:.14em; line-height:1; padding:0; }
.mnu_wrap .btn_mnu .thumb{ display:none; }
.mnu_wrap .btn_mnu::after{
    content:""; position:absolute; left:18px; right:18px; bottom:-1px; height:2px; background:var(--ink);
    transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease);
}
.mnu_wrap .btn_mnu:hover{ opacity:1; color:var(--ink-2); }
.mnu_wrap .btn_mnu.active{ opacity:1; color:var(--ink); }
.mnu_wrap .btn_mnu.active .no{ color:var(--accent); }
.mnu_wrap .btn_mnu.active::after{ transform:scaleX(1); }

/* ---------- body: viewport + panel ---------- */
.app_body{ position:relative; flex:1 1 auto; min-height:0; display:flex; }

.disp_main{
    position:relative; flex:1 1 auto; min-width:0; height:100%;
    background:var(--paper);
    background-image:linear-gradient(rgba(20,20,20,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,20,.04) 1px, transparent 1px);
    background-size:40px 40px;
}
.disp_main .editor_wrap{ position:relative; width:100%; height:100%; overflow:hidden; }
.disp_main .editor_wrap.view_mode{ width:100% !important; }
.disp_main .editor_wrap .editor{ position:absolute; inset:0; z-index:10; width:100%; height:100%; overflow:hidden; }

/* viewport caption */
.vp_caption{ position:absolute; left:28px; top:24px; z-index:15; pointer-events:none; }
.vp_caption .idx{ font-family:var(--f-display); font-size:11px; font-weight:500; letter-spacing:.22em; color:var(--accent); }
.vp_caption .name{ font-family:var(--f-display); font-size:34px; font-weight:800; letter-spacing:.06em; line-height:1.1; margin-top:6px; color:var(--ink); }
.vp_caption .tag{ font-family:var(--f-display); font-size:12px; font-weight:500; letter-spacing:.08em; color:var(--ink-3); margin-top:6px; }

/* toolbar (view tools + camera) */
.vp_toolbar{
    position:absolute; left:50%; bottom:24px; transform:translateX(-50%); z-index:15;
    display:flex; align-items:center; gap:4px; padding:6px;
    background:rgba(255,255,255,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 8px 24px -12px rgba(20,20,20,.25);
}
.vp_toolbar .sep{ width:1px; height:24px; background:var(--line); margin:0 6px; }

/* .btn_info01 / .btn_info02 : 기존 버튼 래퍼 (inline left/top 은 무시) */
.disp_main .editor_wrap .vp_toolbar .btn_info01,
.disp_main .editor_wrap .vp_toolbar .btn_info02{ position:relative; left:auto !important; top:auto !important; right:auto !important; bottom:auto !important; display:flex; }
.disp_main .editor_wrap .vp_toolbar .btn_info01[style*="display:none"],
.disp_main .editor_wrap .vp_toolbar .btn_info01[style*="display: none"]{ display:none !important; }

.disp_main .editor_wrap .vp_toolbar button{
    display:flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0;
    border:0; border-radius:var(--radius); background:transparent; box-shadow:none; color:var(--ink); cursor:pointer;
    transition:background .15s var(--ease), color .15s var(--ease);
}
.disp_main .editor_wrap .vp_toolbar button:hover{ background:var(--ink); color:#fff; }
.disp_main .editor_wrap .vp_toolbar button.black{ background:var(--ink); color:#fff; }
.disp_main .editor_wrap .vp_toolbar .btn_info02 button{ width:34px; }

/* tooltip */
.disp_main .editor_wrap .vp_toolbar .btn_info01 > .text,
.disp_main .editor_wrap .vp_toolbar .btn_info02 > .text{
    position:absolute; left:50%; bottom:calc(100% + 12px); transform:translate(-50%,4px);
    white-space:nowrap; margin:0; padding:5px 9px; border-radius:var(--radius);
    font-size:12px; font-weight:500; color:#fff; background:var(--ink);
    opacity:0; pointer-events:none; display:block; transition:opacity .15s var(--ease), transform .15s var(--ease);
}
.disp_main .editor_wrap .vp_toolbar .btn_info01:hover > .text,
.disp_main .editor_wrap .vp_toolbar .btn_info02:hover > .text{ opacity:1; transform:translate(-50%,0); }

/* pipe height popup (JS 가 bottom 값으로 열고 닫음) */
.disp_main .editor_wrap .opt_height{
    position:absolute; z-index:12000; width:360px; bottom:-200px; left:50%; transform:translate(-50%,0);
    padding:16px 18px 6px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    box-shadow:0 16px 40px -16px rgba(20,20,20,.35); transition:bottom .3s var(--ease);
}
/* JS: 열림 = bottom:50px / 닫힘 = bottom:-140px → 툴바 위로 띄우고, 닫힘은 완전히 숨김 */
.disp_main .editor_wrap .opt_height[style*="bottom"]{ bottom:96px !important; }
.disp_main .editor_wrap .opt_height[style*="bottom: -"],
.disp_main .editor_wrap .opt_height[style*="bottom:-"]{ bottom:-240px !important; }
.disp_main .editor_wrap .opt_height .top_area{ display:flex; align-items:center; justify-content:space-between; }
.disp_main .editor_wrap .opt_height .title{ font-size:14px; font-weight:700; color:var(--ink); }
.disp_main .editor_wrap .opt_height .close{ width:14px; cursor:pointer; opacity:.6; }
.disp_main .editor_wrap .opt_height .close:hover{ opacity:1; }
.disp_main .editor_wrap .opt_height .close img{ width:100%; }

/* tip */
.tip_pop{ position:absolute; left:50%; top:96px; z-index:890; display:none; }
.tip_pop .info{
    position:relative; display:flex; align-items:center; justify-content:center; transform:translate(-50%,-50%);
    padding:10px 14px 10px 16px; background:var(--ink); color:#fff; border-radius:var(--radius); box-shadow:0 8px 24px -12px rgba(0,0,0,.4); font-size:13px;
}
.tip_pop .info .text{ padding:2px 16px 2px 0; }
.tip_pop .info img{ width:18px; margin-right:10px; filter:brightness(0) invert(1); }
.tip_pop .info .btn_close{ width:10px; margin:0; cursor:pointer; }

/* ---------- side panel ---------- */
.aside_main{
    position:relative; top:auto; right:auto; z-index:100; flex:none;
    width:var(--panel-w); height:100%; display:flex; flex-direction:column;
    background:var(--surface); border-left:1px solid var(--line);
}
.bar_mnu_shadow{ box-shadow:none; }

.panel_head{ flex:none; display:flex; align-items:baseline; justify-content:space-between; padding:22px 28px 18px; border-bottom:1px solid var(--line); }
.panel_head .t{ font-size:18px; font-weight:700; }
.panel_head .e{ font-family:var(--f-display); font-size:11px; font-weight:500; letter-spacing:.22em; color:var(--ink-3); }

.cts_wrap{ position:relative; flex:1 1 auto; min-height:0; height:auto; overflow-y:auto; border-top:0; }
.cts_wrap::-webkit-scrollbar{ width:4px; }
.cts_wrap::-webkit-scrollbar-thumb{ background:var(--line-2); }
.cts_wrap .cts_area{ position:relative; left:auto; top:auto; width:100%; padding:8px 28px 28px; counter-reset:step; }
.cts_wrap .main_title{ display:none; }

/* 섹션: id_page_* 블록 (display:none 이면 번호도 자동으로 건너뜀) */
.cts_wrap .cts_area > div{ padding:22px 0 4px; border-bottom:1px solid var(--line); }
.cts_wrap .cts_area > div:last-child{ border-bottom:0; }
.cts_wrap .sub_title{
    display:flex; align-items:baseline; gap:8px; padding-bottom:14px;
    font-size:15px; font-weight:700; color:var(--ink);
}
.cts_wrap .sub_title::before{
    counter-increment:step; content:counter(step, decimal-leading-zero);
    font-family:var(--f-display); font-size:11px; font-weight:500; letter-spacing:.08em; color:var(--ink-3); min-width:20px;
}
.cts_wrap .sub_title .sub_name{
    margin-left:auto; padding:0; font-family:var(--f-display); font-size:10px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3) !important;
}
.bar_space{ height:0; margin:0 0 14px; }
.bar_space2{ height:0; margin:0 0 28px; }

/* segmented (radio_info01 / radio_box — JS 생성) */
.radio_info01{
    display:flex; align-items:stretch; width:100%; gap:0; padding:0; margin:0;
    background:transparent; border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden;
}
.radio_info01 .radio_box{
    flex:1 1 0; height:44px; min-width:0; padding:0 4px; border:0; border-left:1px solid var(--line); border-radius:0;
    background:var(--surface); color:var(--ink-2); cursor:pointer;
    font-family:var(--f-display); font-size:14px; font-weight:500; letter-spacing:.02em;
    transition:background .15s var(--ease), color .15s var(--ease);
}
.radio_info01 .radio_box:first-child{ border-left:0; }
.radio_info01 .radio_box:hover{ background:var(--paper); color:var(--ink); }
.radio_info01 .radio_box.active{ background:var(--ink); color:#fff; border-left-color:var(--ink); }
.radio_info01 .radio_box.active + .radio_box{ border-left-color:var(--ink); }
.radio_info01 .radio_box:empty{ display:none; }
#id_page_opt_height .radio_info01{ margin:12px 0 !important; }

/* color swatches (color_info01 / color_box — JS 생성, cus_name 속성 사용) */
.color_info01{ display:flex; flex-wrap:wrap; gap:18px 14px; padding-bottom:10px; }
.color_info01 .color_box{
    position:relative; width:64px; height:auto; margin:0; padding:0; border:0; border-radius:0; background:none; cursor:pointer; text-align:center;
}
.color_info01 .color_box .circle{
    width:52px; height:52px; margin:0 auto; border-radius:50%; line-height:normal;
    box-shadow:inset 0 0 0 1px rgba(20,20,20,.12); outline:1px solid transparent; outline-offset:4px;
    transition:outline-color .2s var(--ease), transform .2s var(--ease);
}
.color_info01 .color_box .circle img{ display:none !important; }
.color_info01 .color_box:hover .circle{ transform:none; outline-color:var(--line-2); }
.color_info01 .color_box.active{ border:0; }
.color_info01 .color_box.active .circle{ outline:1.5px solid var(--ink); }
.color_info01 .color_box::after{
    content:attr(cus_name); display:block; margin-top:10px; font-size:12px; font-weight:500; color:var(--ink-3); white-space:nowrap;
}
.color_info01 .color_box.active::after{ color:var(--ink); font-weight:700; }

/* ---------- summary ---------- */
.summary_wrap{ flex:none; height:auto; padding:18px 28px 24px; background:var(--surface); border-top:1px solid var(--ink); }
.summary_wrap .text_box{ display:flex; align-items:flex-end; justify-content:space-between; padding:0 0 16px; }
.summary_wrap .text_box > .title{
    font-family:var(--f-display); font-size:10px; font-weight:500; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-3); line-height:1.6;
}
#id_txt_total_box{ font-size:12px; color:var(--ink-3); }
.summary_wrap .text_box .price{ font-family:var(--f-display); font-size:24px; font-weight:700; letter-spacing:-.01em; color:var(--ink); text-align:right; margin-top:2px; }
.summary_wrap .btn_cart{
    position:relative; display:flex; align-items:center; justify-content:space-between; width:100%; height:56px; padding:0 20px;
    border:0; border-radius:var(--radius); background:var(--ink); color:#fff; cursor:pointer;
    font-size:15px; font-weight:700; transition:background .2s var(--ease);
}
.summary_wrap .btn_cart .en{ font-family:var(--f-display); font-size:10px; font-weight:500; letter-spacing:.22em; opacity:.55; }
.summary_wrap .btn_cart:hover{ background:var(--accent); }

/* ---------- modal: 부품내역 ---------- */
.modal_report .tbl_list thead td{ background:var(--ink); font-size:13px; }
.modal_report .tbl_list tbody tr{ border-bottom:1px solid var(--line); }

/* ---------- basket (기존 유지 + 폰트 정리) ---------- */
.basket_main .section_title{ font-family:var(--f-display); font-size:10px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.basket_main .section_title .tag_barv{ width:1px; height:10px; background:var(--line); }
.basket_main .section_title .brand_mark{ font-family:var(--f-display); font-weight:700; letter-spacing:.16em; color:var(--ink-2); }
.basket_main .top_title .main_title{ font-size:22px; font-weight:700; letter-spacing:-.02em; color:var(--ink); margin-bottom:8px; line-height:1.3; }
.basket_main .top_title .sub_desc{ font-size:13px; color:var(--ink-3); line-height:1.55; margin-bottom:5px; }
.basket_main .notice{ border-radius:var(--radius); padding:10px 14px; margin-bottom:8px; font-size:12px; line-height:1.55; display:flex; gap:10px; align-items:flex-start; }
.basket_main .notice .tag{ font-family:var(--f-display); font-size:9px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; padding:3px 6px; border-radius:2px; flex-shrink:0; line-height:1.4; margin-top:1px; }
.basket_main .notice.info{ background:var(--paper); color:var(--ink); }
.basket_main .notice.info .tag{ background:rgba(20,20,20,.08); color:var(--ink); }
.basket_main .notice.critical{ background:var(--ink); color:#E8DCC0; margin-bottom:20px; }
.basket_main .notice.critical .tag{ background:var(--accent); color:#fff; }
.basket_main .form_main{ margin-bottom:14px; }
.basket_main .form_main .form_label{ font-family:var(--f-display); display:block; font-size:10px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:2px; }
.basket_main .form_main .form_input{ width:100%; padding:8px 0; font:inherit; font-size:14px; color:var(--ink); background:transparent; border:0; border-bottom:1px solid var(--line); transition:border-color .2s var(--ease); border-radius:0; }
.basket_main .form_main .form_input::placeholder{ color:#AAA; font-size:13px; }
.basket_main .form_main .form_input:focus{ outline:none; border-bottom-color:var(--ink); }
.basket_main .terms_main{ display:flex; justify-content:space-between; font-size:12px; margin-bottom:5px; }
.basket_main .agree_box{ position:absolute; background:#fff; top:0; left:0; width:100%; height:100%; padding:20px 40px; box-sizing:border-box; display:none; overflow-y:auto; font-size:12px; line-height:1.6; }
.basket_main .agree_box .close{ position:absolute; top:20px; right:20px; z-index:3; cursor:pointer; }
.basket_main .agree_box .close img{ width:20px; height:20px; }
.basket_main .btns .txt_err{ padding:5px 0; color:#DB0000; height:25px; text-align:center; font-size:12px; }
.btn_df_black{ border-radius:var(--radius); height:48px; font-size:14px; font-weight:700; }

.view_web{}
.view_mo{ display:none !important; }

/* ---------- tablet ---------- */
@media (max-width:1180px){
    :root{ --panel-w:360px; }
    .top_bar{ gap:12px; padding:0 16px; }
    .top_bar .brand .sub{ display:none; }
    .mnu_wrap .btn_mnu{ padding:0 12px; }
    .mnu_wrap .btn_mnu .no{ display:none; }
    .top_btn .lbl{ display:none; }
    .top_btn{ padding:0 10px; }
}

/* ---------- mobile ---------- */
@media (max-width:768px){
    :root{ --top-h:52px; }
    .top_bar{ flex-wrap:wrap; height:auto; padding:0; gap:0; }
    .top_bar .brand{ height:52px; align-items:center; padding:0 16px; }
    .top_bar .brand .word{ font-size:15px; }
    .top_bar .top_actions{ height:52px; padding-right:12px; }
    .top_btn{ height:34px; }
    .mnu_wrap{
        order:3; width:100%; height:44px; margin:0; border-top:1px solid var(--line);
        overflow-x:auto; scrollbar-width:none; justify-content:space-between;
    }
    .mnu_wrap::-webkit-scrollbar{ display:none; }
    .mnu_wrap .btn_mnu{ flex:1 0 auto; justify-content:center; padding:0 10px; }
    .mnu_wrap .btn_mnu p{ font-size:12px; letter-spacing:.1em; }
    .mnu_wrap .btn_mnu::after{ left:10px; right:10px; }

    .app_body{ flex-direction:column; }
    .disp_main{ flex:1 1 auto; height:auto; min-height:0; }
    .vp_caption{ left:16px; top:14px; }
    .vp_caption .name{ font-size:22px; }
    .vp_caption .tag{ display:none; }

    .vp_toolbar{ bottom:12px; max-width:calc(100% - 24px); overflow-x:auto; scrollbar-width:none; gap:2px; padding:4px; }
    .vp_toolbar::-webkit-scrollbar{ display:none; }
    .disp_main .editor_wrap .vp_toolbar button{ width:36px; height:36px; }
    .disp_main .editor_wrap .vp_toolbar .btn_info02 button{ width:30px; }
    .disp_main .editor_wrap .vp_toolbar .text{ display:none !important; }
    .vp_toolbar .sep{ margin:0 3px; }

    .disp_main .editor_wrap .opt_height{ width:calc(100% - 24px); }
    .disp_main .editor_wrap .opt_height[style*="bottom"]{ bottom:68px !important; }
    .disp_main .editor_wrap .opt_height[style*="bottom: -"],
    .disp_main .editor_wrap .opt_height[style*="bottom:-"]{ bottom:-240px !important; }

    .aside_main{ width:100%; height:48%; min-width:350px; border-left:0; border-top:1px solid var(--line); box-shadow:0 -12px 28px -18px rgba(20,20,20,.35); }
    .panel_head{ display:none; }
    .cts_wrap .cts_area{ padding:0 16px 16px; }
    .cts_wrap .cts_area > div{ padding:16px 0 2px; }
    .radio_info01 .radio_box{ height:40px; }

    .summary_wrap{ display:flex; align-items:center; gap:12px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); }
    .summary_wrap .text_box{ flex:1 1 auto; padding:0; display:block; }
    .summary_wrap .text_box > .title{ display:none; }
    .summary_wrap .text_box .price{ font-size:18px; text-align:left; }
    #id_txt_total_box{ text-align:left !important; font-size:11px; }
    .summary_wrap .btn_cart{ flex:none; width:auto; height:48px; padding:0 18px; font-size:14px; }
    .summary_wrap .btn_cart .en{ display:none; }

    .view_web{ display:none !important; }
    .view_mo{ display:initial !important; }
}

/* =====================================================================
   MMF capture / AR (mmf_capture.js, mmf_ar.js) — QR modal + AR viewer
   ===================================================================== */
.mmf_qr_modal{ position:fixed; inset:0; z-index:99000; display:flex; align-items:center; justify-content:center; padding:16px; }
.mmf_qr_bg{ position:absolute; inset:0; background:rgba(20,20,20,.45); }
.mmf_qr_box{ position:relative; width:100%; max-width:380px; background:var(--surface,#fff); border:1px solid var(--line); border-radius:var(--radius,2px); padding:28px 28px 22px; text-align:center; font-family:var(--f-ko); color:var(--ink); box-shadow:0 24px 60px -20px rgba(20,20,20,.45); }
.mmf_qr_close{ position:absolute; top:8px; right:10px; width:36px; height:36px; border:0; background:none; font-size:26px; line-height:1; color:var(--ink-2,#4A4844); cursor:pointer; }
.mmf_qr_eyebrow{ font-family:var(--f-display); font-size:11px; letter-spacing:.16em; color:var(--ink-3,#8C8983); }
.mmf_qr_title{ margin-top:6px; font-size:20px; font-weight:700; letter-spacing:-.02em; }
.mmf_qr_code{ width:220px; height:220px; margin:20px auto 16px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:#fff; padding:8px; }
.mmf_qr_code svg{ width:100%; height:100%; display:block; }
.mmf_qr_wait{ font-size:12px; color:var(--ink-3,#8C8983); }
.mmf_qr_desc{ font-size:14px; line-height:1.55; color:var(--ink); word-break:keep-all; }
.mmf_qr_sub{ margin-top:6px; font-size:11px; color:var(--ink-3,#8C8983); }
.mmf_qr_actions{ margin-top:18px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.mmf_qr_link{ height:34px; padding:0 12px; border:1px solid var(--line-2,#CFCAC0); border-radius:var(--radius,2px); background:#fff; font-family:var(--f-ko); font-size:12px; color:var(--ink); cursor:pointer; }
.mmf_qr_link:hover{ background:var(--ink); border-color:var(--ink); color:#fff; }

.mmf_ar_overlay{ position:fixed; inset:0; z-index:99500; display:flex; flex-direction:column; background:var(--paper); font-family:var(--f-ko); color:var(--ink); }
.mmf_ar_top{ flex:none; display:flex; align-items:center; justify-content:space-between; padding:12px 16px; padding-top:calc(12px + env(safe-area-inset-top)); border-bottom:1px solid var(--line); }
.mmf_ar_brand b{ display:block; font-family:var(--f-display); font-size:15px; letter-spacing:.12em; }
.mmf_ar_brand span{ display:block; margin-top:2px; font-size:12px; color:var(--ink-2,#4A4844); }
.mmf_ar_close{ width:40px; height:40px; border:0; background:none; font-size:30px; line-height:1; color:var(--ink); cursor:pointer; }
.mmf_ar_stage{ position:relative; flex:1 1 auto; min-height:0; }
.mmf_ar_stage model-viewer{ width:100%; height:100%; background:var(--paper); --poster-color:transparent; }
.mmf_ar_wait{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; text-align:center; font-size:14px; color:var(--ink-2,#4A4844); }
.mmf_ar_btn{ position:absolute; left:16px; right:16px; bottom:calc(52px + env(safe-area-inset-bottom)); height:56px; border:0; border-radius:var(--radius,2px); background:var(--ink); color:#fff; font-family:var(--f-ko); font-size:17px; font-weight:700; letter-spacing:-.01em; cursor:pointer; }
.mmf_ar_note{ position:absolute; left:16px; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); margin:0; text-align:center; font-size:12px; color:var(--ink-2,#4A4844); word-break:keep-all; pointer-events:none; }
.mmf_ar_btn[disabled]{ opacity:.55; cursor:default; }
.mmf_ar_help{ position:absolute; left:16px; right:16px; bottom:calc(44px + env(safe-area-inset-bottom)); z-index:2; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:var(--radius,2px); text-align:center; box-shadow:0 10px 30px -14px rgba(20,20,20,.35); }
.mmf_ar_help[hidden]{ display:none; }
.mmf_ar_help p{ margin:0; font-size:13px; line-height:1.55; color:var(--ink); word-break:keep-all; }
.mmf_ar_help_actions{ margin-top:12px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.mmf_ar_help_btn{ display:inline-flex; align-items:center; height:40px; padding:0 16px; border:1px solid var(--line-2,#CFCAC0); border-radius:var(--radius,2px); background:#fff; font-family:var(--f-ko); font-size:14px; color:var(--ink); text-decoration:none; cursor:pointer; }
.mmf_ar_help_btn.is_main{ background:var(--ink); border-color:var(--ink); color:#fff; }
.mmf_ar_debug{ position:absolute; top:8px; left:8px; right:8px; z-index:3; margin:0; padding:6px 8px; background:rgba(255,255,255,.9); font:10px/1.4 monospace; white-space:pre-wrap; word-break:break-all; color:#333; pointer-events:none; }


/* =====================================================================
   Left toolbar + pipe-height cards (ref: uffia × VIVAR) — desktop only toolbar
   ===================================================================== */
@media (min-width:769px){
    .vp_toolbar{
        left:24px; top:50%; bottom:auto; transform:translateY(-50%); margin-top:44px;
        flex-direction:column; gap:10px; padding:0;
        background:none; border:0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
    }
    .vp_toolbar .sep{ width:24px; height:1px; margin:4px 0; background:rgba(20,20,20,.12); }
    .disp_main .editor_wrap .vp_toolbar .btn_info01 > button{
        width:42px; height:42px; border-radius:50%; background:#fff; color:var(--ink);
        box-shadow:0 1px 2px rgba(20,20,20,.08), 0 4px 14px -6px rgba(20,20,20,.25);
    }
    .disp_main .editor_wrap .vp_toolbar .btn_info01 > button .ic{ width:20px; height:20px; }
    .disp_main .editor_wrap .vp_toolbar .btn_info01 > button:hover,
    .disp_main .editor_wrap .vp_toolbar .btn_info01 > button.black{ background:var(--ink); color:#fff; }

    /* camera d-pad */
    .vp_dpad{
        display:grid; grid-template-columns:repeat(3,28px); grid-template-rows:repeat(3,28px); gap:2px; padding:5px;
        background:#fff; border-radius:16px;
        box-shadow:0 1px 2px rgba(20,20,20,.08), 0 4px 14px -6px rgba(20,20,20,.25);
    }
    .vp_dpad .btn_info02:nth-child(1){ grid-area:2 / 1; }
    .vp_dpad .btn_info02:nth-child(2){ grid-area:1 / 2; }
    .vp_dpad .btn_info02:nth-child(3){ grid-area:2 / 2; }
    .vp_dpad .btn_info02:nth-child(4){ grid-area:3 / 2; }
    .vp_dpad .btn_info02:nth-child(5){ grid-area:2 / 3; }
    .disp_main .editor_wrap .vp_toolbar .vp_dpad .btn_info02 button{ width:28px; height:28px; border-radius:50%; }
    .disp_main .editor_wrap .vp_toolbar .vp_dpad .btn_info02 button .ic{ width:16px; height:16px; }

    /* tooltips to the right */
    .disp_main .editor_wrap .vp_toolbar .btn_info01 > .text,
    .disp_main .editor_wrap .vp_toolbar .btn_info02 > .text{
        left:calc(100% + 12px); top:50%; bottom:auto; transform:translate(-4px,-50%); border-radius:6px;
    }
    .disp_main .editor_wrap .vp_toolbar .btn_info01:hover > .text,
    .disp_main .editor_wrap .vp_toolbar .btn_info02:hover > .text{ transform:translate(0,-50%); }
}
@media (max-width:768px){
    .vp_dpad{ display:contents; }   /* mobile: keep the single horizontal scroll bar */
}

/* pipe height popup → rounded card bar (open/close still driven by JS inline bottom) */
.disp_main .editor_wrap .opt_height{
    width:auto; min-width:0; max-width:calc(100% - 32px); padding:10px 12px 12px;
    background:#fff; border:0; border-radius:18px;
    box-shadow:0 2px 4px rgba(20,20,20,.06), 0 14px 36px -14px rgba(20,20,20,.35);
}
.disp_main .editor_wrap .opt_height[style*="bottom"]{ bottom:28px !important; }
.disp_main .editor_wrap .opt_height[style*="bottom: -"],
.disp_main .editor_wrap .opt_height[style*="bottom:-"]{ bottom:-260px !important; }
.disp_main .editor_wrap .opt_height .top_area{ padding:0 4px 2px; gap:24px; }
.disp_main .editor_wrap .opt_height .title{ font-size:12px; font-weight:600; color:var(--ink-2); letter-spacing:0; }
#id_page_opt_height .radio_info01{
    display:flex; gap:4px; margin:8px 0 0 !important; border:0; background:none; height:auto;
}
#id_page_opt_height .radio_info01:empty{ display:none; }
#id_page_opt_height .radio_info01 .radio_box{
    flex:0 0 auto; width:68px; height:auto; padding:8px 0 7px; border:0 !important; border-radius:12px;
    display:flex; flex-direction:column; align-items:center; gap:4px;
    background:transparent; color:var(--ink-2); font-family:var(--f-display); font-size:12px; font-weight:500; line-height:1;
}
#id_page_opt_height .radio_info01 .radio_box::before{
    content:""; width:30px; height:30px; background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23141414' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 29V13M22 29V13'/%3E%3Cpath d='M6 28h20M6 13h20' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
}
#id_page_opt_height .radio_info01 .radio_box::after{ content:"mm"; font-size:9px; letter-spacing:.06em; opacity:.6; margin-top:-1px; }
#id_page_opt_height .radio_info01 .radio_box:hover{ background:#F1F0EE; color:var(--ink); }
#id_page_opt_height .radio_info01 .radio_box.active{ background:var(--ink); color:#fff; }
#id_page_opt_height .radio_info01 .radio_box.active::before{ filter:invert(1); }
#id_page_opt_height .radio_box[cus_code="150"]::before{ background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23141414' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 29V19M22 29V19'/%3E%3Cpath d='M6 28h20M6 19h20' stroke-width='1.8'/%3E%3C/svg%3E"); }
#id_page_opt_height .radio_box[cus_code="200"]::before{ background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23141414' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 29V15M22 29V15'/%3E%3Cpath d='M6 28h20M6 15h20' stroke-width='1.8'/%3E%3C/svg%3E"); }
#id_page_opt_height .radio_box[cus_code="250"]::before{ background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23141414' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 29V11M22 29V11'/%3E%3Cpath d='M6 28h20M6 11h20' stroke-width='1.8'/%3E%3C/svg%3E"); }
#id_page_opt_height .radio_box[cus_code="330"]::before{ background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23141414' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 29V6M22 29V6'/%3E%3Cpath d='M6 28h20M6 6h20' stroke-width='1.8'/%3E%3C/svg%3E"); }
@media (max-width:768px){
    .disp_main .editor_wrap .opt_height{ width:auto; }
    .disp_main .editor_wrap .opt_height[style*="bottom"]{ bottom:68px !important; }
    .disp_main .editor_wrap .opt_height[style*="bottom: -"],
    .disp_main .editor_wrap .opt_height[style*="bottom:-"]{ bottom:-260px !important; }
    #id_page_opt_height .radio_info01{ overflow-x:auto; scrollbar-width:none; }
    #id_page_opt_height .radio_info01 .radio_box{ width:60px; }
}
