/* 우측 상담 영역만 흰색 패널로 묶습니다. 본문·다른 상담창의 공통 스타일은 바꾸지 않습니다. */
aside.aside-counsel-panel {
  --aside-accent: #6655f0;
  --aside-top: clamp(16px, calc(100vh - 700px), 190px);
  left: calc(50% + 650px);
  top: var(--aside-top);
  width: 224px;
  max-height: calc(100vh - var(--aside-top) - 16px - var(--aside-bottom-keepout, 0px));
  padding: 18px 16px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid #e5e3ef;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(35, 29, 70, .08);
  color: #20212b;
  line-height: 1.5;
  transition: none;
}
.aside-counsel-panel *, #aside-counsel-toggle { box-sizing: border-box; transition: none; }
.aside-counsel-panel #common-aside-counsel { margin: 0; padding: 0 0 16px; background: transparent; border-radius: 0; box-shadow: none; }
.aside-counsel-panel #common-aside-counsel::before { content: ""; display: block; width: 24px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--aside-accent); }
.aside-counsel-panel #common-aside-counsel > h3 { margin: 0 0 7px; text-align: left; font-size: 20px; line-height: 1.35; letter-spacing: -.6px; font-weight: 750; }
.aside-counsel-panel #common-aside-counsel > p { margin: 0 0 18px; text-align: left; color: #626374; font-size: 13px; line-height: 1.55; }
.aside-counsel-panel #common-aside-counsel > dl { gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.aside-counsel-panel #common-aside-counsel > dl dt { flex: 0 0 34px; width: 34px; padding-top: 11px; color: #464655; }
.aside-counsel-panel #common-aside-counsel > dl dt label { justify-content: flex-start; font-size: 12px; line-height: 18px; }
.aside-counsel-panel #common-aside-counsel > dl dd { flex: 1; width: auto; min-width: 0; }
.aside-counsel-panel #common-aside-counsel input[type="text"],
.aside-counsel-panel #common-counsel-number { width: 100%; height: 40px; padding: 0 9px; border: 1px solid #9090a2; border-radius: 7px; background: #fff; color: #292936; font: inherit; font-size: 12px; text-align: left; }
.aside-counsel-panel input::placeholder { color: #707181; opacity: 1; }
/* 전화번호 도움말은 평소 숨기고, 기존 검사에서 오류가 생겼을 때만 표시합니다. */
.aside-counsel-panel #common-phone-note { display: none; margin-top: 6px; font-size: 11px; line-height: 1.45; color: #676776; }
.aside-counsel-panel #common-phone-note.ar-phone-invalid { display: block; color: #b42318; }
/* 동의 문구와 보기 버튼을 한 줄 양끝에 맞추고 글자·체크박스 사이 간격을 정돈합니다. */
.aside-counsel-panel .aside-privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.aside-counsel-panel .aside-privacy-row label { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; font-size: 12px; color: #484858; white-space: nowrap; cursor: pointer; }
.aside-counsel-panel .aside-privacy-row input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--aside-accent); }
.aside-counsel-panel #btn-common-privacy { display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto; width: auto; min-height: 32px; padding: 2px 0; border: 0; border-radius: 3px; background: transparent; color: #625d78; font: inherit; font-size: 12px; white-space: nowrap; text-decoration: none; }
.aside-counsel-panel #btn-common-privacy span { display: inline; font-size: 16px; line-height: 1; }
.aside-counsel-panel #btn-common-privacy:hover { color: #5746d9; text-decoration: underline; text-underline-offset: 3px; }
.aside-counsel-panel #btn-common-counsel { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 8px; border: 1px solid transparent; border-radius: 8px; background: var(--aside-accent); color: #fff; font-size: 15px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.aside-counsel-panel #btn-common-counsel span { display: inline; font-size: 20px; line-height: 1; }
.aside-counsel-panel #btn-common-counsel:hover { background: #5746d9; }
.aside-counsel-panel #btn-common-counsel:disabled { background: #706a98; cursor: wait; }
.aside-counsel-panel .aside-counsel-phone { display: flex; flex-direction: column; gap: 3px; padding: 15px 0; border-top: 1px solid #e7e6ef; color: #242332; text-align: center; line-height: 1.4; }
.aside-counsel-panel .aside-counsel-phone span { font-size: 12px; font-weight: 600; }
.aside-counsel-panel .aside-counsel-phone strong { font-size: 24px; font-weight: 760; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.aside-counsel-panel .aside-counsel-faq { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 12px 2px; border-top: 1px solid #e7e6ef; color: #292836; font-size: 14px; line-height: 1.4; font-weight: 650; }
.aside-counsel-panel .aside-counsel-faq > span:last-child { font-size: 24px; font-weight: 400; }
.aside-counsel-panel .aside-counsel-phone:hover, .aside-counsel-panel .aside-counsel-faq:hover { color: #5746d9; }
.aside-counsel-panel .aside-youtube-section { width: 100%; margin: 0; padding-top: 14px; border-top: 1px solid #e7e6ef; }
.aside-counsel-panel .aside-youtube-section h4 { margin: 0 0 10px; font-size: 12px; font-weight: 650; line-height: 1.4; }
.aside-counsel-panel .aside-youtube-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #1e1e26; }
.aside-counsel-panel .aside-youtube-video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.aside-counsel-panel .aside-youtube-actions { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.aside-counsel-panel #asideYoutubeSoundToggle, .aside-counsel-panel .aside-youtube-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 0; width: auto; min-width: 0; min-height: 34px; height: auto; padding: 6px 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: #4d4b62; font: inherit; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.aside-counsel-panel #asideYoutubeSoundToggle span { display: inline; font-size: 11px; line-height: 1.3; }
.aside-counsel-panel #asideYoutubeSoundToggle:disabled { color: #6a6a76; cursor: wait; }
.aside-counsel-panel #asideYoutubeSoundToggle.is-sound-on { color: #5746d9; background: #f0edff; }
.aside-counsel-panel #asideYoutubeSoundToggle:hover, .aside-counsel-panel .aside-youtube-link:hover { background: #f4f2fc; }
.aside-counsel-panel .aside-youtube-link img { width: 15px; height: auto; margin: 0; }
/* 기존 전체 버튼의 점선 효과를 이 패널에서만 정리하고 키보드 초점은 뚜렷하게 남깁니다. */
.aside-counsel-panel button:hover, #aside-counsel-toggle:hover { border-style: solid !important; }
.aside-counsel-panel button:not(#btn-common-counsel):hover { border: 0 !important; }
.aside-counsel-panel :is(a, button, input):focus-visible, #aside-counsel-toggle:focus-visible { outline: 2px solid #5844db; outline-offset: 3px; }
#aside-counsel-toggle, .aside-counsel-panel #aside-counsel-close { display: none; }
/* 1280px 본문 옆 공간이 부족한 PC 화면에서는 작은 버튼으로 열어 본문을 가리지 않습니다. */
@media (max-width: 1779px) {
  aside.aside-counsel-panel { left: auto; right: 16px; top: 16px; max-height: calc(100vh - 88px - var(--aside-bottom-keepout, 0px)); }
  .aside-counsel-ready aside.aside-counsel-panel { display: none; }
  .aside-counsel-ready aside.aside-counsel-panel.is-open { display: block; }
  .aside-counsel-ready #aside-counsel-toggle { position: fixed; z-index: 3; right: 16px; bottom: calc(18px + var(--aside-bottom-keepout, 0px)); display: flex; align-items: center; gap: 10px; width: auto; min-height: 46px; padding: 11px 18px; border: 1px solid #6655f0; border-radius: 24px; background: #6655f0; color: #fff; font-size: 14px; line-height: 22px; font-weight: 700; box-shadow: 0 4px 16px rgba(40, 31, 87, .16); }
  .aside-counsel-ready #aside-counsel-toggle span { display: inline; font-size: 18px; }
  .aside-counsel-ready .aside-counsel-panel #aside-counsel-close { position: absolute; top: 8px; right: 8px; display: block; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: #f4f2fa; color: #4d4865; font-size: 24px; line-height: 28px; }
}
@media print { aside.aside-counsel-panel, #aside-counsel-toggle { display: none !important; } }
