/* ============================================
   OPA Assistant — Premium Chatbot Widget
   Animated waves, streaming text, smooth UX
   ============================================ */

/* ---------- Chat Bubble Button ---------- */
.opa-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(27, 107, 125, 0.35), 0 0 0 0 rgba(27, 107, 125, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  animation: bubble-breathe 3s ease-in-out infinite;
}

@keyframes bubble-breathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(27, 107, 125, 0.35), 0 0 0 0 rgba(27, 107, 125, 0.15); }
  50% { box-shadow: 0 8px 32px rgba(27, 107, 125, 0.35), 0 0 0 12px rgba(27, 107, 125, 0); }
}

.opa-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(27, 107, 125, 0.45);
  animation: none;
}

.opa-chat-bubble:active { transform: scale(0.95); }

.opa-chat-bubble svg {
  width: 28px;
  height: 28px;
  color: #fff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.opa-chat-bubble .close-icon { display: none; }
.opa-chat-bubble.active .chat-icon { display: none; }
.opa-chat-bubble.active .close-icon { display: block; }
.opa-chat-bubble.active { animation: none; }

/* Bubble Label */
.opa-chat-bubble-label {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9997;
  background: #fff;
  color: #2C2C35;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  white-space: nowrap;
  animation: bubble-label-fade 0.6s ease 2s both;
  pointer-events: none;
}

.opa-chat-bubble-label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0,0,0,0.04);
}

@keyframes bubble-label-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.opa-chat-bubble-label.hidden { display: none; }

/* ---------- Chat Panel ---------- */
.opa-chat-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 56px);
  background: #F5F5F7;
  border-radius: 24px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.18),
    0 0 0 1px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.opa-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Minimized state — just header bar visible */
.opa-chat-panel.minimized {
  height: 60px;
  width: 300px;
  border-radius: 16px;
  overflow: hidden;
}
.opa-chat-panel.minimized .opa-chat-messages,
.opa-chat-panel.minimized .opa-chat-suggestions,
.opa-chat-panel.minimized .opa-chat-input-area,
.opa-chat-panel.minimized .opa-chat-notice {
  display: none;
}
.opa-chat-panel.minimized .opa-chat-header {
  padding: 12px 16px;
  cursor: pointer;
}
.opa-chat-panel.minimized .opa-chat-header::before,
.opa-chat-panel.minimized .opa-chat-header::after {
  display: none;
}
.opa-chat-panel.minimized .opa-chat-header-avatar {
  width: 32px;
  height: 32px;
}
.opa-chat-panel.minimized .opa-chat-header-avatar svg {
  width: 16px;
  height: 16px;
}
.opa-chat-panel.minimized .opa-chat-header h3 {
  font-size: 0.9rem;
}
.opa-chat-panel.minimized .opa-chat-header .subtitle {
  display: none;
}

/* ---------- Chat Header with Animated Waves ---------- */
.opa-chat-header {
  background: linear-gradient(160deg, #0F3D4A 0%, #1B6B7D 50%, #2A8E9E 100%);
  padding: 20px 20px 44px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Multiple wave layers */
.opa-chat-header::before,
.opa-chat-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -10%;
  width: 120%;
  pointer-events: none;
}

.opa-chat-header::before {
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,30 C200,50 400,10 600,30 C800,50 1000,10 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 600px 30px;
  animation: wave-drift 8s linear infinite;
  bottom: 14px;
}

.opa-chat-header::after {
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath fill='%23F5F5F7' d='M0,20 C150,35 350,5 600,20 C850,35 1050,5 1200,20 L1200,40 L0,40 Z'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 600px 20px;
  animation: wave-drift 6s linear infinite reverse;
  z-index: 1;
}

@keyframes wave-drift {
  0% { background-position-x: 0; }
  100% { background-position-x: 600px; }
}

.opa-chat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.opa-chat-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opa-chat-header-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.opa-chat-header-avatar svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.opa-chat-header h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.opa-chat-header .subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.opa-chat-header .subtitle::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #A8E6CF;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.opa-chat-header-actions {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.opa-chat-header-actions button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  color: rgba(255,255,255,0.6);
}

.opa-chat-header-actions button:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.opa-chat-header-actions button svg { width: 16px; height: 16px; }

