.entry-title {
   display: none;
}

/* Fix layout shift from Google Fonts loading */
@font-face {
  font-family: 'Roboto';
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Slab';
  font-display: swap;
}


/* ============================================================
   MOBILITY360 CHATBOT — BLOCK 1 (CSS)
   Paste this into: ProPhoto > Customizer > Layout > Custom CSS
   (or ProPhoto > Settings > Advanced > Custom Code)
   ============================================================ */

/* CONFIGURATION — Edit these CSS variables to change the look */
:root {
  --brand: #000000;
  --brand-light: #333333;
  --accent: #222222;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #111111;
  --text-mid: #555555;
  --text-light: #888888;
  --bot-bubble: #f0f0f0;
  --user-bubble: #111111;
  --user-text: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0,0,0,0.15);
  --radius: 16px;
  --chat-width: 380px;
  --chat-height: 520px;
}

/* RESET & BASE */
#m360-chat-widget, #m360-chat-widget * {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* FLOATING BUBBLE */
#m360-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: m360-pulse 2.5s infinite;
}
#m360-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
#m360-bubble.open {
  animation: none;
}
#m360-bubble svg { width: 28px; height: 28px; }
@keyframes m360-pulse {
  0%, 100% { box-shadow: 0 4px 16px var(--shadow); }
  50% { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
}

/* CHAT WINDOW */
#m360-chat {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: var(--chat-width);
  height: var(--chat-height);
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#m360-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
#m360-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#m360-header-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
#m360-header-sub {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}
#m360-close-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#m360-close-btn:hover { background: rgba(255,255,255,0.15); }
#m360-close-btn svg { width: 20px; height: 20px; }

/* Messages area */
#m360-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-light);
}
#m360-messages::-webkit-scrollbar { width: 5px; }
#m360-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Message bubbles */
.m360-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: m360-fadeIn 0.3s ease;
}
.m360-msg.bot {
  align-self: flex-start;
  background: var(--bot-bubble);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.m360-msg.user {
  align-self: flex-end;
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 4px;
}
@keyframes m360-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Links in bot messages — card-style buttons */
.m360-link-btn {
  display: block;
  margin-top: 10px;
  padding: 11px 16px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: none;
  letter-spacing: 0.2px;
}
.m360-link-btn::after {
  content: ' →';
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.m360-link-btn:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.m360-link-btn:hover::after {
  opacity: 1;
  transform: translateX(3px);
}
.m360-link-btn + .m360-link-btn {
  margin-top: 6px;
}

/* Typing indicator */
.m360-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bot-bubble);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.m360-typing span {
  width: 7px; height: 7px;
  background: #999;
  border-radius: 50%;
  animation: m360-dot 1.2s infinite;
}
.m360-typing span:nth-child(2) { animation-delay: 0.2s; }
.m360-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes m360-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input area */
#m360-input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  flex-shrink: 0;
}
#m360-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg-white);
  color: var(--text-dark);
}
#m360-input:focus { border-color: var(--brand); }
#m360-input::placeholder { color: var(--text-light); }
#m360-send-btn {
  width: 38px;
  height: 38px;
  margin-left: 8px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
#m360-send-btn:hover { opacity: 0.85; }
#m360-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#m360-send-btn svg { width: 18px; height: 18px; }

/* PAGE MODE (full-page embed) */
#m360-chat.page-mode {
  position: relative;
  bottom: auto;
  right: auto;
  width: 100%;
  max-width: 600px;
  height: 70vh;
  min-height: 480px;
  margin: 20px auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  border-radius: var(--radius);
}

/* ============================================================
   TOUCH DEVICE FULLSCREEN — any phone or tablet
   Uses pointer:coarse to detect finger/touch interaction
   so every touch device gets fullscreen, no zooming needed.
   Desktop with mouse/trackpad is completely unaffected.
   ============================================================ */
@media (pointer: coarse) {

  /* ---------- Chat becomes true fullscreen overlay ---------- */
  #m360-chat:not(.page-mode) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    /* Safe-area insets for notched phones */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ---------- Bubble: slightly smaller on touch devices ---------- */
  #m360-bubble {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  #m360-bubble svg { width: 24px; height: 24px; }

  /* When chat is open, hide the bubble completely.
     Close is ONLY via the X in the header — no overlap with send. */
  #m360-bubble.open {
    display: none !important;
  }

  /* ---------- Header: fixed at top with notch padding ---------- */
  #m360-chat:not(.page-mode) #m360-header {
    flex-shrink: 0;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  /* ---------- Messages: fill the middle, smooth scroll ---------- */
  #m360-chat:not(.page-mode) #m360-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---------- Input bar: pinned at bottom with notch padding ---------- */
  #m360-chat:not(.page-mode) #m360-input-area {
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* Prevent iOS auto-zoom when focusing the text input */
  #m360-input {
    font-size: 16px !important;
  }

  /* ---------- Lock body scroll when chat is open ---------- */
  body.m360-chat-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}