﻿/* ============================================================================
   아이필립 톡 — /iph_talk/iphTalkCtl.css  (iphTalkCtl.ascx 전용 · 단독 동작)
   · 2026-10-20 팝업(#ipOverlay) UI = 마이페이지 주문서(eiams_order.aspx) 입력 양식 구성
       [번호] 섹션 머리 + 필수/선택/완료 표시 · 이름표 | 입력칸 줄 · 첨부 점선 상자
       · 동의 줄 · 남은 필수 칸 · 빠진 칸 강조
     색은 톡 빨강(--ip-red) 유지 (사용자 결정)
   · 2026-10-20 [첨부파일] = 신규작업의뢰(request_order.aspx) td.fx-rq-file 끌어 놓기 상자 모양 (상자 1개 + 파일 목록 · 빨강)
   · 예전 /styles/iphTalkCtl.css 는 더 이상 불러오지 않음 (플로팅 버튼 부분은 그대로 옮김)
   · 사이트 공통 CSS 에 기대지 않도록 모든 규칙을 .ip-fab / .ip-overlay 안에 둠
   ============================================================================ */

.sk_customer_anw_talk {
    position: fixed;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
    z-index: 900;
}

/* ---------- 0. 공통 변수 ---------- */
.ip-fab, .ip-overlay {
    --ip-red: #d92b2b; /* 브랜드 레드 (채도 정리본) */
    --ip-red-d: #b31f1f;
    --ip-red-tint: #fdf2f2;
    --ip-red-line: #f3c9c9;
    --ip-red-ring: rgba(217,43,43,.13);
    --ip-ink: #1a1a1a; /* 주문서 --nv-ink */
    --ip-ink-2: #333;
    --ip-sub: #666;
    --ip-mut: #8e8e8e;
    --ip-line: #eaeaea;
    --ip-line-soft: #f4f4f4;
    --ip-btn-line: #e0e0e0;
    --ip-btn-line-h: #c9c9c9;
    --ip-box: #fafbfc;
    --ip-bar: #f5f6f7;
    --ip-ph: #b0b4ba;
    --ip-live: #14b866; /* 상담 가능 = 초록 */
    --ip-off: #b6bcc4; /* 상담 종료 = 회색 */
    font-family: 'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

    .ip-fab *, .ip-overlay * {
        box-sizing: border-box;
        margin: 0;
        padding: 0
    }

/* ---------- 1. 플로팅 버튼 (D · 통합 카드) — 예전 모양 그대로 ---------- */
.ip-fab {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 9000; /* [DEV] 기존 헤더보다 높게, 결제 모듈보다 낮게 조정 */
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 999px;
    padding: 7px 7px 7px 17px;
    cursor: pointer;
    box-shadow: 0 12px 26px -12px rgba(20,23,27,.3);
    transition: transform .18s ease;
    --ip-ink: #14171b;
    --ip-sub: #6b7280;
}

    .ip-fab:hover { transform: translateY(-2px) }
    .ip-fab:active { transform: scale(.985) }

.ip-fab__tx {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    margin-right: 13px;
    text-align: left
}

.ip-fab__t1 {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ip-ink)
}

.ip-fab__t2 {
    font-size: 10.5px;
    color: var(--ip-red-d);
    font-weight: 700;
    word-break: keep-all
}
/* keep-all: 낱말 중간에서 줄이 끊기지 않게 */

.ip-fab__orb {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    flex: none;
    position: relative;
    background: linear-gradient(160deg,#e5453f,#c81f1f);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px -3px rgba(200,31,31,.5);
}

.ip-fab__dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--ip-live);
    border: 2px solid #fff;
}

    .ip-fab__dot.is-off { background: var(--ip-off) }

    .ip-fab__dot::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 999px;
        border: 2px solid var(--ip-live);
        opacity: .55;
        animation: ip-pulse 2.2s ease-out infinite;
    }

    .ip-fab__dot.is-off::after { display: none }

@keyframes ip-pulse {
    0% { transform: scale(.7); opacity: .6 }
    70% { transform: scale(1.5); opacity: 0 }
    100% { opacity: 0 }
}

