/* 비교창 안에서만 적용하는 화면 스타일입니다. 작은 화면에서는 창 안을 스크롤하고 기존 상담 버튼과 겹쳐 눌리지 않도록 합니다. */
/* 모바일 공통 스타일이 닫힌 창까지 보이게 하지 않도록 닫힘 상태를 명시합니다. */
.kg51-dialog:not([open]){display:none!important}
.kg51-entry{border:1px solid #6655f0;border-radius:8px;color:#5644db;background:#f5f3ff;padding:9px 14px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;margin:8px 0}.kg51-dialog{padding:0;border:0;border-radius:18px;width:min(920px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);color:#202332;background:#fff;box-shadow:0 24px 80px #15102a40}.kg51-dialog::backdrop{background:#17132988}.kg51-dialog *{box-sizing:border-box}.kg51-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:360px;font:15px/1.65 Arial,'Malgun Gothic',sans-serif}.kg51-frame header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px 12px;gap:12px}.kg51-frame h2{margin:0;font-size:23px;line-height:1.45;word-break:keep-all}.kg51-frame h3{font-size:18px;line-height:1.55;margin:12px 0}.kg51-frame p{margin:8px 0}.kg51-eyebrow{font-size:12px;color:#6655f0;font-weight:700}.kg51-frame button{font:inherit;cursor:pointer;border:1px solid #d9dce5;background:#fff;color:#292e41;border-radius:8px;padding:8px 12px}.kg51-frame button:focus-visible,.kg51-entry:focus-visible,.kg51-choice:focus-within{outline:3px solid #917ff5;outline-offset:2px}.kg51-frame button:disabled{cursor:default;background:#ececf2;color:#747583}.kg51-frame .kg51-close{font-size:28px;line-height:1;min-width:44px;min-height:44px;border:0}.kg51-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 26px}.kg51-slot{padding:12px;border:1px solid #dcd6ff;background:#f8f7ff;border-radius:10px;display:flex;gap:10px;justify-content:space-between;align-items:center;min-width:0}.kg51-slot span{overflow-wrap:anywhere;font-size:13px}.kg51-slot button{flex-shrink:0;font-size:12px;padding:5px 7px}.kg51-frame .kg51-status{padding:0 26px;color:#625d77;font-size:13px;min-height:22px}.kg51-body{overflow:auto;padding:0 26px 24px;overscroll-behavior:contain}.kg51-help{color:#687084;font-size:13px}.kg51-choice{display:flex;align-items:center;gap:14px;padding:16px;margin-top:10px;border:1px solid #e0e2ea;border-radius:10px;cursor:pointer}.kg51-choice:has(input:checked){border-color:#6655f0;background:#f7f5ff}.kg51-choice input{width:20px;height:20px;accent-color:#6655f0;flex-shrink:0}.kg51-choice-detail{display:flex;flex-direction:column;gap:2px;min-width:0}.kg51-choice strong{font-size:16px;overflow-wrap:anywhere}.kg51-choice small{color:#6b6481;font-size:12px}.kg51-frame footer{padding:14px 26px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e7e7f0;background:#fff}.kg51-frame .kg51-compare:not(:disabled){background:#6655f0;color:#fff;border-color:#6655f0}.kg51-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:14px 0;font-size:14px}.kg51-table caption{text-align:left;font-size:12px;color:#687084;margin-bottom:8px}.kg51-table th,.kg51-table td{padding:12px 10px;border-bottom:1px solid #e7e7f0;text-align:left;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}.kg51-table th:first-child{width:25%}.kg51-table thead{background:#f4f3f9}.kg51-table .kg51-different{background:#faf9ff}.kg51-recommendation{background:#f3f0ff;border-radius:12px;padding:16px;margin:18px 0}.kg51-body details{padding:12px 0;border-bottom:1px solid #e7e7f0;font-size:13px}.kg51-body summary{cursor:pointer;font-weight:700}.kg51-sources{font-size:12px;color:#63677a;margin-top:20px}.kg51-sources a{display:block;color:#5947d7;text-decoration:underline;margin:6px 0}.kg51-frame [hidden]{display:none!important}@media(max-width:600px){.kg51-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.kg51-frame{max-height:calc(100dvh - 16px)}.kg51-frame header{padding:16px 14px 10px}.kg51-frame h2{font-size:19px}.kg51-slots{padding:0 14px;gap:6px}.kg51-slot{padding:8px;flex-direction:column;align-items:flex-start;gap:4px}.kg51-body{padding:0 14px 16px}.kg51-frame .kg51-status{padding:0 14px;font-size:12px}.kg51-frame footer{padding:12px 14px}.kg51-table{font-size:12px}.kg51-table th,.kg51-table td{padding:9px 6px}.kg51-table th:first-child{width:26%}.kg51-frame h3{font-size:16px}.kg51-choice{padding:12px}.kg51-choice strong{font-size:14px}}

/* 옵션도 두 라인업을 나란히 보되 휴대폰에서는 한 줄씩 표시하여 긴 이름을 잘리지 않게 합니다. */
.kg51-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.kg51-option-grid fieldset{min-width:0;border:1px solid #e2deef;border-radius:10px;padding:12px}.kg51-option-grid legend{float:none;width:auto;border:0;padding:0 6px;font-size:13px;font-weight:700}.kg51-option{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin:10px 0;cursor:pointer}.kg51-option input{flex-shrink:0;width:18px;height:18px;margin-top:3px;accent-color:#6655f0}.kg51-option span{overflow-wrap:anywhere}.kg51-choice:has(input:disabled){background:#f5f5f7;color:#767684;cursor:default}.kg51-frame{min-height:0}.kg51-body{min-height:0}.kg51-dialog{margin:auto;position:fixed;inset:0}.kg51-frame header,.kg51-frame footer,.kg51-slots,.kg51-status{flex-shrink:0}@media(max-width:600px){.kg51-option-grid{grid-template-columns:1fr}.kg51-option-grid fieldset{padding:8px 10px}}

/* 라인업 선택 가까이에 안내와 강조 버튼을 묶습니다. 좁은 화면에서는 버튼을 아래 한 줄로 배치해 글자가 잘리지 않게 합니다. */
.kg51-notice{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin:0 0 12px;border:1px solid #dcd6ff;border-radius:12px;background:#f7f5ff;text-align:left}
.kg51-notice-copy{min-width:0}.kg51-notice-copy strong{display:block;color:#30285b;font-size:16px;font-weight:700;line-height:1.5;word-break:keep-all}.kg51-notice-copy p{margin:5px 0 0;color:#655d7d;font-size:13px;line-height:1.5;word-break:keep-all}
.kg51-notice .kg51-entry{position:static;float:none;flex-shrink:0;margin:0;min-height:44px;padding:11px 16px;background:#6655f0;color:#fff;border:1px solid #6655f0;font-size:14px;white-space:nowrap;transition:background .15s}
.kg51-notice .kg51-entry:hover{background:#5543dc}.kg51-notice-mobile{margin:12px 0 0;flex-direction:column;align-items:stretch;gap:12px}.kg51-notice-mobile .kg51-entry{width:100%}
@media(max-width:1100px){.kg51-notice{flex-direction:column;align-items:stretch;gap:12px}.kg51-notice .kg51-entry{width:100%}}

/* 선택한 라인업 이름을 쉽게 찾도록 상단 카드 여백과 글자를 키우고 굵게 표시합니다. 모바일에서도 긴 이름은 자연스럽게 줄바꿈합니다. */
.kg51-slot{padding:16px;min-height:78px;border-color:#c3b9f5;background:#f4f1ff}
.kg51-slot > span{font-size:16px;font-weight:700;line-height:1.5;color:#30285b}
@media(max-width:600px){.kg51-slot{padding:12px;min-height:86px}.kg51-slot > span{font-size:15px}}

/* 비교를 마친 뒤 기존 상담창을 열 수 있도록 돌아가기 왼쪽에 강조 버튼을 둡니다. 좁은 화면에서도 두 버튼을 함께 표시합니다. */
.kg51-frame footer .kg51-counsel{background:#6655f0;color:#fff;border-color:#6655f0;font-weight:700;min-height:44px}
.kg51-frame footer .kg51-counsel:hover{background:#5543dc}
@media(max-width:600px){.kg51-frame footer .kg51-counsel,.kg51-frame footer .kg51-back{padding:10px;font-size:13px;white-space:nowrap}}
