/**
 * Ice Cleaning Services - Frontend Chat Stylesheet
 * Brand colors: #112d46 (Navy), #FF5000 (Accent Orange)
 */

:root {
  --ice-chat-primary: #112d46;
  --ice-chat-primary-hover: #0c2033;
  --ice-chat-accent: #FF5000;
  --ice-chat-accent-hover: #e04600;
  --ice-chat-bg: #ffffff;
  --ice-chat-bg-soft: #f8fafc;
  --ice-chat-border: #e2e8f0;
  --ice-chat-text: #1e293b;
  --ice-chat-muted: #64748b;
  --ice-chat-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ice-chat-radius: 16px;
  --ice-chat-shadow: 0 14px 44px -8px rgba(17, 45, 70, 0.32), 0 2px 10px rgba(0, 0, 0, 0.06);
}

.ice-chat-widget-wrapper {
  font-family: var(--ice-chat-font);
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999990;
  box-sizing: border-box;
}

.ice-chat-widget-wrapper *,
.ice-chat-widget-wrapper *::before,
.ice-chat-widget-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Floating Teaser Bubble
   ========================================================================== */
.ice-chat-teaser {
  position: absolute;
  bottom: 74px;
  right: 4px;
  background: #ffffff;
  border: 1.5px solid var(--ice-chat-accent);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 22px rgba(17, 45, 70, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  animation: iceTeaserPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  z-index: 999992;
}

.ice-chat-teaser::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1.5px solid var(--ice-chat-accent);
  border-bottom: 1.5px solid var(--ice-chat-accent);
  transform: rotate(45deg);
}

@keyframes iceTeaserPop {
  from { opacity: 0; transform: scale(0.8) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ice-chat-teaser-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ice-chat-primary);
  line-height: 1.3;
}

.ice-chat-teaser-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.ice-chat-teaser-close:hover {
  color: #ef4444;
}

/* ==========================================================================
   Floating Launcher Button
   ========================================================================== */
.ice-chat-launcher {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ice-chat-primary);
  border: 2px solid var(--ice-chat-accent);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(17, 45, 70, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.ice-chat-launcher:hover {
  transform: scale(1.06) translateY(-2px);
  background: var(--ice-chat-accent);
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(255, 80, 0, 0.4);
}

.ice-chat-launcher:active {
  transform: scale(0.96);
}

.ice-chat-icon-chat,
.ice-chat-icon-close {
  position: absolute;
  width: 28px;
  height: 28px;
  transition: all 0.25s ease;
  fill: currentColor;
}

.ice-chat-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.ice-chat-widget-wrapper.is-open .ice-chat-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.ice-chat-widget-wrapper.is-open .ice-chat-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Online / Offline Status Dot */
.ice-chat-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
}

.ice-chat-online-dot::after {
  content: "";
  position: absolute;
  top: -2.5px; left: -2.5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.6;
  animation: icePulseDot 1.8s infinite ease-out;
}

.ice-chat-online-dot.is-offline {
  background: #ef4444;
  border-color: #ffffff;
}

.ice-chat-online-dot.is-offline::after {
  display: none;
}

@keyframes icePulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   Chat Box Container
   ========================================================================== */
.ice-chat-box {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 36px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--ice-chat-bg);
  border-radius: var(--ice-chat-radius);
  box-shadow: var(--ice-chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 45, 70, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999991;
}

.ice-chat-widget-wrapper.is-open .ice-chat-box {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.ice-chat-header {
  background: var(--ice-chat-primary);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ice-chat-accent);
}

.ice-chat-header-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ice-chat-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  background: #091a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ice-chat-accent, #FF5000);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}

.ice-chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ice-chat-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--ice-chat-accent);
}

.ice-chat-header-info {
  display: flex;
  flex-direction: column;
}

