/* Compact public floating actions, similar to high-traffic websites */
.global-page-actions {
  display: none !important;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  display: grid;
  gap: 9px;
  width: auto;
  direction: rtl;
  pointer-events: none;
}

.floating-action-btn,
.chatbot-fab {
  pointer-events: auto;
  position: relative;
  min-width: 124px !important;
  width: auto !important;
  min-height: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 13px 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .14) !important;
  isolation: isolate;
}

.floating-action-btn::before,
.chatbot-fab::before,
.floating-action-btn::after,
.chatbot-fab::after {
  display: none !important;
}

.floating-action-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  font-size: 14px;
  line-height: 1;
}

.floating-action-text,
.chatbot-fab-label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.floating-booking {
  color: #fff !important;
  background: linear-gradient(135deg, #0891b2, #0e7490) !important;
  animation: softBookingPulse 2.8s ease-in-out infinite;
}

.floating-consult,
.chatbot-fab {
  color: #111827 !important;
  background: linear-gradient(135deg, #facc15, #f97316) !important;
  animation: softConsultPulse 2.8s ease-in-out infinite;
  animation-delay: 1.4s;
}

.floating-action-btn:hover,
.chatbot-fab:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18) !important;
}

.floating-action-btn:active,
.chatbot-fab:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .14) !important;
}

.chatbot-icon,
.chatbot-fab img {
  display: none !important;
}

@keyframes softBookingPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(15,23,42,.14), 0 0 0 0 rgba(8,145,178,.22); }
  50% { box-shadow: 0 10px 24px rgba(15,23,42,.16), 0 0 0 8px rgba(8,145,178,0); }
}

@keyframes softConsultPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(15,23,42,.14), 0 0 0 0 rgba(250,204,21,.26); }
  50% { box-shadow: 0 10px 24px rgba(15,23,42,.16), 0 0 0 8px rgba(250,204,21,0); }
}

/* Shared online consultation panel */
.chatbot-panel {
  position: fixed;
  right: 166px;
  bottom: 22px;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 76px));
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15,23,42,.20);
  z-index: 180;
  display: none;
  overflow: hidden;
  direction: rtl;
}

.chatbot-panel.open {
  display: flex;
  flex-direction: column;
}

.chatbot-header {
  padding: 15px;
  background: linear-gradient(135deg, #075985, #0891b2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #075985;
}

.chatbot-header small {
  display: block;
  opacity: .85;
  margin-top: 4px;
  font-size: 12px;
}

#closeChatbot {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8fbff;
}

.bot-message,
.user-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 17px;
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 14px;
}

.bot-message {
  background: #fff;
  color: #334155;
  border: 1px solid #dbeafe;
}

.user-message {
  margin-right: auto;
  background: #0891b2;
  color: #fff;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e0f2fe;
}

.chatbot-form input {
  flex: 1;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  padding: 0 12px;
  font-family: inherit;
}

.chatbot-form button {
  width: 44px;
  border: 0;
  border-radius: 15px;
  background: #0891b2;
  color: #fff;
  cursor: pointer;
}

/* Booking modal */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.54);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}

.booking-modal.open {
  display: flex !important;
}

.modal-content {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

.modal-close {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: #f1f5f9;
  cursor: pointer;
}

.chat-question {
  color: #0f172a;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

.day-buttons,
.time-buttons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.day-buttons button,
.time-buttons button {
  min-height: 44px;
  border-radius: 15px;
  border: 1px solid #bae6fd;
  background: #f8fbff;
  color: #075985;
  font-weight: 900;
  cursor: pointer;
}

.modal-step input,
.modal-step select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  padding: 0 12px;
  margin-bottom: 10px;
  font-family: inherit;
}

.modal-submit-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
}

/* Header consistency patch for public pages */
.navbar,
.contact-nav {
  min-height: 82px;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid #dbeafe !important;
  backdrop-filter: blur(14px);
}

.nav-inner,
.contact-nav .container {
  min-height: 82px;
}

.brand strong,
.contact-nav .brand strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.brand small,
.contact-nav .brand small {
  color: #64748b;
  font-weight: 800;
}

.menu a,
.contact-nav .menu a {
  font-weight: 900;
}

@media (max-width: 720px) {
  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .floating-action-btn,
  .chatbot-fab {
    min-width: 112px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
  }

  .floating-action-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .floating-action-text,
  .chatbot-fab-label {
    font-size: 12px;
  }

  .chatbot-panel {
    right: 12px;
    bottom: 114px;
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 136px));
  }
}


/* =========================================================
   FIX: Mobile floating buttons alignment
   در موبایل دکمه‌های رزرو نوبت و مشاوره آنلاین کنار هم، وسط صفحه و با اندازه طبیعی نمایش داده شوند.
========================================================= */

