/* ============================================================
   ICE AI Chatbot — Glassmorphism Dark Theme
   ============================================================ */

:root {
  --ice-accent: #7c3aed;
  --ice-accent-dark: #5b21b6;
  --ice-accent-glow: rgba(124, 58, 237, 0.4);
  --ice-bg: #0f0c1a;
  --ice-surface: rgba(18, 14, 30, 0.97);
  --ice-glass: rgba(255, 255, 255, 0.05);
  --ice-border: rgba(255, 255, 255, 0.1);
  --ice-text: #e8e4f0;
  --ice-text-muted: #9e99ad;
  --ice-user-bg: var(--ice-accent);
  --ice-bot-bg: rgba(255, 255, 255, 0.07);
  --ice-radius: 18px;
  --ice-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--ice-border);
  --ice-w: 370px;
  --ice-h: 560px;
}

/* ── Root Container ── */
#ice-chatbot-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color-scheme: dark;
  /* Force dark mode context */
}

/* Defensive reset for any button inside our root to prevent theme leaks */
#ice-chatbot-root button {
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-shadow: none !important;
  box-shadow: none !important;
  background-image: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0;
  margin: 0;
  border: none;
  font-family: inherit;
}

/* ── Bubble Button ── */
/* Increased specificity to override root resets and WP themes */
#ice-chatbot-root #ice-chatbot-bubble {
  position: relative !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #7c3aed, #9f67f7) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  outline: none !important;
  z-index: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: linear-gradient(135deg, #7c3aed, #9f67f7) !important;
  /* Explicit image to override reset */
}

#ice-chatbot-root #ice-chatbot-bubble:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

#ice-chatbot-root #ice-chatbot-bubble:active {
  transform: scale(0.96) !important;
}

.ice-bubble-icon {
  display: none;
  /* hidden by default, shown selectively below */
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ice-bubble-icon svg {
  width: 26px !important;
  height: 26px !important;
  fill: white !important;
  color: white !important;
  display: block !important;
  pointer-events: none !important;
}

/* Default (closed): show AI avatar icon, hide old chat+close icons */
#ice-chatbot-root #ice-chatbot-bubble .ice-icon-avatar {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

/* SVG inside avatar span: fill the bubble */
#ice-chatbot-root #ice-chatbot-bubble .ice-icon-avatar svg {
  width: 40px !important;
  height: 40px !important;
  fill: none !important;
}

/* Custom uploaded image inside avatar span: circular crop */
#ice-chatbot-root #ice-chatbot-bubble .ice-icon-avatar img {
  width: 62px !important;
  height: 62px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Old chat icon — hidden (replaced by avatar) */
#ice-chatbot-root #ice-chatbot-bubble .ice-icon-chat {
  display: none !important;
}

#ice-chatbot-root #ice-chatbot-bubble .ice-icon-close {
  display: none !important;
}

/* When open: hide avatar, show X */
#ice-chatbot-root #ice-chatbot-bubble.ice-chat-open .ice-icon-avatar {
  display: none !important;
}

#ice-chatbot-root #ice-chatbot-bubble.ice-chat-open .ice-icon-close {
  display: flex !important;
}


/* Pulse ring animation */
#ice-chatbot-root #ice-chatbot-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ice-accent);
  animation: ice-pulse 2.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  opacity: 0;
}

@keyframes ice-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

/* Notification badge */
.ice-bubble-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f43f5e;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ice-bg);
  animation: ice-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ice-badge-pop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* ── Backdrop Overlay ── */
#ice-chatbot-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  z-index: 999997;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

#ice-chatbot-backdrop.ice-backdrop-open {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: all;
  cursor: pointer;
}

/* ── Chat Window — fixed center modal ── */
#ice-chatbot-window {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  width: var(--ice-w);
  max-height: var(--ice-h);
  background: var(--ice-surface);
  border-radius: var(--ice-radius);
  box-shadow: var(--ice-shadow);
  border: 1px solid var(--ice-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999999;
  /* Closed state — centered but invisible + scaled down */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92) !important;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ice-chatbot-window.ice-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
  pointer-events: all;
}