/* ══════════════════════════════════════════════════════════════════
   ★ 모바일 대응 — 내용은 PC와 100% 동일, "실제 크기"만 키웁니다 ★
   ------------------------------------------------------------------
   왜 미디어쿼리가 아니라 zoom 인가:
     아이필립 사이트는 viewport 태그가 없는 PC 고정폭입니다.
     이 경우 브라우저는 페이지를 1200px로 그린 뒤 화면에 맞춰 통째로
     축소하므로, CSS가 보는 폭은 폰에서도 여전히 1200px 입니다.
     → @media (max-width:480px) 는 폰에서 절대 발동하지 않습니다.
   zoom 은 transform:scale 과 달리 레이아웃 계산까지 함께 커지므로
   position:fixed 좌표가 어긋나지 않습니다. (transform 은 어긋납니다)
   ※ 항목을 줄이거나 감추지 않습니다. PC와 같은 폼 그대로입니다.
══════════════════════════════════════════════════════════════════ */
:root { --ipk: 1 }
/* JS가 배율을 넣습니다 (PC는 1) */
.ip-fab { zoom: var(--ipk) }
.ip-overlay { zoom: var(--ipk) }

    .ip-overlay, .ip-overlay * { box-sizing: border-box }
        /* 없으면 팝업이 화면 폭을 넘김 */

        /* ★ 크롬 "글자 자동 확대(font boosting)" 차단 ★
   viewport 태그가 없는 페이지에서 크롬은 본문 글자를 임의로 부풀립니다.
   그대로 두면 라벨만 2배로 튀어 레이아웃이 망가집니다 (실측 확인됨). */
        .ip-fab, .ip-fab *, .ip-overlay, .ip-overlay * {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

/* 팝업이 떠 있는 동안에는 플로팅 버튼을 감춥니다 (딤 너머로 비쳐 산만) */
body.ip-modal-open .ip-fab { display: none }

/* 좁은 화면 규칙 — 미디어쿼리 대신 JS가 붙이는 .ip-narrow 로 제어.
   ※ 모바일에서도 "아이필립 톡" 글씨를 그대로 노출 · 두 줄로 접습니다. */
.ip-narrow .ip-fab { padding: 7px 7px 7px 15px }
.ip-narrow .ip-fab__tx { margin-right: 11px; max-width: 132px }
.ip-narrow .ip-fab__t2 { white-space: normal; line-height: 1.3 }

/* ---------- 2. 팝업 오버레이 · 틀 ---------- */
.ip-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(16,19,23,.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: none;
    place-items: center;
    padding: 24px;
    color: var(--ip-ink-2);
    font-size: 14px;
    text-align: left;
}

    .ip-overlay.is-open { display: grid }

/* 래퍼 : 높이 제한과 X 버튼을 담당. 스크롤은 안 합니다.
   ★ max-height 는 JS(ipFit)가 실측해서 px 로 넣습니다. */
.ip-modal-wrap {
    position: relative;
    width: min(900px,100%);
    max-height: calc(88vh / var(--ipk,1)); /* JS가 못 돌 때의 보험값 */
    display: flex;
    border-radius: 20px;
    overflow: hidden; /* 스크롤바가 둥근 모서리 밖으로 삐져나오지 않게 */
    box-shadow: 0 40px 80px -20px rgba(10,12,16,.4);
}

/* 실제 스크롤 영역 */
.ip-modal {
    width: 100%;
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    scrollbar-width: thin;
    scrollbar-color: #c9ced6 transparent;
}

    .ip-modal::-webkit-scrollbar { width: 9px; background: transparent }
    .ip-modal::-webkit-scrollbar-track { background: transparent }
    .ip-modal::-webkit-scrollbar-thumb { background: #c9ced6; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
    .ip-modal::-webkit-scrollbar-corner { background: transparent }
    .ip-modal::-webkit-scrollbar-button { display: none; width: 0; height: 0 }
    .ip-modal::-webkit-scrollbar-thumb:hover { background: #aeb5bf; background-clip: content-box }

.ip-modal__l { grid-column: 1; grid-row: 1; }
.ip-modal__r { grid-column: 2; grid-row: 1; }

/* 닫기 버튼 — 래퍼 기준 위치라 스크롤과 무관 */
.ip-overlay .ip-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 0;
    background: #f2f4f7;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ip-sub);
    box-shadow: 0 2px 8px rgba(20,23,27,.12);
}

    .ip-overlay .ip-x:hover { background: #e8ebef; color: var(--ip-ink) }

/* ---------- 3. 팝업 좌측 (안내) — 주문서 결제 정보 상자 톤 ---------- */
.ip-modal__l {
    padding: 28px 24px;
}

/* 넓은 화면: 왼쪽 안내는 오른쪽 폼을 스크롤해도 그 자리에 (바탕 · 경계선은 .ip-modal 이 그림) */
body:not(.ip-narrow) .ip-modal {
    background: linear-gradient(90deg, var(--ip-box) 0 299px, var(--ip-line) 299px 300px, #fff 300px);
}

body:not(.ip-narrow) .ip-modal__l {
    position: sticky;
    top: 0;
    align-self: start;
}

.ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    background: var(--ip-red-tint);
    color: var(--ip-red-d);
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    border-radius: 6px;
}

.ip-tit {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 14px 0 8px;
    line-height: 1.4;
    color: var(--ip-ink)
}

.ip-txt {
    font-size: 13px;
    color: var(--ip-sub);
    line-height: 1.75;
    word-break: keep-all
}

    .ip-txt b { color: var(--ip-red-d); font-weight: 700 }

.ip-hours {
    margin-top: 20px;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
}

.ip-hours__h {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 10px;
    color: var(--ip-ink)
}

.ip-hours__r {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--ip-ink)
}

    .ip-hours__r + .ip-hours__r { border-top: 1px solid var(--ip-line-soft) }
    .ip-hours__r span { color: var(--ip-sub); flex: none }
    .ip-hours__r b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap }
    .ip-hours__r.is-off b { color: var(--ip-red) }

.ip-memo {
    margin-top: 12px;
    font-size: 12px;
    color: var(--ip-mut);
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
    word-break: keep-all
}

    .ip-memo b { color: var(--ip-sub); font-weight: 700 }

    .ip-memo::before {
        content: '!';
        position: absolute;
        left: 0;
        top: 2px;
        width: 13px;
        height: 13px;
        border-radius: 999px;
        background: #c4c8ce;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        line-height: 13px;
        text-align: center;
    }

.ip-tel {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ip-red-tint);
}

