.customer-chat { position: fixed; right: 24px; bottom: 24px; z-index: 45; color: var(--r-text); font-size: 14px; }
.customer-chat [hidden] { display: none !important; }
.customer-chat button, .customer-chat a { -webkit-tap-highlight-color: transparent; }
.customer-chat button:focus-visible, .customer-chat a:focus-visible, .customer-chat textarea:focus-visible { outline: 2px solid var(--r-primary-deep); outline-offset: 3px; }
.customer-chat__launcher { display: flex; align-items: center; gap: 9px; margin-left: auto; border-radius: 999px; padding: 15px 20px; background: var(--r-primary); color: var(--r-text); font-weight: 700; border: 1px solid var(--r-primary-deep); box-shadow: 0 4px 18px var(--r-border); }
.customer-chat__panel { width: 390px; height: min(640px, calc(100dvh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: 22px; margin-bottom: 12px; box-shadow: 0 12px 40px var(--r-border); }
.customer-chat__header { padding: 21px 20px 17px; background: var(--r-primary-light); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--r-border-light); }
.customer-chat__eyebrow { color: var(--r-primary-deep); font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 6px; }
.customer-chat__header h2 { font-size: 18px; font-weight: 750; }
.customer-chat__subtitle { margin-top: 4px; font-size: 12px; color: var(--r-text-secondary); }
.customer-chat__icon { font-size: 27px; line-height: 32px; width: 36px; border-radius: 10px; flex-shrink: 0; }
.customer-chat__icon:hover { background: var(--r-surface); }
.customer-chat__log { flex: 1; min-height: 70px; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.customer-chat__message { margin: 0 0 16px; }
.customer-chat__bubble { background: var(--r-bg-soft); padding: 12px 14px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 13px; }
.customer-chat__message--user .customer-chat__bubble { background: var(--r-primary-light); border-radius: 14px 14px 4px 14px; margin-left: 32px; }
.customer-chat__card { padding: 13px; margin-top: 8px; border: 1px solid var(--r-border); border-radius: 12px; }
.customer-chat__card h3 { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.customer-chat__card p { margin-top: 6px; color: var(--r-text-secondary); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-chat__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.customer-chat__actions a, .customer-chat__actions button { text-decoration: none; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--r-border); font-size: 12px; color: var(--r-cool-deep); background: var(--r-surface); font-weight: 600; }
.customer-chat__actions button[data-confirm] { background: var(--r-primary-light); color: var(--r-primary-deep); }
.customer-chat button:disabled { opacity: .5; cursor: wait; }
.customer-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 8px; border-top: 1px solid var(--r-border-light); }
.customer-chat__quick button { font-size: 11px; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--r-border); background: var(--r-surface); }
.customer-chat__quick button:hover { background: var(--r-cool-light); }
.customer-chat__status { min-height: 20px; padding: 0 16px; color: var(--r-text-muted); font-size: 11px; }
.customer-chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 0 16px 10px; }
.customer-chat__form textarea { width: 100%; min-width: 0; resize: none; border: 1px solid var(--r-border); border-radius: 12px; background: var(--r-surface); color: var(--r-text); padding: 10px 12px; font: inherit; font-size: 13px; }
.customer-chat__send { flex-shrink: 0; padding: 11px; border-radius: 10px; background: var(--r-primary); color: var(--r-text); font-size: 12px; font-weight: 700; }
.customer-chat__footnote { display: flex; align-items: flex-start; gap: 10px; padding: 0 16px 14px; font-size: 10px; line-height: 1.5; color: var(--r-text-muted); }
.customer-chat__footnote button { flex-shrink: 0; text-decoration: underline; }
.customer-chat__compose { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; font-size: 11px; color: var(--r-cool-deep); background: var(--r-cool-light); }
.customer-chat__compose span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-chat__compose button { flex-shrink: 0; text-decoration: underline; }
@media (max-width: 767px) {
  .customer-chat { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .customer-chat__panel { width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 108px - env(safe-area-inset-bottom))); margin-bottom: 0; }
  /* 휴대폰은 아이콘만 — 글자까지 넣은 알약 버튼이 상품 가격·버튼을 가렸다(2026-11-11). aria-label 로 이름은 유지 */
  .customer-chat__launcher { padding: 13px; }
  .customer-chat__launcher span { display: none; }
  .customer-chat:has(.customer-chat__panel:not([hidden])) .customer-chat__launcher { display: none; }
  .customer-chat__form textarea { font-size: 16px; }
}