/* ── Header ── */
.ice-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--ice-accent), #9f67f7);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ice-chat-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ice-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ice-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ice-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ice-bot-avatar svg {
  width: 28px;
  height: 28px;
}

.ice-bot-name {
  font-weight: 700;
  font-size: 15px;
  color: white;
  letter-spacing: 0.02em;
}

.ice-bot-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ice-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
  animation: ice-blink 2s ease-in-out infinite;
}

@keyframes ice-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.ice-header-actions {
  display: flex;
  gap: 4px;
}

.ice-btn-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: white !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

.ice-btn-icon:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.ice-btn-icon svg {
  width: 16px !important;
  height: 16px !important;
  fill: white !important;
  color: white !important;
  pointer-events: none !important;
  display: block !important;
}

/* ── Messages Area ── */
.ice-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.ice-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ice-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ice-chat-messages::-webkit-scrollbar-thumb {
  background: var(--ice-border);
  border-radius: 4px;
}

/* Message bubbles */
.ice-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: ice-msg-in 0.25s ease forwards;
  max-width: 88%;
}

@keyframes ice-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ice-msg.ice-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ice-msg.ice-bot {
  align-self: flex-start;
}

.ice-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-accent), #9f67f7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ice-msg-avatar svg {
  width: 16px;
  height: 16px;
  color: white;
}

.ice-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}

.ice-user .ice-msg-bubble {
  background: linear-gradient(135deg, var(--ice-accent), #8b5cf6);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px var(--ice-accent-glow);
}

.ice-bot .ice-msg-bubble {
  background: var(--ice-bot-bg);
  color: var(--ice-text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--ice-border);
}

.ice-msg-time {
  font-size: 10px;
  color: var(--ice-text-muted);
  margin-top: 3px;
  text-align: right;
}

.ice-bot .ice-msg-time {
  text-align: left;
}

/* Typing Indicator */
.ice-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  animation: ice-msg-in 0.25s ease forwards;
}

.ice-typing-dots {
  background: var(--ice-bot-bg);
  border: 1px solid var(--ice-border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.ice-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice-text-muted);
  animation: ice-bounce 1.3s ease-in-out infinite;
}

.ice-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.ice-typing-dots span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes ice-bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Quick Replies ── */
.ice-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--ice-border);
  flex-shrink: 0;
}

.ice-quick-btn {
  background: var(--ice-glass) !important;
  border: 1px solid var(--ice-border) !important;
  color: var(--ice-text) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}

.ice-quick-btn:hover {
  background: var(--ice-accent) !important;
  border-color: var(--ice-accent) !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

/* ── Lead Form ── */
.ice-lead-form {
  margin: 10px 0 10px 36px;
  padding: 14px;
  background: var(--ice-glass);
  border: 1px solid var(--ice-border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: ice-msg-in 0.3s ease forwards;
}

.ice-form-row {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.ice-form-row .ice-form-input {
  margin-bottom: 0 !important;
  flex: 1 1 48% !important;
  min-width: 0 !important;
}

.ice-form-input {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--ice-border) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  color: var(--ice-text) !important;
  font-size: 13.5px !important;
  margin-bottom: 8px !important;
  outline: none !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.ice-form-input:focus {
  border-color: var(--ice-accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px var(--ice-accent-glow);
}

.ice-form-input::placeholder {
  color: var(--ice-text-muted);
}

.ice-form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239e99ad' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
  cursor: pointer;
}

.ice-form-select option {
  background: #1e1533;
  color: var(--ice-text);
}

.ice-submit-lead {
  width: 100%;
  background: linear-gradient(135deg, var(--ice-accent), #9f67f7);
  border: none;
  border-radius: 10px;
  padding: 10px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.ice-submit-lead:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ice-submit-lead:active {
  transform: translateY(0);
}

.ice-submit-lead.ice-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Input Bar ── */
.ice-chat-footer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ice-border);
  flex-shrink: 0;
}

.ice-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ice-border);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--ice-text);
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.4;
}