.ip-tel__lb {
    font-size: 12px;
    color: var(--ip-sub);
    font-weight: 700;
}

.ip-tel__no {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.6px;
    margin-top: 2px;
    color: var(--ip-red-d);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

/* ---------- 4. 팝업 우측 (폼) ---------- */
.ip-modal__r {
    padding: 0 24px 24px;
    position: relative;
    min-width: 0;
}

/* 머리: 제목 + 필수 항목 진행 — 스크롤해도 위에 붙음 (주문서 칩 줄 역할) */
.ip-fhd {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -24px 14px;
    padding: 22px 64px 12px 24px; /* 오른쪽은 닫기 버튼 자리 */
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--ip-line);
}

.ip-fh {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.35;
    color: var(--ip-ink)
}

.ip-prog {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.ip-prog__t {
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ip-mut);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

    .ip-prog__t b { color: var(--ip-red-d); font-weight: 800 }

.ip-prog__bar {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 4px;
    background: #eef0f2;
    overflow: hidden;
}

    .ip-prog__bar i {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: var(--ip-red);
        transition: width .3s ease;
    }

/* 4-1. 섹션 카드 : [번호] 제목 [필수/선택/완료] */
.ip-sec {
    margin: 0 0 12px;
    padding: 18px 20px;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.ip-sec__hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    min-width: 0;
}

.ip-sec__n {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ip-ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background .2s;
}

.ip-sec.is-done .ip-sec__n { background: var(--ip-red); }

.ip-sec__tt {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.35;
    color: var(--ip-ink);
    white-space: nowrap;
    cursor: default;
}

.ip-st {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

    .ip-st[data-st="need"] { background: var(--ip-red-tint); color: var(--ip-red); }
    .ip-st[data-st="opt"] { background: var(--ip-bar); color: var(--ip-mut); }
    .ip-st[data-st="done"] { background: var(--ip-bar); color: var(--ip-ink-2); }
    .ip-st svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* 빠진 섹션 (제출을 눌렀을 때) */
.ip-sec.is-err {
    border-color: var(--ip-red);
    box-shadow: 0 0 0 3px var(--ip-red-ring);
    animation: ipShake .42s ease;
}

@keyframes ipShake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .ip-sec.is-err { animation: none; }
}

/* 4-2. 이름표 | 입력칸 줄 (주문서 eo_table 줄) */
.ip-rows { display: grid; }

.ip-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
    padding: 10px 0;
    border-top: 1px solid var(--ip-line-soft);
}

    .ip-row:first-child { border-top: 0; padding-top: 0; }
    .ip-row:last-child { padding-bottom: 0; }

