/* 쿠키 동의 배너 (js/jd-track.js 가 붙인다, 지음치과 2026-10-22). 원본: 디어스 css/dd-consent.css.
   화면 아래 떠 있는 작은 카드 — 본문을 밀지 않는다. 지음 톤: 노랑 #ffe100 · 주황 #ffa200 · 진회색 #3d3d3d.
   하단 빠른상담 바(#quickwrap, fixed, z-index 999, PC 높이 약 130px / 모바일 접힘 52px) 위로 띄우고,
   PC 우측 세로 퀵메뉴(.quick_bar, right 20px)와 겹치지 않게 오른쪽을 비운다. */
.dd-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 146px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 880px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  background: #fff;
  color: #222;
  border: 1px solid #e6e6e6;
  border-top: 4px solid #ffe100;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  font-family: 'Spoqa Han Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: left;
}
.dd-consent[hidden] { display: none; }
.dd-consent *, .dd-consent *::before, .dd-consent *::after { box-sizing: border-box; }
.dd-consent__main { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.dd-consent__text { min-width: 0; flex: 1; }
.dd-consent__title { margin: 0 0 2px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #3d3d3d; outline: none; }
.dd-consent__desc { margin: 0; font-size: 13px; color: #555; }
.dd-consent__link { color: #3d3d3d; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.dd-consent__btns { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; flex-shrink: 0; }
.dd-btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; font-family: inherit; line-height: 1;
}
.dd-btn:focus-visible { outline: 2px solid #ffa200; outline-offset: 2px; }
.dd-btn--solid { background: #ffe100; border-color: #ffe100; color: #222; }
.dd-btn--solid:hover { background: #ffc100; border-color: #ffc100; }
.dd-btn--line { background: #fff; border-color: #3d3d3d; color: #3d3d3d; }
.dd-btn--line:hover { background: #f6f6f6; }
.dd-btn--ghost { background: transparent; color: #555; text-decoration: underline; text-underline-offset: 4px; }
.dd-btn--ghost:hover { color: #ffa200; }
.dd-consent__detail { border-top: 1px solid #ececec; background: #fafafa; padding: 4px 16px 16px; }
.dd-consent__detail[hidden] { display: none; }
.dd-consent__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #ececec; }
.dd-consent__row:last-of-type { border-bottom: 0; }
.dd-consent__rowtext strong { font-weight: 700; color: #3d3d3d; }
.dd-consent__rowdesc { margin: 2px 0 0; font-size: 12.5px; color: #666; }
.dd-consent__always { margin: 8px 0 0; font-size: 12px; color: #888; }
.dd-consent__save { display: flex; justify-content: flex-end; padding-top: 12px; }
.dd-switch {
  position: relative; flex-shrink: 0; margin-top: 2px; width: 46px; height: 26px; border-radius: 999px; border: 0;
  background: #c8c8c8; cursor: pointer; transition: background-color .15s; padding: 0;
}
.dd-switch:focus-visible { outline: 2px solid #ffa200; outline-offset: 2px; }
.dd-switch.is-on { background: #ffa200; }
.dd-switch__knob {
  position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform .15s;
}
.dd-switch.is-on .dd-switch__knob { transform: translateX(20px); }

@media (min-width: 1024px) {
  .dd-consent { right: 110px; left: 16px; margin: 0; }
  .dd-consent__main { flex-direction: row; align-items: center; gap: 24px; padding: 16px 24px; }
  .dd-consent__desc { font-size: 14px; }
  .dd-consent__btns { display: flex; }
  .dd-consent__detail { padding: 4px 24px 16px; }
}
@media (max-width: 1023px) {
  /* 모바일·태블릿: 접힌 빠른상담 바(52px) 위로 */
  .dd-consent { left: 12px; right: 12px; bottom: 64px; max-height: calc(100vh - 90px); }
}