@media (max-width: 720px) {
  .floating-actions {
    right: auto !important;
    left: 50% !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    pointer-events: none !important;
  }

  .floating-action-btn,
  .chatbot-fab {
    width: auto !important;
    min-width: 118px !important;
    max-width: 150px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    pointer-events: auto !important;
  }

  .floating-action-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 12px !important;
  }

  .floating-action-text,
  .chatbot-fab-label {
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .chatbot-panel {
    right: 12px !important;
    left: 12px !important;
    bottom: 70px !important;
    width: auto !important;
    height: min(520px, calc(100vh - 92px)) !important;
  }
}

@media (max-width: 380px) {
  .floating-actions {
    gap: 8px !important;
  }

  .floating-action-btn,
  .chatbot-fab {
    min-width: 108px !important;
    padding: 0 10px !important;
  }

  .floating-action-text,
  .chatbot-fab-label {
    font-size: 11.5px !important;
  }
}

/* NoorVista 2.1.110 - standout booking CTA inside chatbot answers */
.chat-action-row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 4px 0 12px !important;
  display: flex !important;
  justify-content: flex-start !important;
}

.chat-action-btn.nav-booking {
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 52%, #7c3aed 100%) !important;
  box-shadow: 0 14px 28px rgba(236, 72, 153, .28), 0 0 0 1px rgba(255, 255, 255, .45) inset !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
  animation: chatBookingCtaPulse 2.2s ease-in-out infinite !important;
}

.chat-action-btn.nav-booking::before {
  content: "";
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .24) inset;
  font-size: 14px;
  flex: 0 0 auto;
}

.chat-action-btn.nav-booking::after {
  content: "←";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, .16);
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
}

.chat-action-btn.nav-booking:hover,
.chat-action-btn.nav-booking:focus-visible {
  transform: translateY(-2px) scale(1.01) !important;
  filter: saturate(1.08) brightness(1.02) !important;
  box-shadow: 0 18px 34px rgba(236, 72, 153, .34), 0 0 0 4px rgba(249, 115, 22, .13) !important;
  outline: none !important;
}

.chat-action-btn.nav-booking:active {
  transform: translateY(0) scale(.99) !important;
}

@keyframes chatBookingCtaPulse {
  0%, 100% { box-shadow: 0 14px 28px rgba(236,72,153,.28), 0 0 0 0 rgba(249,115,22,.26), 0 0 0 1px rgba(255,255,255,.45) inset; }
  50% { box-shadow: 0 16px 32px rgba(236,72,153,.32), 0 0 0 9px rgba(249,115,22,0), 0 0 0 1px rgba(255,255,255,.45) inset; }
}


/* NoorVista 2.1.111 - premium accessible chatbot UI */
body.chatbot-open { overflow: hidden; }
body.chatbot-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 25, .42);
  backdrop-filter: blur(5px);
  z-index: 170;
}

.chatbot-panel {
  right: 18px !important;
  bottom: 18px !important;
  width: min(430px, calc(100vw - 32px)) !important;
  height: min(680px, calc(100vh - 44px)) !important;
  border: 1px solid rgba(186, 230, 253, .9) !important;
  border-radius: 30px !important;
  box-shadow: 0 30px 90px rgba(6, 30, 46, .28) !important;
  background: #ffffff !important;
}

.chatbot-panel.open {
  display: flex !important;
  flex-direction: column !important;
}

.chatbot-header {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px !important;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 9rem),
    linear-gradient(135deg, #0a6b95, #0ea5c6) !important;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.chatbot-header::after {
  content: "پاسخ ساده و خوانا برای بیماران چشمی";
  position: absolute;
  inset-inline-start: 18px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.1px;
}

.chatbot-header-main { gap: 12px !important; }
.chatbot-header-main strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.45;
}

.chatbot-header small {
  margin-top: 5px !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  opacity: .96 !important;
}

.chatbot-header-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 8px 22px rgba(4, 22, 35, .18);
  font-size: 20px;
}

#closeChatbot {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.15) !important;
  font-size: 26px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

#closeChatbot:hover,
#closeChatbot:focus-visible {
  background: rgba(255,255,255,.24) !important;
  outline: 0;
}

.chatbot-messages {
  flex: 1 1 auto;
  padding: 22px 16px 18px !important;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, .22), transparent 18rem),
    linear-gradient(180deg, #f7fbff 0%, #f5f9fc 54%, #fbfdff 100%) !important;
  scrollbar-width: thin;
}

.chatbot-messages::-webkit-scrollbar { width: 10px; }
.chatbot-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(14, 165, 198, .25);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.bot-message,
.user-message {
  max-width: 94% !important;
  margin-bottom: 12px !important;
  padding: 14px 15px !important;
  border-radius: 21px !important;
  font-size: 15.5px !important;
  line-height: 2.05 !important;
  letter-spacing: -.05px;
  white-space: pre-line;
}