.ice-chat-input:focus {
  border-color: var(--ice-accent);
  box-shadow: 0 0 0 3px var(--ice-accent-glow);
}

.ice-chat-input::placeholder {
  color: var(--ice-text-muted);
}

.ice-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-accent), #9f67f7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px var(--ice-accent-glow);
}

.ice-send-btn:hover {
  transform: scale(1.08);
}

.ice-send-btn:active {
  transform: scale(0.94);
}

.ice-send-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: white !important;
  color: white !important;
  display: block !important;
}

.ice-send-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Powered By ── */
.ice-powered-by {
  text-align: center;
  font-size: 10.5px;
  color: var(--ice-text-muted);
  padding: 4px 0 6px;
  letter-spacing: 0.02em;
}

.ice-powered-by strong {
  color: var(--ice-accent);
}

/* ── Lead Captured Confirmation ── */
.ice-lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  gap: 8px;
  border-top: 1px solid var(--ice-border);
  flex-shrink: 0;
}

.ice-lead-success .ice-success-icon {
  font-size: 36px;
}

.ice-lead-success p {
  font-size: 13px;
  color: var(--ice-text);
  margin: 0;
}

.ice-lead-success strong {
  color: #4ade80;
}

/* ── Date Divider ── */
.ice-date-divider {
  text-align: center;
  font-size: 11px;
  color: var(--ice-text-muted);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.ice-date-divider::before,
.ice-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ice-border);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --ice-w: min(370px, calc(100vw - 40px));
    --ice-h: 70vh;
  }
}

@media (max-width: 480px) {
  :root {
    --ice-w: calc(100vw - 24px);
    --ice-h: calc(100dvh - 80px);
  }

  /* On small screens, pin the modal to near-full-screen */
  #ice-chatbot-window {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.92) !important;
  }

  #ice-chatbot-window.ice-open {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  #ice-chatbot-root {
    bottom: 16px;
    right: 16px;
  }
}

/* ── Custom accent color support ──
   Accent is applied via JS (chatbot.js → applyAccent) using CSS custom property --ice-accent.
   attr() for color properties has limited browser support, so JS is the primary mechanism. */

/* ── Contact Card ─────────────────────────────── */
.ice-contact-card {
  margin: 10px 0 10px 36px;
  background: var(--ice-surface);
  border: 1px solid var(--ice-border);
  border-radius: 14px;
  padding: 14px 16px;
  animation: iceFadeUp 0.3s ease;
}

.ice-contact-card-label {
  font-size: 12px;
  color: var(--ice-text-muted);
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ice-contact-card-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ice-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  line-height: 1;
}

.ice-contact-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.ice-contact-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ice-contact-call {
  background: #0ea5e9;
  color: #fff !important;
}

.ice-contact-wa {
  background: #25d366;
  color: #fff !important;
}

.ice-contact-book {
  background: var(--ice-accent);
  color: #fff !important;
}

/* ============================================================
   ICE AI Chatbot — Welcome Overlay (Namaste Animation)
   ============================================================ */

/* ── Overlay Root ── */
#ice-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

#ice-welcome-overlay.ice-wc-visible {
  opacity: 1;
  pointer-events: all;
}

/* Exit animation */
#ice-welcome-overlay.ice-wc-exit {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ── Backdrop ── */
.ice-wc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 12, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ── Stage (centres everything) ── */
.ice-wc-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 700px;
  max-width: 95vw;
  z-index: 1;
  gap: 0;
}

/* ── Characters ── */
.ice-wc-char {
  width: 160px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ice-wc-char svg,
.ice-wc-char img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
  object-fit: contain;
}

.ice-wc-char-female {
  transform: translateX(-80px);
  align-self: flex-end;
}

.ice-wc-char-male {
  transform: translateX(80px);
  align-self: flex-end;
}