.ip-fl {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ip-sub);
    word-break: keep-all;
    cursor: pointer;
}

    .ip-fl em, .ip-agree__tx em {
        font-style: normal;
        color: var(--ip-red);
        margin-left: 2px
    }

.ip-fv { min-width: 0; }

/* 입력칸 공통 */
.ip-overlay .ip-fi {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--ip-btn-line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ip-ink);
    box-shadow: none;
    outline: 0;
    transition: border-color .14s, box-shadow .14s;
    -webkit-appearance: none;
    appearance: none;
}

    .ip-overlay .ip-fi:hover { border-color: var(--ip-btn-line-h); }

    .ip-overlay .ip-fi:focus {
        border-color: var(--ip-red);
        box-shadow: 0 0 0 3px var(--ip-red-ring);
    }

    .ip-overlay .ip-fi::placeholder { color: var(--ip-ph); opacity: 1; }

.ip-overlay textarea.ip-fi {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.ip-cnt {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    color: var(--ip-mut);
    font-variant-numeric: tabular-nums;
}

    .ip-cnt.is-max { color: var(--ip-red); font-weight: 700; }

/* 전화번호 3칸 */
.ip-phone {
    display: grid;
    grid-template-columns: 72px auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

    .ip-phone .ip-fi { text-align: center; padding: 0 6px; }

.ip-dash { color: var(--ip-mut); font-size: 14px; }

/* 빠진 칸 강조 */
.ip-overlay .ip-fi.is-miss {
    border-color: var(--ip-red);
    box-shadow: 0 0 0 3px var(--ip-red-ring);
    background: #fffafa;
}

/* 4-3. 첨부파일 — 신규작업의뢰(request_order.aspx) [첨부파일] 끌어 놓기 상자 (td.fx-rq-file · .fx-drop) 모양
        상자 1개 + 고른 파일 목록. 강조색은 톡 빨강 (2026-10-20 사용자 결정) */
.ip-drop {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1.5px dashed #c9cfd8;
    border-radius: 12px;
    background: var(--ip-box);
    transition: border-color .15s, background .15s, box-shadow .15s;
}

    .ip-drop:hover, .ip-drop.is-drag { border-color: var(--ip-red); background: #fff7f7; }
    .ip-drop.is-drag { box-shadow: 0 0 0 3px var(--ip-red-ring); }
    .ip-drop:focus-within { border-color: var(--ip-red); box-shadow: 0 0 0 3px var(--ip-red-ring); }

    /* 상자 전체를 덮는 투명 선택 칸 — 눌러도 · 끌어다 놓아도 이 칸이 받음 */
    .ip-overlay .ip-drop > .ip-drop__pick {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
        font-size: 0;
    }

    .ip-drop .ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid var(--ip-line);
        color: var(--ip-red);
    }

        .ip-drop .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

    .ip-drop .tx { min-width: 0; word-break: keep-all; }
    .ip-drop .tx b { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ip-ink); letter-spacing: -.3px; }
    .ip-drop .tx small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ip-mut); }
    .ip-drop .tx small.is-over { color: var(--ip-red); font-weight: 700; }

    /* 파일이 있을 때 */
    .ip-drop.has { border-style: solid; border-color: var(--ip-red-line); background: #fffafa; }
    .ip-drop.has .tx b::after { content: " · 파일 더 추가"; font-weight: 500; color: var(--ip-mut); }
    /* 4개가 다 찼을 때 — 상자 잠김 */
    .ip-drop.is-full { border-style: solid; border-color: var(--ip-line); background: var(--ip-bar); }
    .ip-drop.is-full .tx b::after { content: none; }
    .ip-drop.is-full .ic { color: var(--ip-mut); }
    .ip-overlay .ip-drop.is-full > .ip-drop__pick { cursor: not-allowed; }
    .ip-drop.is-full:hover { border-color: var(--ip-line); background: var(--ip-bar); }
    /* 용량 초과 */
    .ip-drop.is-over { border-color: var(--ip-red); background: #fff6f5; }

.ip-sec.is-done .ip-drop:not(.is-over):not(.is-full) { border-color: var(--ip-red-line); }

/* 고른 파일 목록 (신규작업의뢰 .fx-drop .nm 줄 모양) */
.ip-overlay .ip-flist {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

    .ip-overlay .ip-flist[hidden] { display: none; }

    .ip-overlay .ip-flist li {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 8px 8px 8px 12px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid var(--ip-line);
        list-style: none;
    }

    .ip-flist li > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ip-red); stroke-width: 1.8; stroke-linejoin: round; }
    .ip-flist li b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ip-ink); }
    .ip-flist li em { flex: none; font-size: 12.5px; font-style: normal; line-height: 1; color: var(--ip-mut); font-variant-numeric: tabular-nums; }

    .ip-overlay .ip-flist li button {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--ip-mut);
        cursor: pointer;
    }

        .ip-overlay .ip-flist li button:hover { background: var(--ip-bar); color: var(--ip-ink); }
        .ip-overlay .ip-flist li button:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ip-red-ring); }
        .ip-flist li button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 안내 (신규작업의뢰 ul.fx-hint) */