.bot-message {
  background: #ffffff !important;
  color: #243847 !important;
  border: 1px solid #d8e9f4 !important;
  box-shadow: 0 12px 24px rgba(14, 44, 64, .06);
}

.bot-message.is-welcome {
  border-color: #bfe5f7 !important;
  background: linear-gradient(180deg, #ffffff, #f7fcff) !important;
}

.bot-message.is-typing {
  color: #4b6476 !important;
  background: #f2f8fb !important;
}

.user-message {
  margin-right: auto !important;
  margin-left: 0 !important;
  background: linear-gradient(135deg, #0b8db3, #0a6b95) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(10, 107, 149, .2);
}

.chatbot-message-text { white-space: pre-line; }

.chatbot-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.chatbot-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cfe7f1;
  border-radius: 999px;
  background: #ffffff;
  color: #0c5f81;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 44, 64, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.chatbot-chip:hover,
.chatbot-chip:focus-visible {
  border-color: #7dd3fc;
  box-shadow: 0 10px 18px rgba(14, 44, 64, .08);
  transform: translateY(-1px);
  outline: none;
}

.chatbot-form {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px !important;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.8), #ffffff 28%) !important;
  border-top: 1px solid #d9ebf4 !important;
  box-shadow: 0 -10px 26px rgba(7, 36, 55, .05);
}

.chatbot-form input {
  min-height: 54px !important;
  border: 1px solid #bcd3df !important;
  border-radius: 18px !important;
  padding: 0 15px !important;
  background: #fafdff !important;
  color: #123247;
  font-size: 16px !important;
  line-height: 1.4;
}

.chatbot-form input::placeholder { color: #7a8f9f; }
.chatbot-form input:focus {
  border-color: #38bdf8 !important;
  outline: 4px solid rgba(56, 189, 248, .16);
  background: #ffffff !important;
}

.chatbot-form button {
  width: 54px !important;
  min-width: 54px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #0ea5c6, #0a6b95) !important;
  box-shadow: 0 12px 24px rgba(10, 107, 149, .22);
  font-size: 18px;
}

.chatbot-form button:hover,
.chatbot-form button:focus-visible {
  filter: saturate(1.06);
  transform: translateY(-1px);
  outline: none;
}

.chat-action-row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
}

.chat-action-btn.nav-booking {
  min-height: 52px !important;
  border-radius: 18px !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
}

@media (max-width: 720px) {
  .chatbot-panel {
    right: 8px !important;
    left: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    height: min(88svh, 760px) !important;
    border-radius: 28px !important;
  }

  .chatbot-header {
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px 14px !important;
  }

  .chatbot-header::after {
    inset-inline-start: 14px;
    bottom: 8px;
    font-size: 10.5px;
    padding: 4px 9px;
  }

  .chatbot-header-main strong { font-size: 1.02rem; }
  .chatbot-header small { font-size: 12px !important; }

  .chatbot-messages {
    padding: 18px 12px 14px !important;
  }

  .bot-message,
  .user-message {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 2 !important;
    padding: 13px 14px !important;
  }

  .chatbot-quick-prompts {
    margin-top: 8px;
    gap: 7px;
  }

  .chatbot-chip {
    min-height: 36px;
    font-size: 12.5px;
    padding: 7px 11px;
  }

  .chatbot-form {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .chatbot-form input {
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .chatbot-form button {
    width: 52px !important;
    min-width: 52px !important;
  }

  .chat-action-btn.nav-booking {
    min-height: 50px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 420px) {
  .chatbot-header-avatar { width: 44px !important; height: 44px !important; }
  #closeChatbot { width: 40px !important; height: 40px !important; }
  .chatbot-chip { width: auto; max-width: 100%; }
}


/* NoorVista 2.1.112 - fix chatbot header layout and replace avatar with clean chat icon */
.chatbot-header::after { content: none !important; display: none !important; }
.chatbot-header {
  min-height: 108px !important;
  padding: 18px 18px 16px !important;
  align-items: center !important;
}
.chatbot-header-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.chatbot-header-main > div { min-width: 0; }
.chatbot-header-avatar {
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
}
.chatbot-header-avatar--icon svg,
.chatbot-header-avatar svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  fill: #0a789c !important;
}
.chatbot-header-main img.chatbot-header-avatar { display: none !important; }
.chatbot-header-main strong,
.chatbot-header-main small {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .chatbot-header {
    min-height: 102px !important;
    padding: 16px 14px 14px !important;
  }
  .chatbot-header-main {
    gap: 10px !important;
  }
  .chatbot-header-avatar {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }
  .chatbot-header-avatar--icon svg,
  .chatbot-header-avatar svg {
    width: 26px !important;
    height: 26px !important;
  }
}


/* NoorVista 2.1.113 - public pages final QA: mobile chatbot fit + reliable buttons */
.chatbot-panel.open {
  display: flex !important;
  flex-direction: column !important;
}

.chatbot-panel,
.chatbot-panel * { box-sizing: border-box; }

.chatbot-header {
  min-height: 86px !important;
  padding: 14px 14px !important;
  gap: 10px !important;
}

.chatbot-header-main {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.chatbot-header-avatar {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 18px rgba(4, 22, 35, .16) !important;
}

.chatbot-header-avatar--icon svg,
.chatbot-header-avatar svg {
  width: 25px !important;
  height: 25px !important;
  display: block !important;
  fill: #0b789c !important;
}

.chatbot-header-main img.chatbot-header-avatar { display: none !important; }
.chatbot-header-main > div { min-width: 0 !important; flex: 1 1 auto !important; }
.chatbot-header-main strong {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  white-space: normal !important;
}
.chatbot-header-main small {
  font-size: 11.5px !important;
  line-height: 1.65 !important;
  white-space: normal !important;
}
#closeChatbot {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}

/* Service icons must not depend on emoji fonts. */
.gateway-icon,
.service-index-icon,
.service-detail-icon {
  position: relative !important;
  color: #0a789c !important;
  font-size: 0 !important;
  overflow: hidden !important;
}
.gateway-icon svg,
.service-index-icon svg,
.service-detail-icon svg {
  width: 34px !important;
  height: 34px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.gateway-icon::before,
.service-index-icon::before,
.service-detail-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 5C6.4 5 2.3 10.1 1.5 11.2a1.3 1.3 0 0 0 0 1.6C2.3 13.9 6.4 19 12 19s9.7-5.1 10.5-6.2a1.3 1.3 0 0 0 0-1.6C21.7 10.1 17.6 5 12 5Zm0 11.2A4.2 4.2 0 1 1 12 7.8a4.2 4.2 0 0 1 0 8.4Zm0-1.9a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 5C6.4 5 2.3 10.1 1.5 11.2a1.3 1.3 0 0 0 0 1.6C2.3 13.9 6.4 19 12 19s9.7-5.1 10.5-6.2a1.3 1.3 0 0 0 0-1.6C21.7 10.1 17.6 5 12 5Zm0 11.2A4.2 4.2 0 1 1 12 7.8a4.2 4.2 0 0 1 0 8.4Zm0-1.9a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gateway-beauty .gateway-icon::before,
.beauty-index .service-index-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 13.9 8l5.6 2-5.6 2L12 17.5 10.1 12l-5.6-2 5.6-2L12 2.5Zm6 12 1 2.8 2.8 1-2.8 1-1 2.7-1-2.7-2.8-1 2.8-1 1-2.8ZM5.5 14 6.6 17l3 1.1-3 1.1-1.1 3-1.1-3-3-1.1 3-1.1 1.1-3Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 13.9 8l5.6 2-5.6 2L12 17.5 10.1 12l-5.6-2 5.6-2L12 2.5Zm6 12 1 2.8 2.8 1-2.8 1-1 2.7-1-2.7-2.8-1 2.8-1 1-2.8ZM5.5 14 6.6 17l3 1.1-3 1.1-1.1 3-1.1-3-3-1.1 3-1.1 1.1-3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 720px) {
  html.chatbot-lock,
  body.chatbot-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.chatbot-open::after { display: none !important; }

  body.chatbot-open .floating-actions {
    display: none !important;
  }

  .chatbot-panel {
    position: fixed !important;
    inset: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    z-index: 250000 !important;
    box-shadow: none !important;
  }

  .chatbot-header {
    min-height: 78px !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px !important;
    border-radius: 0 !important;
  }

  .chatbot-header-main {
    gap: 9px !important;
  }

  .chatbot-header-avatar {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 14px !important;
  }

  .chatbot-header-avatar--icon svg,
  .chatbot-header-avatar svg {
    width: 23px !important;
    height: 23px !important;
  }

  .chatbot-header-main strong {
    font-size: .98rem !important;
  }

  .chatbot-header-main small {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  #closeChatbot {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 13px !important;
  }

  .chatbot-messages {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    padding: 14px 12px 12px !important;
  }

  .bot-message,
  .user-message {
    max-width: 96% !important;
    font-size: 14.5px !important;
    line-height: 1.95 !important;
    padding: 12px 13px !important;
  }

  .chatbot-form {
    flex: 0 0 auto !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .chatbot-form input {
    min-height: 50px !important;
    border-radius: 16px !important;
  }

  .chatbot-form button {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
  }
}