/* Characters slide in */
.ice-wc-chars-in .ice-wc-char-female,
.ice-wc-chars-in .ice-wc-char-male {
  opacity: 1;
  transform: translateX(0);
}

/* Characters fade out */
.ice-wc-chars-out .ice-wc-char {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* ── Centre Panel ── */
.ice-wc-panel {
  flex: 1;
  min-width: 0;
  background: rgba(18, 14, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124, 58, 237, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.ice-wc-panel-in .ice-wc-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Namaste badge */
.ice-wc-namaste-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(159, 103, 247, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-weight: 600;
}

/* Bot avatar */
.ice-wc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9f67f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  animation: ice-wc-avatar-pulse 2.5s ease-in-out infinite;
}

@keyframes ice-wc-avatar-pulse {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  }

  50% {
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.75);
  }
}

.ice-wc-avatar svg {
  width: 36px;
  height: 36px;
}

.ice-wc-avatar svg path {
  stroke: white;
}

.ice-wc-avatar svg circle:first-child {
  fill: rgba(255, 255, 255, 0.15);
}

/* Title */
.ice-wc-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #f0ecff !important;
  margin: 0 0 2px !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Subtitle */
.ice-wc-subtitle {
  font-size: 12px !important;
  color: #9f67f7 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600 !important;
  margin: 0 0 16px !important;
}

/* Copy text */
.ice-wc-copy {
  font-size: 14px !important;
  color: rgba(232, 228, 240, 0.85) !important;
  line-height: 1.65 !important;
  margin: 0 0 24px !important;
}

/* ── Action Buttons ── */
.ice-wc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#ice-wc-start {
  background: linear-gradient(135deg, #7c3aed, #9f67f7) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 26px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  letter-spacing: 0.02em !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45) !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

#ice-wc-start:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.6) !important;
}

#ice-wc-start:active {
  transform: translateY(0) !important;
}

#ice-wc-skip {
  background: transparent !important;
  color: rgba(232, 228, 240, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: color 0.2s, border-color 0.2s !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

#ice-wc-skip:hover {
  color: rgba(232, 228, 240, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ── Mobile: hide characters, full-width panel ── */
@media (max-width: 600px) {
  .ice-wc-stage {
    width: 90vw;
    flex-direction: column;
    align-items: center;
  }

  .ice-wc-char {
    display: none;
  }

  .ice-wc-panel {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .ice-wc-actions {
    flex-direction: column;
  }

  #ice-wc-start,
  #ice-wc-skip {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ── Bubble Hide / Reveal (Welcome Overlay handoff) ── */

/* Bubble is hidden while overlay is active for new visitors */
#ice-chatbot-root.ice-root-pre-reveal {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(40px) scale(0.6) !important;
}

/* Gentle slide-up bounce when overlay hands off to bubble */
@keyframes ice-bubble-reveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.6);
  }

  55% {
    opacity: 1;
    transform: translateY(-10px) scale(1.08);
  }

  75% {
    transform: translateY(5px) scale(0.96);
  }

  90% {
    transform: translateY(-3px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#ice-chatbot-root.ice-root-revealing {
  animation: ice-bubble-reveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* ── ICE Consent Banner ──────────────────────────────────────────── */
#ice-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999998;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ice-consent-banner.ice-cb-visible {
  transform: translateY(0);
}

.ice-cb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: rgba(15, 12, 26, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}

.ice-cb-text {
  flex: 1;
  color: #c4bfda;
  line-height: 1.5;
  margin: 0;
  font-size: 12.5px;
  min-width: 220px;
}

.ice-cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.ice-cb-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  line-height: 1.2;
}

.ice-cb-accept {
  background: linear-gradient(135deg, #7c3aed, #9f67f7);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.ice-cb-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ice-cb-decline {
  background: rgba(255, 255, 255, 0.08);
  color: #9e99ad;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ice-cb-decline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e8e4f0;
}

@media (max-width: 600px) {
  .ice-cb-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .ice-cb-actions {
    width: 100%;
  }

  .ice-cb-btn {
    flex: 1;
    text-align: center;
  }
}