.ip-overlay .ip-hint {
    display: grid;
    gap: 3px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

    .ip-overlay .ip-hint li {
        position: relative;
        padding-left: 20px;
        font-size: 12.5px;
        line-height: 1.55;
        color: var(--ip-sub);
        letter-spacing: -.2px;
        word-break: keep-all;
        list-style: none;
    }

        .ip-hint li::before {
            content: "i";
            position: absolute;
            left: 0;
            top: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border: 1.3px solid #a3a9b1;
            border-radius: 50%;
            font: 700 9.5px/1 Georgia, serif;
            color: #8e949c;
        }

        .ip-hint li b { color: var(--ip-ink); font-weight: 700; }

/* 끌어 놓기 상자를 못 쓰는 브라우저(파일 옮겨 담기 미지원)만: 예전처럼 파일칸 4개를 2열로 (.ip-files 가 보일 때) */
.ip-overlay .ip-files[hidden] { display: none; }

.ip-files {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.ip-overlay .ip-file {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--ip-btn-line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 34px;
    color: var(--ip-sub);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

    .ip-overlay .ip-file:hover { border-color: var(--ip-btn-line-h); }

    .ip-overlay .ip-file:focus {
        outline: 0;
        border-color: var(--ip-red);
        box-shadow: 0 0 0 3px var(--ip-red-ring);
    }

    .ip-overlay .ip-file.is-on {
        border-color: var(--ip-red-line);
        color: var(--ip-ink);
        font-weight: 600;
    }

    .ip-overlay .ip-file::file-selector-button {
        height: 34px;
        margin: 0 10px 0 0;
        padding: 0 12px;
        border: 1px solid var(--ip-btn-line);
        border-radius: 8px;
        background: #fff;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ip-ink);
        cursor: pointer;
    }

    .ip-overlay .ip-file::-webkit-file-upload-button {
        height: 34px;
        margin: 0 10px 0 0;
        padding: 0 12px;
        border: 1px solid var(--ip-btn-line);
        border-radius: 8px;
        background: #fff;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ip-ink);
        cursor: pointer;
    }

    .ip-overlay .ip-file:hover::file-selector-button { background: #f7f8fa; }

/* 4-4. 자동등록방지 */
/* 2026-10-27 : 새 그림 168×52(시안 addfran.html) + [새 그림] 버튼 */
.ip-cap {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.ip-cap__img {
    height: 52px;
    border: 1px solid var(--ip-btn-line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--ip-bar);
    overflow: hidden;
}

    .ip-cap__img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border: 0;
    }

.ip-cap .ip-fi {
    letter-spacing: .2em;
}

    .ip-cap .ip-fi::placeholder {
        letter-spacing: 0;
    }

.ip-cap__new {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--ip-btn-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ip-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

    .ip-cap__new:hover { background: #f7f8fa; }

/* 4-5. 동의 — 약관 상자 + 체크 줄 (주문서 '모두 읽었어요' 줄) */
.ip-agree {
    margin-top: 14px;
    border: 1px solid var(--ip-line);
    border-radius: 12px;
    background: var(--ip-box);
    overflow: hidden;
    transition: border-color .2s, background .2s;
}

.ip-terms {
    max-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--ip-line);
    font-size: 12px;
    color: var(--ip-sub);
    line-height: 1.75;
    outline: 0;
}

    .ip-terms:focus-visible { box-shadow: inset 0 0 0 2px var(--ip-red-ring); }

    .ip-terms h4 {
        font-size: 12.5px;
        font-weight: 700;
        color: var(--ip-ink);
        margin-bottom: 6px
    }

    .ip-terms h5 {
        font-size: 12px;
        font-weight: 700;
        color: var(--ip-ink-2);
        margin: 9px 0 3px
    }

    .ip-terms ul { padding-left: 15px; }
    .ip-terms li { margin-bottom: 2px; list-style: disc; }

.ip-agree__ln {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    user-select: none;
}

.ip-agree__tx {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ip-ink);
    word-break: keep-all;
}

/* 체크 상자 (원본 input 그대로 · 모양만) */
.ip-overlay .ip-agree__ln input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #c4c8ce;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .12s, background .12s;
}

    .ip-overlay .ip-agree__ln input[type="checkbox"]:checked {
        border-color: var(--ip-red);
        background: var(--ip-red) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center;
    }

    .ip-overlay .ip-agree__ln input[type="checkbox"]:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px var(--ip-red-ring);
    }

.ip-agree:has(input:checked) {
    border-color: var(--ip-red-line);
    background: var(--ip-red-tint);
}

.ip-agree.is-miss {
    border-color: var(--ip-red);
    box-shadow: 0 0 0 3px var(--ip-red-ring);
}

/* ---------- 5. 남은 필수 칸 · 제출 버튼 ---------- */
.ip-left {
    margin: 4px 0 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ip-red);
    min-height: 18px;
}

    .ip-left.is-ok { color: var(--ip-ink-2); }

.ip-overlay .ip-submit {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(160deg,#e5453f,#c81f1f);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(190,25,25,.5);
    transition: filter .15s;
}

    .ip-overlay .ip-submit:hover { filter: brightness(1.05) }
    .ip-overlay .ip-submit:disabled { filter: grayscale(.25) brightness(.95); cursor: wait; }
    .ip-overlay .ip-submit:focus-visible { outline: 2px solid var(--ip-red-d); outline-offset: 2px; }

.ip-fnote {
    font-size: 12px;
    color: var(--ip-mut);
    text-align: center;
    margin-top: 10px
}

/* ---------- 6. 좁은 화면 (.ip-narrow — JS가 붙임) ---------- */
.ip-narrow .ip-modal { grid-template-columns: minmax(0, 1fr) }
.ip-narrow .ip-modal-wrap { max-height: calc(88vh / var(--ipk,1)) }

.ip-narrow .ip-x { top: 12px; right: 12px }

.ip-narrow .ip-modal__l {
    background: var(--ip-box);
    grid-column: 1/-1;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid var(--ip-line);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px 18px 20px;
}

.ip-narrow .ip-modal__r {
    grid-column: 1/-1;
    grid-row: 2;
    padding: 0 14px 20px;
}

.ip-narrow .ip-fhd {
    margin: 0 -14px 12px;
    padding: 16px 56px 10px 16px;
}

.ip-narrow .ip-fh { font-size: 18px; }
.ip-narrow .ip-sec { padding: 16px 14px; border-radius: 14px; }
.ip-narrow .ip-sec__tt { font-size: 15.5px; }

/* 이름표를 입력칸 위로 */
.ip-narrow .ip-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

.ip-narrow .ip-overlay .ip-fi { font-size: 16px; } /* 16px 미만이면 iOS가 화면을 자동 확대함 */

.ip-narrow .ip-phone { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1.15fr); }

/* (예비) 파일칸 4개가 보일 때 좁은 화면에서도 2열 유지 */
.ip-narrow .ip-files { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
.ip-narrow .ip-drop { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 14px; }
.ip-narrow .ip-drop .ic { width: 36px; height: 36px; }
.ip-narrow .ip-drop.has .tx b::after { content: none; }
.ip-narrow .ip-overlay .ip-file::file-selector-button { padding: 0 8px; margin-right: 6px; }
.ip-narrow .ip-overlay .ip-file::-webkit-file-upload-button { padding: 0 8px; margin-right: 6px; }

.ip-narrow .ip-cap { grid-template-columns: 136px minmax(0, 1fr); }
.ip-narrow .ip-cap__img { height: 42px; }
.ip-narrow .ip-cap__new { grid-column: 1 / -1; justify-self: start; height: 34px; }
