/**
 * OMNI-NEXUS KCTA TOUR 사이트 자가진단 · 해결 안내 위젯 (파일명 kto-wellness-widget = 배포 경로 호환)
 */
.kto-wellness-fab {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
  font-family: inherit;
  line-height: 1.2;
}
.kto-wellness-fab:hover {
  filter: brightness(1.06);
}
.kto-wellness-fab:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 2px;
}

.kto-wellness-panel[hidden] {
  display: none !important;
}
.kto-wellness-panel {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(76px, env(safe-area-inset-bottom));
  z-index: 99999;
  max-width: 420px;
  margin: 0 auto;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(37, 99, 235, 0.35);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
}

.kto-wellness-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #fff;
}
.kto-wellness-panel__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}
.kto-wellness-panel__head p {
  margin: 4px 0 0;
  font-size: 11px;
  opacity: 0.92;
  font-weight: 600;
}
.kto-wellness-panel__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.kto-wellness-panel__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.kto-wellness-disclaimer {
  margin: 0;
  padding: 10px 14px;
  font-size: 11px;
  color: #1e3a8a;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  font-weight: 600;
  line-height: 1.45;
}

.kto-wellness-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.kto-wellness-tabs button {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.kto-wellness-tabs button[aria-selected='true'] {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  background: #eff6ff;
}

.kto-wellness-body {
  padding: 12px 14px 16px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  background: #fff;
}

.kto-wellness-checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
}
.kto-wellness-checklist input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.kto-wellness-bot-log {
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 10px;
  color: #1e293b;
}
.kto-wellness-bot-log .kto-w-msg {
  margin: 0 0 8px;
}
.kto-wellness-bot-log .kto-w-bot {
  color: #1d4ed8;
  font-weight: 700;
}
.kto-wellness-bot-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kto-wellness-bot-row input {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
}
.kto-wellness-bot-row button {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.kto-wellness-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #64748b;
}
.kto-wellness-links a {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 480px) {
  .kto-wellness-fab {
    font-size: 12px;
    padding: 0 12px;
  }
}
