/* 수출 사이트: 상단바(로그인/언어선택) + 딜러 마이페이지 */

/* ---- 구글 번역 기본 UI 숨김 ---- */
body { top: 0 !important; }
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .skiptranslate > iframe { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; }

/* ---- 상단바 ---- */
.ik-topbar { background: #2e211a; border-bottom: 1px solid #e2e4e8; font-size: 13px; position: relative; z-index: 50; }
.ik-topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 36px; display: flex; align-items: center; justify-content: flex-end; }
.ik-util { list-style: none; margin: 0 14px 0 0; padding: 0; display: flex; }
.ik-util li { margin-left: 14px; }
.ik-util a { font-weight: 500; color: #d9c7ae; text-decoration: none; }
.ik-util a:hover { text-decoration: underline; }

.ik-lang { position: relative; }
.ik-lang-btn { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid #c9ccd2; border-radius: 4px; background: #fff; color: #222; font-size: 13px; cursor: pointer; }
.ik-lang-globe { font-size: 14px; line-height: 1; }
.ik-lang-arrow { font-size: 10px; color: #777; }
.ik-lang-list { display: none; position: absolute; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; min-width: 190px; max-height: 70vh; overflow-y: auto; list-style: none; background: #fff; border: 1px solid #c9ccd2; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.ik-lang.open .ik-lang-list { display: block; }
.ik-lang-list li { padding: 7px 16px; font-size: 14px; color: #222; cursor: pointer; white-space: nowrap; }
.ik-lang-list li:hover { background: #eef2ff; }
.ik-lang-list li.on { font-weight: bold; color: #1a4fd6; }

@media (max-width: 768px) {
    .ik-topbar-in { height: 34px; padding: 0 10px; }
    .ik-util { margin-right: 8px; }
    .ik-util li { margin-left: 10px; }
}

/* ---- 딜러/관리자 매물관리 페이지 ---- */
.ikd-wrap { max-width: 1100px; margin: 24px auto 60px; padding: 0 16px; font-size: 15px; color: #222; }
.ikd-wrap h2 { font-size: 24px; margin: 0 0 16px; }
.ikd-card { background: #fff; border: 1px solid #dfe2e7; border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.ikd-card h3 { margin: 0 0 12px; font-size: 17px; }
.ikd-info { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ikd-info dt { color: #777; font-size: 13px; }
.ikd-info dd { margin: 2px 0 0; font-weight: bold; }
.ikd-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; color: #fff; background: #888; }
.ikd-badge.on { background: #1f9d55; }
.ikd-badge.off { background: #d64545; }
.ikd-notice { padding: 12px 14px; border-radius: 6px; background: #fff7e0; border: 1px solid #f0d78a; color: #6b5200; margin-bottom: 16px; }
.ikd-btn { display: inline-block; padding: 8px 16px; border: 0; border-radius: 4px; background: #1a4fd6; color: #fff; font-size: 14px; cursor: pointer; text-decoration: none; }
.ikd-btn.gray { background: #6b7280; }
.ikd-btn.red { background: #d64545; }
.ikd-btn.sm { padding: 4px 10px; font-size: 12px; }
.ikd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ikd-table th, .ikd-table td { padding: 9px 8px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle; }
.ikd-table th { background: #f4f5f7; font-weight: 600; white-space: nowrap; }
.ikd-table img { width: 80px; height: 56px; object-fit: cover; border-radius: 4px; background: #eee; }
.ikd-form .row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ikd-form .col { flex: 1 1 200px; min-width: 160px; }
.ikd-form label.t { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.ikd-form input[type=text], .ikd-form input[type=number], .ikd-form input[type=date], .ikd-form select, .ikd-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c9ccd2; border-radius: 4px; font-size: 14px; background: #fff; }
.ikd-form textarea { min-height: 120px; }
.ikd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ikd-thumbs label { position: relative; display: block; }
.ikd-thumbs img { width: 96px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.ikd-thumbs input { position: absolute; top: 4px; left: 4px; }

@media (max-width: 768px) {
    .ikd-table.resp thead { display: none; }
    .ikd-table.resp td { display: block; border: 0; padding: 3px 0; }
    .ikd-table.resp tr { display: block; border-bottom: 1px solid #e5e7eb; padding: 8px 0; }
}

/* ---- 차량 상세: 딜러 연락 버튼 (전화 / WhatsApp / 카카오톡) ---- */
.ik-contact { padding: 18px 0; }
.ik-contact-tit { margin: 0 0 10px; font-size: 16px; font-weight: bold; color: #222; }
.ik-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ik-cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 190px; padding: 14px 22px; border-radius: 6px; font-size: 16px; font-weight: bold; text-decoration: none; color: #fff; box-sizing: border-box; }
.ik-cbtn:hover { opacity: .9; color: #fff; text-decoration: none; }
.ik-cbtn-ic { font-size: 20px; line-height: 1; }
.ik-cbtn-tel { background: #1a4fd6; }
.ik-cbtn-wa { background: #25d366; }
.ik-cbtn-kakao { background: #fee500; color: #3c1e1e; }
.ik-cbtn-kakao:hover { color: #3c1e1e; }
.ik-cbtn-fb { background: #1877f2; }
.ik-cbtn-ig { background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%); }
.ik-contact-sec .ik-contact-btns { flex-direction: column; }
.ik-contact-sec .ik-cbtn { width: 100%; }
.ik-contact-wrap { flex: 1 1 100%; }

/* ---- 번역(영어/독일어 등) 시 글자가 길어져도 검색 필터가 겹치지 않게 ---- */
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk { height: auto; min-height: 30px; padding: 4px 0; flex-wrap: wrap; row-gap: 4px; }
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk p.tit { width: auto; min-width: 60px; white-space: normal; }
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk div.chk_wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk div.chk_wrap select { width: auto; min-width: 85px; max-width: 150px; }
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk div.radio_wrap { flex-wrap: wrap; align-items: center; }
html:not([data-ik-lang="ko"]) section.car_search div.car_searchoption div.car_opt div.opt_chk div.radio_wrap div.radio_list label { white-space: normal; }
html:not([data-ik-lang="ko"]) section.car_search div.search_btn select { width: auto; max-width: 160px; }

/* 모바일 상세 하단 고정바: WhatsApp */
div.bottom_counsel div.inner_wrap ul li.wa { background: #25d366; border-color: #25d366; }
div.bottom_counsel div.inner_wrap ul li.wa a { color: #fff; }

/* ---- 회원가입/정보수정 폼 ---- */
.register-form { padding: 10px 12px 50px; }
.register-form .register-box { max-width: 860px; margin: 26px auto 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .09); overflow: hidden; counter-reset: ikstep; }
.register-form .eyoom-form .register-box > header { display: flex; align-items: center; padding: 18px 28px; background: var(--main-color); color: #fff; border: 0; }
.register-form .eyoom-form .register-box > header.border-top { border-top: 0; }
.register-form .eyoom-form .register-box > header h5 { margin: 0; color: #fff; font-size: 18px; letter-spacing: -.2px; }
.register-form .eyoom-form .register-box > header h5 strong { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.register-form .eyoom-form .register-box > header h5 strong:before { counter-increment: ikstep; content: counter(ikstep); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--main-color); font-size: 14px; font-weight: 800; }
.register-form .eyoom-form .register-box > fieldset { padding: 26px 28px 8px; background: #fff; }
.register-form .eyoom-form .register-box > fieldset + header { margin-top: 6px; }
.register-form .eyoom-form .label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: #333; }
.register-form .eyoom-form section { margin-bottom: 18px; }
.register-form .eyoom-form .input input,
.register-form .eyoom-form .select select,
.register-form .eyoom-form .textarea textarea {  border: 1px solid #d5dae0; border-radius: 10px; font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.register-form .eyoom-form .input input:focus { border-color: var(--main-color); box-shadow: 0 0 0 3px var(--main-color-20); outline: 0; }
.register-form .eyoom-form .input .icon-prepend { color: #8b95a1; }
.register-form .eyoom-form .input-button .button { border-radius: 0 10px 10px 0; background: var(--main-color-10); color: var(--main-color); font-weight: 700; }
.register-form .eyoom-form .note { margin-top: 6px; font-size: 12.5px; color: #7a8591; }
.register-form .eyoom-form .alert { border-radius: 10px; }
.register-form .eyoom-form .register-box > footer { padding: 6px 28px 34px; background: #fff; border: 0; }
.register-form #btn_submit { display: block; width: 100%; max-width: 360px; height: 54px; margin: 8px auto 0; border: 0; border-radius: 12px; background: var(--main-color); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 1px; cursor: pointer; transition: filter .15s, transform .05s; }
.register-form #btn_submit:hover { filter: brightness(.93); }
.register-form #btn_submit:active { transform: translateY(1px); }
.register-form #btn_remove { height: 54px; border-radius: 12px; }

/* 판매 대상 (카드형 라디오) */
.ik-saletype { display: flex; flex-wrap: wrap; gap: 14px; }
.ik-sale-card { position: relative; flex: 1 1 260px; margin: 0; cursor: pointer; }
.ik-sale-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.ik-sale-in { display: block; padding: 18px 20px 18px 54px; border: 2px solid #dde1e6; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.ik-sale-in:before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #b8c0c8; border-radius: 50%; background: #fff; box-sizing: border-box; }
.ik-sale-in strong { display: block; font-size: 17px; color: #222; }
.ik-sale-in small { display: block; margin-top: 3px; font-size: 13px; color: #7a8591; }
.ik-sale-card:hover .ik-sale-in { border-color: var(--main-color-60); }
.ik-sale-card input:checked + .ik-sale-in { border-color: var(--main-color); background: var(--main-color-10); box-shadow: 0 0 0 3px var(--main-color-20); }
.ik-sale-card input:checked + .ik-sale-in:before { border-color: var(--main-color); background: radial-gradient(var(--main-color) 0 45%, #fff 50%); }
.ik-sale-card input:focus-visible + .ik-sale-in { outline: 2px solid var(--main-color); outline-offset: 2px; }

@media (max-width: 768px) {
    .register-form { padding: 0 0 40px; }
    .register-form .register-box { margin-top: 0; border-radius: 0; box-shadow: none; }
    .register-form .eyoom-form .register-box > header { padding: 15px 18px; }
    .register-form .eyoom-form .register-box > fieldset { padding: 20px 18px 4px; }
    .register-form .eyoom-form .register-box > footer { padding: 4px 18px 28px; }
}

/* 우측 "최근 본 차량": 사진 비율(정사각형·세로형 등)이 달라도 차량명이 잘리지 않게 사진을 4:3 으로 맞춘다 */
div#right_banner div.car_view div.img_wrap img { height: auto; aspect-ratio: 4 / 3; }

/* ikd-mobile-card: 마이페이지 '내 차량' 표 — 모바일에서는 항목 이름이 붙은 카드로 (사진·차량명 한 줄 + 항목별 줄) */
@media (max-width: 768px) {
    .ikd-table.resp tbody tr { display: grid; grid-template-columns: 88px 1fr; column-gap: 12px; row-gap: 6px; align-items: start; padding: 14px 0; }
    .ikd-table.resp tbody tr > td { grid-column: 1 / -1; position: relative; padding: 0 0 0 96px; min-height: 20px; line-height: 1.5; font-size: 14px; }
    .ikd-table.resp tbody tr > td:nth-child(1) { grid-column: 1; grid-row: 1; padding: 0; }
    .ikd-table.resp tbody tr > td:nth-child(2) { grid-column: 2; grid-row: 1; padding: 0; }
    .ikd-table.resp tbody tr > td:nth-child(1) img { width: 88px; height: 64px; }
    .ikd-table.resp tbody tr > td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 0; width: 88px; color: #8a8f98; font-size: 13px; }
    .ikd-table.resp tbody tr > td[data-label="노출(배너)"] { min-width: 0 !important; }
    .ikd-table.resp tbody tr > td:last-child { padding: 6px 0 0; white-space: normal !important; }
    .ikd-table.resp tbody tr > td:last-child .ikd-btn { padding: 8px 18px; font-size: 14px; }
    .ikd-table.resp tbody tr > td form input[type=text], .ikd-table.resp tbody tr > td form input[type=date] { max-width: 100%; box-sizing: border-box; margin-bottom: 4px; }
}
