/* ================================================================
   FlowChatWP 4.0 — Universal Display Engine
   ================================================================ */

:root {
  --fcwp-primary: #25D366;
  --fcwp-primary-rgb: 37, 211, 102;
  --fcwp-secondary: #128C7E;
  --fcwp-off-x-d: 20px;
  --fcwp-off-y-d: 20px;
  --fcwp-off-x-m: 15px;
  --fcwp-off-y-m: 15px;
  --fcwp-z: 9999;
  --fcwp-fab-size: 60px;
  --fcwp-fab-size-mobile: 55px;
  --fcwp-radius: 12px;
  --fcwp-shadow: 0 10px 30px -10px rgba(11, 31, 14, 0.2);
}

/* ── Reset & Base ────────────────────────────────────────────────── */
.fcwp-instance {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.fcwp-instance h1, .fcwp-instance h2, .fcwp-instance h4 { font-family: 'Plus Jakarta Sans', sans-serif; }
.fcwp-instance *, .fcwp-instance *::before, .fcwp-instance *::after { box-sizing: border-box; }

/* ── Mode: Floating Widget ───────────────────────────────────────── */
.fcwp-mode--widget {
  position: fixed;
  z-index: var(--fcwp-z);
  pointer-events: none;
}
.fcwp-mode--widget * { pointer-events: auto; }

/* Positioning Logic */
/* Desktop Positioning */
@media (min-width: 768px) {
  .fcwp-pos--bottom-right { bottom: var(--fcwp-off-y-d); right: var(--fcwp-off-x-d); }
  .fcwp-pos--bottom-left  { bottom: var(--fcwp-off-y-d); left: var(--fcwp-off-x-d); }
  .fcwp-pos--top-right    { top: var(--fcwp-off-y-d); right: var(--fcwp-off-x-d); }
  .fcwp-pos--top-left     { top: var(--fcwp-off-y-d); left: var(--fcwp-off-x-d); }
  .fcwp-pos--middle-right { top: calc(50% + var(--fcwp-off-y-d)); right: var(--fcwp-off-x-d); transform: translateY(-50%); }
  .fcwp-pos--middle-left  { top: calc(50% + var(--fcwp-off-y-d)); left: var(--fcwp-off-x-d); transform: translateY(-50%); }
  .fcwp-pos--bottom-center { bottom: var(--fcwp-off-y-d); left: calc(50% + var(--fcwp-off-x-d)); transform: translateX(-50%); }
  .fcwp-pos--top-center    { top: var(--fcwp-off-y-d); left: calc(50% + var(--fcwp-off-x-d)); transform: translateX(-50%); }
}

/* Mobile Positioning */
@media (max-width: 767px) {
  .fcwp-pos--bottom-right { bottom: var(--fcwp-off-y-m); right: var(--fcwp-off-x-m); }
  .fcwp-pos--bottom-left  { bottom: var(--fcwp-off-y-m); left: var(--fcwp-off-x-m); }
  .fcwp-pos--top-right    { top: var(--fcwp-off-y-m); right: var(--fcwp-off-x-m); }
  .fcwp-pos--top-left     { top: var(--fcwp-off-y-m); left: var(--fcwp-off-x-m); }
  .fcwp-pos--middle-right { top: calc(50% + var(--fcwp-off-y-m)); right: var(--fcwp-off-x-m); transform: translateY(-50%); }
  .fcwp-pos--middle-left  { top: calc(50% + var(--fcwp-off-y-m)); left: var(--fcwp-off-x-m); transform: translateY(-50%); }
  .fcwp-pos--bottom-center { bottom: var(--fcwp-off-y-m); left: calc(50% + var(--fcwp-off-x-m)); transform: translateX(-50%); }
  .fcwp-pos--top-center    { top: var(--fcwp-off-y-m); left: calc(50% + var(--fcwp-off-x-m)); transform: translateX(-50%); }
}



/* ── Mode: Popup Modal ───────────────────────────────────────────── */
.fcwp-mode--popup {
  position: fixed;
  inset: 0;
  z-index: var(--fcwp-z);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 14, 0.45);
  backdrop-filter: blur(8px);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.fcwp-mode--popup.fcwp-active {
  opacity: 1;
  visibility: visible;
}
.fcwp-mode--popup .fcwp-window {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100%;
  max-width: 480px;
  height: 600px;
  max-height: 90vh;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.fcwp-mode--popup.fcwp-active .fcwp-window {
  transform: translateY(0) scale(1);
  opacity: 1;
  display: flex;
}

/* ── Mode: Inline Form ───────────────────────────────────────────── */
.fcwp-mode--inline {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 30px auto;
  border-radius: var(--fcwp-radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: var(--fcwp-shadow);
}
.fcwp-mode--inline .fcwp-window {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 480px;
  max-height: none !important;
  box-shadow: none !important;
  bottom: auto !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: flex !important;
}
.fcwp-mode--inline .fcwp-chat-body {
  background: #fff;
  padding: 30px;
}
.fcwp-mode--inline .fcwp-bubble--bot {
  background: transparent;
  padding: 0;
  box-shadow: none;
  font-size: 22px;
  font-weight: 800;
  color: #1a241b;
  margin-bottom: 20px;
  max-width: 100%;
}
.fcwp-mode--inline .fcwp-bubble--bot::after { display: none; }
.fcwp-mode--inline .fcwp-bubble--user,
.fcwp-mode--inline .fcwp-bubble-wrap--user { display: none; } /* Hide user repeats in inline form for cleaner look */

.fcwp-mode--inline .fcwp-window__header,
.fcwp-mode--inline .fcwp-chat-input-bar,
.fcwp-mode--inline .fcwp-chat-footer {
  display: none !important; /* Strip chat UI for inline form */
}

/* ── FAB (Floating Action Button) ───────────────────────────────── */
.fcwp-fab {
  width: var(--fcwp-fab-size);
  height: var(--fcwp-fab-size);
  border-radius: 50%;
  background: var(--fcwp-primary);
  border: none;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: var(--fcwp-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.fcwp-fab-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.fcwp-shape--squircle {
  border-radius: 32%;
}
.fcwp-shape--square {
  border-radius: 12px;
}
.fcwp-fab__icon {
  width: 30px;
  height: 30px;
  color: #fff;
  transition: transform .3s ease;
}
.fcwp-fab[aria-expanded="true"] .fcwp-fab__icon--chat { display: none; }
.fcwp-fab[aria-expanded="false"] .fcwp-fab__icon--close { display: none; }

.fcwp-fab:hover { transform: scale(1.06); }
.fcwp-fab:active { transform: scale(0.95); }

@media (max-width: 767px) {
  .fcwp-fab { width: var(--fcwp-fab-size-mobile); height: var(--fcwp-fab-size-mobile); }
}

/* FAB Shapes */
.fcwp-shape--pill {
  width: auto;
  border-radius: 50px;
  padding: 0 20px;
}
.fcwp-shape--pill .fcwp-fab__text { margin-left: 10px; font-weight: 600; color: #fff; display: block; }

/* ── Animations ─────────────────────────────────────────────────── */
.fcwp-anim--pulse { animation: fcwp-anim-pulse 2s infinite; }
.fcwp-anim--wiggle { animation: fcwp-anim-wiggle 1s ease-in-out infinite; }
.fcwp-anim--bounce { animation: fcwp-anim-bounce 2s infinite; }

@keyframes fcwp-anim-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--fcwp-primary-rgb), 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(var(--fcwp-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--fcwp-primary-rgb), 0); }
}
@keyframes fcwp-anim-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes fcwp-anim-bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* ── Chat Window Overhaul ────────────────────────────────────────── */
.fcwp-window {
  width: 360px;
  height: min(600px, 80dvh);
  background: #fff;
  border-radius: var(--fcwp-radius);
  box-shadow: var(--fcwp-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: calc(var(--fcwp-fab-size) + 15px);
  transition: opacity .3s, transform .3s;
}

/* Glassmorphism utility */
.fcwp-glass {
  backdrop-filter: blur(14px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(209, 213, 219, 0.3);
}

/* Responsive Windows */
@media (max-width: 480px) {
  .fcwp-mode--widget .fcwp-window {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    bottom: 0;
  }
}

/* Adjust Window Position based on corner */
.fcwp-pos--bottom-right .fcwp-window { right: 0; bottom: calc(var(--fcwp-fab-size) + 15px); transform-origin: bottom right; }
.fcwp-pos--bottom-left  .fcwp-window { left: 0; bottom: calc(var(--fcwp-fab-size) + 15px); transform-origin: bottom left; }
.fcwp-pos--top-right    .fcwp-window { top: calc(var(--fcwp-fab-size) + 15px); right: 0; bottom: auto; transform-origin: top right; }
.fcwp-pos--top-left     .fcwp-window { top: calc(var(--fcwp-fab-size) + 15px); left: 0; bottom: auto; transform-origin: top left; }
.fcwp-pos--middle-right .fcwp-window { right: calc(var(--fcwp-fab-size) + 15px); bottom: 0; transform-origin: bottom right; }
.fcwp-pos--middle-left  .fcwp-window { left: calc(var(--fcwp-fab-size) + 15px); bottom: 0; transform-origin: bottom left; }
.fcwp-pos--bottom-center .fcwp-window { bottom: calc(var(--fcwp-fab-size) + 15px); left: 50%; transform: translateX(-50%); transform-origin: bottom center; }
.fcwp-pos--top-center    .fcwp-window { top: calc(var(--fcwp-fab-size) + 15px); left: 50%; transform: translateX(-50%); bottom: auto; transform-origin: top center; }


/* ── Transitions & States ────────────────────────────────────────── */
.fcwp-window { --fcwp-window-base-transform: none; }
.fcwp-pos--bottom-center .fcwp-window, .fcwp-pos--top-center .fcwp-window { --fcwp-window-base-transform: translateX(-50%); }
.fcwp-window.fcwp-hidden { 
  opacity: 0; 
  pointer-events: none; 
  transform: var(--fcwp-window-base-transform) translateY(10px) scale(0.95); 
}
.fcwp-window:not(.fcwp-hidden) {
  transform: var(--fcwp-window-base-transform) translateY(0) scale(1);
}


/* ── Internal Elements ───────────────────────────────────────────── */
.fcwp-window__header {
  background: var(--fcwp-secondary);
  padding: 15px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.fcwp-window__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.fcwp-window__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.fcwp-window__close svg { width: 18px; height: 18px; }
.fcwp-agent { display: flex; align-items: center; gap: 12px; }
.fcwp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
.fcwp-agent-info h4 { margin: 0; font-size: 15px; font-weight: 600; }
.fcwp-agent-info span { font-size: 12px; opacity: 0.8; }

.fcwp-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9f4ea; /* Brightaal Cream */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bubbles */
.fcwp-bubble-wrap { display: flex; width: 100%; margin: 8px 0; }
.fcwp-bubble-wrap--bot { justify-content: flex-start; }
.fcwp-bubble-wrap--user { justify-content: flex-end; }

.fcwp-bubble { 
  max-width: 85%; 
  padding: 12px 16px; 
  border-radius: 18px; 
  font-size: 14px; 
  line-height: 1.5; 
  box-shadow: var(--fcwp-shadow-light); 
  position: relative;
}
.fcwp-bubble--bot { background: #fff; color: #1a241b; border-bottom-left-radius: 4px; }
.fcwp-bubble--user { background: var(--fcwp-primary); color: #fff; border-bottom-right-radius: 4px; }

/* Typing Indicator */
.fcwp-typing-bubble { display: flex; gap: 4px; padding: 12px 16px; background: #fff; border-radius: 18px; border-bottom-left-radius: 4px; border: 1px solid rgba(0,0,0,0.05); }
.fcwp-typing-bubble span { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: fcwp-typing 1s infinite; }
.fcwp-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.fcwp-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes fcwp-typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Chips (Choices) */
.fcwp-chips-wrap { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  padding: 5px 0 15px; 
  justify-content: flex-start; 
  width: 100%;
}
.fcwp-chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #1a241b;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  white-space: nowrap;
}
.fcwp-chip:hover { border-color: var(--fcwp-primary); color: var(--fcwp-primary); transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.06); }
.fcwp-chip:disabled { opacity: 0.6; cursor: default; pointer-events: none; }

/* ── Module 2: Multi-Select Chips ─────────────────────────────────── */
/* Toggleable pill — selected state */
.fcwp-chip--toggle { white-space: normal; text-align: left; }
.fcwp-chip--active {
  background: var(--fcwp-primary);
  border-color: var(--fcwp-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(var(--fcwp-primary-rgb), 0.35);
}
.fcwp-chip--active:hover { opacity: 0.92; }

/* Confirm button — sits below the toggleable pills */
.fcwp-chip--confirm {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--fcwp-primary), var(--fcwp-secondary));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(var(--fcwp-primary-rgb), 0.3);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.fcwp-chip--confirm:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--fcwp-primary-rgb), 0.4);
}
.fcwp-chip--confirm:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
}

/* Multi-select wrap — slightly more space before confirm btn */
.fcwp-multiselect-wrap { flex-direction: row; }
.fcwp-multiselect-wrap .fcwp-chip--confirm { flex: 1 0 100%; border-radius: 12px; padding: 12px 16px; }

/* File Upload Node */
.fcwp-file-bubble { flex-direction: column; width: 100%; }
.fcwp-file-upload-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
  margin-bottom: 8px;
}
.fcwp-file-upload-box:hover { border-color: var(--fcwp-primary); background: #f1f5f9; }
.fcwp-file-upload-box.fcwp-file-selected { border-style: solid; border-color: var(--fcwp-primary); background: #f0fdf4; }
.fcwp-file-icon { font-size: 24px; }
.fcwp-file-info { display: flex; flex-direction: column; }
.fcwp-file-info strong { font-size: 14px; color: #1a241b; }
.fcwp-file-info small { font-size: 11px; color: #647466; }

/* Date Picker Node */
.fcwp-date-bubble { flex-direction: column; width: 100%; }
.fcwp-grid--date { margin-bottom: 8px; }
.fcwp-grid--date .fcwp-form-field { margin-bottom: 10px; }
.fcwp-grid--date input { font-family: inherit; }


/* Input Bar */
.fcwp-chat-input-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  gap: 10px;
}
.fcwp-chat-input {
  flex: 1;
  border: none;
  background: #f8fafc;
  padding: 10px 15px;
  border-radius: 22px;
  font-size: 14px;
  outline: none;
  transition: background .2s;
}
.fcwp-chat-input:focus { background: #f1f5f9; }
.fcwp-send-btn {
  background: var(--fcwp-primary);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
  flex-shrink: 0;
}
.fcwp-send-btn:hover { transform: scale(1.05); }
.fcwp-send-btn svg { transform: translateX(1px); }

/* Form Elements */
.fcwp-form-bubble {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--fcwp-shadow-soft);
  width: 100%;
}
.fcwp-form-header {
  font-size: 16px;
  font-weight: 700;
  color: #1a241b;
  margin-bottom: 15px;
}
.fcwp-form-field { margin-bottom: 15px; }
.fcwp-form-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #647466; margin-bottom: 6px; letter-spacing: 0.05em; }
.fcwp-form-field input, .fcwp-form-field textarea, .fcwp-form-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.fcwp-form-field input:focus { border-color: var(--fcwp-primary); }

.fcwp-form-options-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px; 
  margin-top: 5px; 
}
.fcwp-form-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.fcwp-form-option:hover { background: #f1f5f9; }
.fcwp-form-option input { width: auto !important; margin: 0; cursor: pointer; }
.fcwp-form-option span { font-size: 13px; font-weight: 500; color: #1a241b; }

.fcwp-cta-group { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fcwp-cta-wa {
  background: linear-gradient(135deg, var(--fcwp-primary), var(--fcwp-secondary));
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 10px 20px -5px rgba(var(--fcwp-primary-rgb), 0.3);
}
.fcwp-cta-wa:hover { 
  opacity: 1; 
  transform: translateY(-1px);
  box-shadow: 0 15px 25px -5px rgba(var(--fcwp-primary-rgb), 0.4);
}

.fcwp-cta-email {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 13px;
  transition: all .2s;
}
.fcwp-cta-email:hover { background: #e2e8f0; color: #1e293b; }

.fcwp-chat-footer {
  padding: 10px 15px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Inline Progress Bar */
.fcwp-progress {
  height: 4px;
  background: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 5;
}
.fcwp-progress-bar {
  height: 100%;
  background: var(--fcwp-primary);
  width: 0%;
  transition: width .4s ease;
}

/* ── Tooltip ─────────────────────────────────────────────────────── */
.fcwp-tooltip {
  position: absolute;
  background: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: var(--fcwp-shadow-soft);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: auto;
  animation: fcwp-anim-bounce 3s infinite;
  z-index: 10;
}
.fcwp-pos--bottom-right .fcwp-tooltip { bottom: calc(var(--fcwp-fab-size) + 10px); right: 0; }
.fcwp-pos--bottom-left  .fcwp-tooltip { bottom: calc(var(--fcwp-fab-size) + 10px); left: 0; }
.fcwp-pos--top-right    .fcwp-tooltip { top: calc(var(--fcwp-fab-size) + 10px); right: 0; }
.fcwp-pos--top-left     .fcwp-tooltip { top: calc(var(--fcwp-fab-size) + 10px); left: 0; }
.fcwp-tooltip__close { border: none; background: none; cursor: pointer; color: #94a3b8; font-size: 12px; margin-left: 8px; }

/* ── Themes ──────────────────────────────────────────────────────── */

/* 1. Theme: Modern iOS Style */
.fcwp-theme--modern .fcwp-window {
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.15);
}
.fcwp-theme--modern .fcwp-window__header {
  background: linear-gradient(135deg, var(--fcwp-primary), var(--fcwp-secondary));
  padding: 22px 20px;
  border-bottom: none;
}
.fcwp-theme--modern .fcwp-bubble { border-radius: 20px; }
.fcwp-theme--modern .fcwp-bubble--bot { border-bottom-left-radius: 6px; }
.fcwp-theme--modern .fcwp-bubble--user { border-bottom-right-radius: 6px; }
.fcwp-theme--modern .fcwp-chat-input-bar { padding: 15px 20px; }

/* 2. Theme: Minimalist Avatar */
.fcwp-theme--minimalist .fcwp-window {
  width: 320px;
  height: 480px;
  border-radius: 16px;
}
.fcwp-theme--minimalist .fcwp-window__header {
  background: #fff;
  color: #1a241b;
  padding: 12px 16px;
}
.fcwp-theme--minimalist .fcwp-agent-info h4 { font-size: 14px; }
.fcwp-theme--minimalist .fcwp-agent-info span { display: none; }
.fcwp-theme--minimalist .fcwp-avatar { width: 32px; height: 32px; }
.fcwp-theme--minimalist .fcwp-chat-body { background: #fff; }
.fcwp-theme--minimalist .fcwp-bubble { box-shadow: none; border: 1px solid #f1f5f9; }

/* 3. Theme: Fullscreen Takeover */
.fcwp-theme--fullscreen .fcwp-window {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  z-index: 1000000;
  transform: none !important;
  opacity: 1;
}
.fcwp-theme--fullscreen .fcwp-fab { display: none !important; }

/* ── Mobile Fullscreen Override ───────────────────────────────────── */
@media (max-width: 767px) {
  .fcwp-mobile-fullscreen.fcwp-instance .fcwp-window:not(.fcwp-hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 1000000;
    display: flex !important;
  }
  .fcwp-mobile-fullscreen.fcwp-instance .fcwp-fab {
      /* Ensure FAB is hidden when window is open in fullscreen mode */
      z-index: 1;
  }
}

/* ── Utilities ───────────────────────────────────────────────────── */
.fcwp-hidden-el { display: none !important; }