.opa-chat-notice {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* ---------- Chat Messages ---------- */
.opa-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' opacity='0.03'%3E%3Cpath fill='%231B6B7D' d='M0,100 C200,140 400,60 600,100 C700,120 800,80 800,80 L800,200 L0,200 Z'/%3E%3C/svg%3E") repeat-x bottom,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' opacity='0.02'%3E%3Cpath fill='%236B9E78' d='M0,120 C150,80 300,150 500,100 C650,65 800,110 800,110 L800,200 L0,200 Z'/%3E%3C/svg%3E") repeat-x bottom 40px left,
    #F5F5F7;
  background-size: 400px 100px, 500px 120px, auto;
}

.opa-chat-messages::-webkit-scrollbar { width: 4px; }
.opa-chat-messages::-webkit-scrollbar-track { background: transparent; }
.opa-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

/* Message bubbles */
.opa-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: msg-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.opa-msg.bot { align-self: flex-start; }
.opa-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.opa-msg-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.opa-msg.bot .opa-msg-avatar {
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  color: #fff;
}

.opa-msg.user .opa-msg-avatar {
  background: linear-gradient(135deg, #2D3B55, #4A5A7A);
  color: #fff;
}

.opa-msg-avatar svg { width: 16px; height: 16px; }

.opa-msg-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.86rem;
  line-height: 1.7;
  word-wrap: break-word;
}

.opa-msg.bot .opa-msg-bubble {
  background: #fff;
  color: #2C2C35;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.opa-msg.user .opa-msg-bubble {
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 10px rgba(27, 107, 125, 0.15);
}

/* Streaming cursor */
.opa-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #1B6B7D;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.8s ease-in-out infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.opa-msg-bubble.streaming {
  min-height: 20px;
}

/* Typing indicator */
.opa-typing {
  display: flex;
  gap: 5px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.opa-typing span {
  width: 7px;
  height: 7px;
  background: #A0A0AD;
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.opa-typing span:nth-child(2) { animation-delay: 0.15s; }
.opa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* ---------- Suggested Prompts ---------- */
.opa-chat-suggestions {
  padding: 4px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.opa-suggestion {
  background: #fff;
  border: 1px solid #E2E2E8;
  border-radius: 50px;
  padding: 8px 16px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.76rem;
  color: #4A4A55;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-weight: 500;
}

.opa-suggestion:hover {
  background: linear-gradient(135deg, #E8F4F7, #EAF5ED);
  border-color: #1B6B7D;
  color: #1B6B7D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 107, 125, 0.1);
}

.opa-suggestion:active { transform: translateY(0) scale(0.97); }

/* ---------- Action Buttons (post-message CTAs) ---------- */
.opa-msg.bot { flex-wrap: wrap; }

.opa-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-left: 42px;
  width: 100%;
  align-self: flex-start;
}

.opa-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1B6B7D, #2A8A9E);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.opa-action-btn:hover {
  background: linear-gradient(135deg, #15576A, #1B6B7D);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 107, 125, 0.25);
}

.opa-action-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ---------- Chat Input ---------- */
.opa-chat-input-area {
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid #EDEDF0;
  flex-shrink: 0;
}

.opa-chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #F5F5F7;
  border: 2px solid #E8E8EC;
  border-radius: 16px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.opa-chat-input-wrapper:focus-within {
  border-color: #1B6B7D;
  box-shadow: 0 0 0 4px rgba(27, 107, 125, 0.08);
}

.opa-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.88rem;
  color: #2C2C35;
  padding: 10px 0;
  resize: none;
  min-height: 20px;
  max-height: 100px;
  outline: none;
  line-height: 1.4;
}

.opa-chat-input::placeholder { color: #A0A0AD; }

.opa-chat-send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

.opa-chat-send:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(27, 107, 125, 0.3);
}

.opa-chat-send:active { transform: scale(0.95); }
.opa-chat-send svg { width: 18px; height: 18px; }

/* Memory toggle */
.opa-chat-memory {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: #A0A0AD;
}

.opa-chat-memory label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.opa-memory-toggle {
  position: relative;
  width: 30px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: #D1D1D8;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s;
  outline: none;
}

.opa-memory-toggle:checked { background: #6B9E78; }

.opa-memory-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.opa-memory-toggle:checked::before { transform: translateX(14px); }

/* ---------- Welcome Message ---------- */
.opa-welcome {
  text-align: center;
  padding: 32px 20px 16px;
  animation: welcome-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcome-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.opa-welcome-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(27, 107, 125, 0.25);
  position: relative;
}

.opa-welcome-avatar svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.opa-welcome-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(27, 107, 125, 0.2);
  animation: welcome-pulse 2.5s ease-in-out infinite;
}

@keyframes welcome-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0; }
}