.ice-chat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.ice-chat-header-status {
  font-size: 11.5px;
  color: #bae6fd;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.ice-chat-status-indicator {
  display: inline-block;
  width: 7.5px;
  height: 7.5px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.ice-chat-header-status.is-offline {
  color: #fed7aa;
}

.ice-chat-header-status.is-offline .ice-chat-status-indicator {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.ice-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ice-chat-btn-header {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.ice-chat-btn-header:hover {
  background: var(--ice-chat-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.ice-chat-btn-header svg {
  width: 16px;
  height: 16px;
}

/* Body / Thread */
.ice-chat-body {
  flex: 1;
  background: var(--ice-chat-bg-soft);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Messages */
.ice-msg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: iceMsgFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes iceMsgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ice-msg-row.is-bot {
  align-items: flex-start;
}

.ice-msg-row.is-user {
  align-items: flex-end;
}

.ice-msg-bubble {
  max-width: 86%;
  padding: 11px 15px;
  font-size: 13.8px;
  line-height: 1.45;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ice-msg-row.is-bot .ice-msg-bubble {
  background: #ffffff;
  color: var(--ice-chat-text);
  border-radius: 14px 14px 14px 4px;
  border: 1px solid #e2e8f0;
}

.ice-msg-row.is-user .ice-msg-bubble {
  background: var(--ice-chat-primary);
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
}

.ice-msg-time {
  font-size: 10.5px;
  color: #94a3b8;
  padding: 0 4px;
}

/* Typing Indicator Bubble */
.ice-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ice-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--ice-chat-accent);
  border-radius: 50%;
  animation: iceTypingBounce 1.3s infinite ease-in-out;
}

.ice-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ice-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes iceTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ==========================================================================
   Interactive Choices & Step Forms
   ========================================================================= */
/* Welcome Urgent Banner (Direct bij start) */
.ice-welcome-urgent-box {
  background: #fff8f5;
  border: 1px solid #fed7aa;
  border-left: 3.5px solid var(--ice-chat-accent, #FF5000);
  border-radius: 9px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 3px 0 6px 0;
  box-shadow: 0 1px 4px rgba(255, 80, 0, 0.06);
  width: 100%;
  max-width: 95%;
}

.ice-welcome-urgent-label {
  font-size: 12.5px;
  color: var(--ice-chat-primary, #112d46);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.ice-welcome-urgent-icon {
  font-size: 13.5px;
  line-height: 1;
}

.ice-chat-widget-wrapper a.ice-welcome-urgent-btn,
a.ice-welcome-urgent-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: var(--ice-chat-primary, #112d46) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--ice-chat-accent, #FF5000) !important;
  border-bottom: 2px solid var(--ice-chat-accent, #FF5000) !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 2px 6px rgba(17, 45, 70, 0.14) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.ice-chat-widget-wrapper a.ice-welcome-urgent-btn:hover,
a.ice-welcome-urgent-btn:hover {
  background: var(--ice-chat-accent, #FF5000) !important;
  border-color: var(--ice-chat-accent, #FF5000) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(255, 80, 0, 0.3) !important;
}

/* Step 1: Customer Type Options */
.ice-choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 90%;
  margin-top: 4px;
}

.ice-choice-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  color: var(--ice-chat-primary);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(17, 45, 70, 0.05);
  text-align: left;
}

.ice-choice-btn:hover {
  border-color: var(--ice-chat-accent);
  background: #fff8f5;
  color: var(--ice-chat-accent);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.15);
}

.ice-choice-icon {
  font-size: 20px;
  line-height: 1;
}

.ice-choice-label {
  display: flex;
  flex-direction: column;
}

.ice-choice-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* Step 2: Email Prompt Form */
.ice-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 96%;
  margin-top: 4px;
}

.ice-email-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ice-email-input {
  flex: 1;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 13px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  height: 42px !important;
}

.ice-email-input:focus {
  border-color: var(--ice-chat-accent, #FF5000) !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.18) !important;
}

/* Verder Button: Styled in Ice Navy #112d46 with Orange #FF5000 accent */
.ice-chat-widget-wrapper button.ice-email-submit,
.ice-email-form button.ice-email-submit,
button.ice-email-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ice-chat-primary, #112d46) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--ice-chat-accent, #FF5000) !important;
  border-bottom: 3px solid var(--ice-chat-accent, #FF5000) !important;
  border-radius: 8px !important;
  padding: 0 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 3px 10px rgba(17, 45, 70, 0.25) !important;
  text-shadow: none !important;
  text-transform: none !important;
  outline: none !important;
  white-space: nowrap !important;
  height: 42px !important;
  margin: 0 !important;
}

.ice-chat-widget-wrapper button.ice-email-submit:hover,
.ice-email-form button.ice-email-submit:hover,
button.ice-email-submit:hover {
  background: var(--ice-chat-accent, #FF5000) !important;
  border-color: var(--ice-chat-accent, #FF5000) !important;
  border-bottom-color: #d94300 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(255, 80, 0, 0.35) !important;
}

.ice-chat-widget-wrapper button.ice-email-submit:active,
button.ice-email-submit:active {
  transform: translateY(0) !important;
}

.ice-chat-widget-wrapper button.ice-email-submit:disabled,
button.ice-email-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.ice-email-error {
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 600;
  display: none;
}

/* Step 4: Final Urgent / Busy Callout Card */
.ice-busy-card {
  background: #fffdfb;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 3px 12px rgba(255, 80, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 96%;
}

.ice-busy-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 500;
}

/* Service CTA Boxes in Step 4 (Simulator, Products, Contact Form) */
.ice-busy-service-box,
.ice-busy-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid var(--ice-chat-primary, #112d46);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0;
  transition: all 0.2s ease;
}

.ice-busy-service-box.ice-box-simulator {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-left-color: #0284c7;
}

.ice-busy-service-box.ice-box-products {
  background: #fff8f5;
  border-color: #ffedd5;
  border-left-color: var(--ice-chat-accent, #FF5000);
}

.ice-busy-service-box.ice-box-contact {
  background: #f0fdfa;
  border-color: #ccfbf1;
  border-left-color: #0d9488;
}

.ice-busy-service-header {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ice-chat-primary, #112d46);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.ice-busy-service-icon,
.ice-busy-contact-icon {
  font-size: 14px;
  line-height: 1;
}

.ice-busy-service-desc,
.ice-busy-contact-desc {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  font-weight: 500;
}

.ice-chat-widget-wrapper a.ice-busy-service-btn,
.ice-chat-widget-wrapper a.ice-busy-contact-btn,
.ice-busy-card a.ice-busy-service-btn,
.ice-busy-card a.ice-busy-contact-btn,
a.ice-busy-service-btn,
a.ice-busy-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: var(--ice-chat-primary, #112d46) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--ice-chat-accent, #FF5000) !important;
  border-bottom: 2.5px solid var(--ice-chat-accent, #FF5000) !important;
  border-radius: 6px !important;
  padding: 7px 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 7px rgba(17, 45, 70, 0.16) !important;
  text-shadow: none !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
  width: fit-content !important;
}

.ice-chat-widget-wrapper a.ice-busy-service-btn:hover,
.ice-chat-widget-wrapper a.ice-busy-contact-btn:hover,
.ice-busy-card a.ice-busy-service-btn:hover,
.ice-busy-card a.ice-busy-contact-btn:hover,
a.ice-busy-service-btn:hover,
a.ice-busy-contact-btn:hover {
  background: var(--ice-chat-accent, #FF5000) !important;
  border-color: var(--ice-chat-accent, #FF5000) !important;
  border-bottom-color: #d94300 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.32) !important;
}

.ice-busy-urgent-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 45, 70, 0.14);
}

.ice-busy-urgent-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ice-chat-primary, #112d46);
  line-height: 1.3;
}

.ice-busy-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ice-chat-primary);
  color: #ffffff !important;
  border: 2px solid var(--ice-chat-accent);
  border-bottom: 3px solid var(--ice-chat-accent);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(17, 45, 70, 0.25);
}

.ice-busy-phone-btn:hover {
  background: var(--ice-chat-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.35);
}

.ice-chat-widget-wrapper button.ice-chat-restart-btn,
button.ice-chat-restart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background: #f1f5f9 !important;
  color: var(--ice-chat-primary, #112d46) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: 100% !important;
  margin-top: 4px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1.2 !important;
  height: auto !important;
}

.ice-chat-widget-wrapper button.ice-chat-restart-btn:hover,
button.ice-chat-restart-btn:hover {
  background: #ffffff !important;
  border-color: var(--ice-chat-accent, #FF5000) !important;
  color: var(--ice-chat-accent, #FF5000) !important;
  box-shadow: 0 3px 10px rgba(255, 80, 0, 0.18) !important;
  transform: translateY(-1px) !important;
}

.ice-chat-restart-btn svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.ice-busy-sub {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================
   Bottom Message Input Bar
   ========================================================== */
.ice-chat-footer {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid var(--ice-chat-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ice-chat-footer.is-locked {
  background: #f8fafc;
  opacity: 0.7;
  pointer-events: none;
}

.ice-chat-textarea {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.35;
  max-height: 80px;
  resize: none;
  outline: none;
  font-family: inherit;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.ice-chat-textarea:focus {
  border-color: var(--ice-chat-accent);
  box-shadow: 0 0 0 2px rgba(255, 80, 0, 0.15);
}

.ice-chat-widget-wrapper button.ice-chat-send-btn,
button.ice-chat-send-btn {
  background: var(--ice-chat-primary, #112d46) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--ice-chat-accent, #FF5000) !important;
  border-bottom: 2.5px solid var(--ice-chat-accent, #FF5000) !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(17, 45, 70, 0.2) !important;
  text-shadow: none !important;
  outline: none !important;
}

.ice-chat-widget-wrapper button.ice-chat-send-btn:hover:not(:disabled),
button.ice-chat-send-btn:hover:not(:disabled) {
  background: var(--ice-chat-accent, #FF5000) !important;
  border-color: var(--ice-chat-accent, #FF5000) !important;
  border-bottom-color: #d94300 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.35) !important;
}

.ice-chat-widget-wrapper button.ice-chat-send-btn:disabled,
button.ice-chat-send-btn:disabled {
  background: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
}

.ice-chat-send-btn svg {
  width: 17px !important;
  height: 17px !important;
  color: #ffffff !important;
  fill: currentColor !important;
  transform: rotate(45deg) translate(-1px, 1px) !important;
}

/* ==========================================================================
   Mobile Responsive (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .ice-chat-widget-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .ice-chat-launcher {
    width: 56px;
    height: 56px;
  }

  .ice-chat-teaser {
    bottom: 68px;
    right: 0;
    max-width: 260px;
    white-space: normal;
  }

  /* Full Bottom Sheet on Mobile */
  .ice-chat-box {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 999999;
  }

  .ice-chat-header {
    padding: 16px;
    border-radius: 0;
  }

  .ice-chat-footer {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   Google reCAPTCHA Conflict Resolution
   Verplaats de zwevende Google reCAPTCHA v3 badge naar linksonder
   zodat de Ice Chat knop rechtsonder 100% vrij en klikbaar blijft.
   ========================================================================== */
.grecaptcha-badge {
  left: 14px !important;
  right: auto !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Verberg reCAPTCHA als de chat op mobiel open staat */
body:has(.ice-chat-widget-wrapper.is-open) .grecaptcha-badge {
  display: none !important;
}

/* ==========================================================================
   Quick Action Pills (Innovi style) & Rich Bot Answers
   ========================================================================== */
.ice-quick-pills-bar {
  background: #f8fafc;
  border-top: 1px solid rgba(17, 45, 70, 0.08);
  border-bottom: 1px solid rgba(17, 45, 70, 0.05);
  padding: 8px 12px 10px;
  flex-shrink: 0;
}

.ice-quick-pills-track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-height: 88px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 2px;
}

.ice-quick-pills-track::-webkit-scrollbar {
  width: 4px;
}

.ice-quick-pills-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ice-quick-pill {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  color: var(--ice-chat-primary, #112d46);
  border: 1.5px solid rgba(17, 45, 70, 0.22);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(17, 45, 70, 0.06);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: inherit;
}

.ice-quick-pill:hover {
  background: var(--ice-chat-primary, #112d46);
  color: #ffffff;
  border-color: var(--ice-chat-accent, #FF5000);
  transform: translateY(-1.5px);
  box-shadow: 0 3px 10px rgba(17, 45, 70, 0.18);
}

.ice-quick-pill:active {
  transform: scale(0.96);
}

/* Rich HTML Bot Answers (from TinyMCE editor) */
.ice-bot-rich-answer {
  line-height: 1.55;
  color: #1e293b;
  font-size: 13.5px;
  word-break: break-word;
}

.ice-bot-rich-answer p {
  margin: 0 0 10px 0;
}

.ice-bot-rich-answer p:last-child {
  margin-bottom: 0;
}

.ice-bot-rich-answer a {
  color: var(--ice-chat-accent, #FF5000) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 2.5px;
  transition: color 0.15s ease;
}

.ice-bot-rich-answer a:hover {
  color: #d94300 !important;
  text-decoration: underline !important;
}

.ice-bot-rich-answer ul,
.ice-bot-rich-answer ol {
  margin: 6px 0 10px 0;
  padding-left: 20px;
}

.ice-bot-rich-answer li {
  margin-bottom: 4px;
  line-height: 1.45;
}

.ice-bot-rich-answer strong,
.ice-bot-rich-answer b {
  font-weight: 700;
  color: var(--ice-chat-primary, #112d46);
}

.ice-bot-rich-answer h3,
.ice-bot-rich-answer h4,
.ice-bot-rich-answer h5 {
  margin: 8px 0 4px 0;
  color: var(--ice-chat-primary, #112d46);
  font-size: 14px;
}

.ice-bot-rich-answer blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--ice-chat-accent, #FF5000);
  color: #475569;
  font-style: italic;
}