.opa-welcome h4 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2C2C35;
  margin-bottom: 10px;
}

.opa-welcome .opa-welcome-main {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.84rem;
  color: #6E6E7A;
  line-height: 1.6;
  margin-bottom: 12px;
}

.opa-welcome .opa-welcome-sub {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1B6B7D;
  animation: sub-fade 1s ease 0.4s both;
}

@keyframes sub-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
  .opa-chat-panel {
    width: 340px;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: min(460px, calc(100vh - 120px));
    bottom: 84px;
    right: 16px;
    border-radius: 20px;
  }

  .opa-chat-panel.minimized {
    width: 260px;
    height: 56px;
    bottom: 86px;
    right: 20px;
    border-radius: 14px;
  }

  .opa-chat-header {
    padding: 8px 12px 14px;
  }
  .opa-chat-header::before, .opa-chat-header::after { display: none; }
  .opa-chat-header-avatar { width: 28px; height: 28px; }
  .opa-chat-header-avatar svg { width: 14px; height: 14px; }
  .opa-chat-header h3 { font-size: 0.82rem; }
  .opa-chat-header .subtitle { font-size: 0.62rem; }
  .opa-chat-header .opa-chat-notice { font-size: 0.58rem; padding-top: 2px; margin-top: 2px; line-height: 1.3; }

  .opa-chat-bubble {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .opa-chat-bubble svg {
    width: 24px;
    height: 24px;
  }

  .opa-chat-bubble-label {
    bottom: 82px;
    right: 16px;
    font-size: 0.75rem;
    padding: 8px 12px;
    white-space: nowrap;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .opa-welcome {
    padding: 8px 12px 4px;
  }
  .opa-welcome-avatar { width: 32px; height: 32px; margin-bottom: 4px; }
  .opa-welcome-avatar svg { width: 16px; height: 16px; }
  .opa-welcome-pulse { display: none; }
  .opa-welcome h4 { font-size: 0.82rem; margin-bottom: 2px; }
  .opa-welcome .opa-welcome-main { font-size: 0.72rem; margin-bottom: 2px; line-height: 1.3; }
  .opa-welcome .opa-welcome-sub { font-size: 0.75rem; }

  .opa-msg-bubble {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .opa-chat-suggestions {
    padding: 6px 12px 8px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .opa-chat-suggestions::-webkit-scrollbar { display: none; }
  .opa-suggestion {
    font-size: 0.7rem;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  .opa-chat-input-area {
    padding: 4px 10px 6px;
  }
  .opa-chat-input-wrapper {
    padding: 2px 2px 2px 10px;
    border-radius: 12px;
  }
  .opa-chat-input {
    font-size: 0.8rem;
    padding: 6px 0;
  }
  .opa-chat-send { width: 30px; height: 30px; min-width: 30px; }
  .opa-chat-send svg { width: 15px; height: 15px; }

  .opa-chat-messages {
    padding: 10px 12px;
  }

  .opa-chat-phi-banner {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .opa-chat-memory {
    margin-top: 4px;
    font-size: 0.6rem;
  }

  .opa-hipaa-disclaimer {
    padding: 16px 16px;
  }
  .opa-hipaa-disclaimer h4 { font-size: 0.9rem; }
  .opa-hipaa-disclaimer p { font-size: 0.72rem; }
  .opa-hipaa-accept { padding: 10px 22px; font-size: 0.8rem; }
}

/* ---------- HIPAA Disclaimer ---------- */
.opa-hipaa-disclaimer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  overflow-y: auto;
}
.opa-hipaa-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #2e7d32;
}
.opa-hipaa-disclaimer h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
}
.opa-hipaa-disclaimer p {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 10px;
  text-align: left;
}
.opa-hipaa-disclaimer p strong {
  color: #333;
}
.opa-hipaa-accept {
  margin-top: 12px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #1B6B7D, #2A8E9E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.opa-hipaa-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 107, 125, 0.35);
}

/* ---------- PHI Warning Banner ---------- */
.opa-chat-phi-banner {
  background: #fff8e1;
  color: #795548;
  font-size: 0.68rem;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid #ffe0b2;
  flex-shrink: 0;
}
