#himalayaninn-chatbot-root,
.himalayaninn-chatbot-root {
  --hi-primary: #350606;
  --hi-primary-light: #5c1010;
  --hi-primary-deep: #240404;
  --hi-accent: #c8923a;
  --hi-accent-light: #e4b86a;
  --hi-ink: #160808;
  --hi-muted: #7c5040;
  --hi-line: rgba(200, 146, 58, 0.24);
  --hi-panel: #fbf5ec;
  --hi-soft: #f5ecd8;
  --hi-cream: #fffdf9;
  --hi-shadow: 0 22px 54px rgba(16, 8, 8, 0.32);
  --hi-ease: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hi-chatbot[hidden],
.hi-launcher[hidden],
.hi-reservation[hidden] {
  display: none !important;
}

/* Hide Tawk.to bubble until the AI chatbot hands off to live chat. */
html:not(.hi-tawk-visible) #tawk-bubble-container,
html:not(.hi-tawk-visible) .tawk-min-container,
html:not(.hi-tawk-visible) .tawk-max-container {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.hi-tawk-visible #tawk-bubble-container,
html.hi-tawk-visible .tawk-min-container,
html.hi-tawk-visible .tawk-max-container {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.himalayaninn-chatbot-root.hi-tawk-handoff .hi-chatbot,
.himalayaninn-chatbot-root.hi-tawk-handoff .hi-launcher {
  z-index: 9990;
}

/* ── Launcher ── */
.hi-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid rgba(228, 184, 106, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hi-primary) 0%, var(--hi-primary-light) 55%, var(--hi-primary-deep) 100%);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--hi-shadow);
  transition: transform 0.25s var(--hi-ease), box-shadow 0.25s var(--hi-ease), border-color 0.25s var(--hi-ease);
}

.hi-launcher::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.85) 0 6px, transparent 7px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-8deg);
}

.hi-launcher:hover,
.hi-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: var(--hi-accent-light);
  box-shadow: 0 24px 58px rgba(16, 8, 8, 0.38);
  outline: none;
}

/* ── Panel shell ── */
.hi-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  width: min(400px, calc(100vw - 24px));
  height: min(740px, calc(100dvh - 34px));
  max-height: min(740px, calc(100dvh - 34px));
  --hi-keyboard-offset: 0px;
  display: flex;
  flex-direction: column;
  background: var(--hi-cream);
  color: var(--hi-ink);
  border: 1px solid var(--hi-line);
  border-radius: 18px;
  box-shadow: var(--hi-shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.28s var(--hi-ease), transform 0.28s var(--hi-ease), height 0.2s var(--hi-ease);
}

.hi-chatbot:not([hidden]),
.hi-chatbot.hi-chatbot-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Header ── */
.hi-header {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 14px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 184, 106, 0.14) 0%, transparent 42%),
    linear-gradient(135deg, var(--hi-primary) 0%, var(--hi-primary-light) 52%, var(--hi-primary-deep) 100%);
  border-bottom: 1px solid rgba(228, 184, 106, 0.28);
}

.hi-header-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hi-accent-light), var(--hi-accent), var(--hi-accent-light), transparent);
  opacity: 0.85;
}

.hi-logo-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 4, 4, 0.72);
  color: var(--hi-primary);
  font-family: "Cinzel", serif;
  font-weight: 600;
  overflow: hidden;
  border: 1px solid rgba(228, 184, 106, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  padding: 3px;
}

.hi-logo-wrap--round .hi-logo {
  border-radius: 50%;
}

.hi-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
  box-sizing: border-box;
}

.hi-title-wrap {
  min-width: 0;
}

.hi-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hi-subtitle {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(245, 236, 216, 0.82);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hi-icon-button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(228, 184, 106, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--hi-ease), border-color 0.2s var(--hi-ease), transform 0.2s var(--hi-ease);
}

.hi-live-btn {
  background: rgba(200, 146, 58, 0.22);
  border-color: rgba(228, 184, 106, 0.55);
}

.hi-close-btn {
  min-width: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.hi-close-btn span {
  display: block;
  margin-top: -2px;
}

.hi-icon-button:hover,
.hi-icon-button:focus-visible {
  background: rgba(200, 146, 58, 0.32);
  border-color: var(--hi-accent-light);
  transform: translateY(-1px);
  outline: none;
}

/* ── Body ── */
.hi-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(200, 146, 58, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--hi-cream) 0%, var(--hi-panel) 100%);
}

.hi-greeting,
.hi-quick-section {
  flex-shrink: 0;
}

.hi-body.hi-chat-active .hi-greeting,
.hi-body.hi-chat-active .hi-info {
  display: none;
}

.hi-body.hi-chat-active .hi-quick-label {
  display: none;
}

.hi-body.hi-reservation-open {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.hi-body.hi-reservation-open .hi-greeting,
.hi-body.hi-reservation-open .hi-quick-section,
.hi-body.hi-reservation-open .hi-messages,
.hi-body.hi-reservation-open .hi-info {
  display: none !important;
}

.hi-body.hi-reservation-open .hi-reservation {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 0;
  box-shadow: none;
}

.hi-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(200, 146, 58, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.95) 0%, var(--hi-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hi-greeting-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hi-primary) 0%, var(--hi-primary-light) 100%);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hi-greeting-text {
  margin: 0;
  color: var(--hi-ink);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

/* ── Quick actions ── */
.hi-quick-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.25s var(--hi-ease), max-height 0.3s var(--hi-ease);
}

.hi-quick-section-compact {
  opacity: 0.92;
}

.hi-quick-label {
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hi-muted);
}

.hi-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(200, 146, 58, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hi-ink);
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 8, 8, 0.04);
  transition: background 0.2s var(--hi-ease), border-color 0.2s var(--hi-ease), color 0.2s var(--hi-ease), transform 0.2s var(--hi-ease), box-shadow 0.2s var(--hi-ease);
}

.hi-chip-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(200, 146, 58, 0.12);
  color: var(--hi-primary);
}

.hi-chip-label {
  min-width: 0;
}

.hi-chip-primary .hi-chip-icon {
  background: rgba(78, 10, 10, 0.1);
  color: var(--hi-primary);
}

.hi-chip-live {
  justify-content: center;
}

.hi-chip-live .hi-chip-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hi-chip:hover,
.hi-chip:focus-visible {
  border-color: var(--hi-accent);
  background: #fff;
  color: var(--hi-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 8, 8, 0.08);
  outline: none;
}

.hi-chip-primary {
  background: linear-gradient(135deg, rgba(200, 146, 58, 0.14) 0%, rgba(228, 184, 106, 0.22) 100%);
  border-color: rgba(200, 146, 58, 0.38);
  color: var(--hi-primary);
}

.hi-chip-soft {
  background: rgba(245, 236, 216, 0.55);
}

.hi-chip-live {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--hi-primary) 0%, var(--hi-primary-light) 100%);
  border-color: rgba(228, 184, 106, 0.45);
  color: #fff;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hi-chip-live:hover,
.hi-chip-live:focus-visible {
  background: linear-gradient(135deg, var(--hi-primary-light) 0%, var(--hi-primary-deep) 100%);
  color: #fff;
  border-color: var(--hi-accent-light);
}

.hi-quick-section-compact .hi-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hi-quick-section-compact .hi-chip {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 10px;
  justify-content: center;
  gap: 5px;
}

.hi-quick-section-compact .hi-chip-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.hi-quick-section-compact .hi-chip-icon svg {
  width: 12px;
  height: 12px;
}

.hi-quick-section-compact .hi-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hi-quick-section-compact .hi-chip-live {
  grid-column: span 2;
}

/* ── Messages ── */
.hi-messages {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(300px, 34vh);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 146, 58, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.hi-body.hi-chat-active .hi-messages {
  min-height: 0;
  max-height: none;
}

.hi-messages::-webkit-scrollbar {
  width: 6px;
}

.hi-messages::-webkit-scrollbar-thumb {
  background: rgba(200, 146, 58, 0.45);
  border-radius: 999px;
}

.hi-bubble {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: hi-bubble-in 0.28s var(--hi-ease) both;
}

@keyframes hi-bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hi-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--hi-primary) 0%, var(--hi-primary-light) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 10, 10, 0.22);
}

.hi-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(200, 146, 58, 0.22);
  background: #fff;
  color: var(--hi-ink);
  box-shadow: 0 4px 14px rgba(16, 8, 8, 0.06);
}

.hi-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 146, 58, 0.18);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: #fff;
}

.hi-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hi-accent);
  animation: hi-typing-bounce 1.1s infinite ease-in-out;
}

.hi-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.hi-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hi-typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ── Contact info ── */
.hi-info {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 146, 58, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hi-info-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.4;
}

.hi-info-label {
  color: var(--hi-muted);
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-info-value {
  color: var(--hi-ink);
  font-weight: 400;
}

.hi-info-phone .hi-info-label::before,
.hi-info-email .hi-info-label::before,
.hi-info-location .hi-info-label::before {
  display: inline-block;
  margin-right: 4px;
  opacity: 0.75;
}

.hi-info-phone .hi-info-label::before {
  content: "☎";
}

.hi-info-email .hi-info-label::before {
  content: "✉";
}

.hi-info-location .hi-info-label::before {
  content: "⌖";
}

/* ── Footer input ── */
.hi-footer {
  flex-shrink: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(251, 245, 236, 0) 0%, var(--hi-panel) 24%, var(--hi-panel) 100%);
  border-top: 1px solid rgba(200, 146, 58, 0.14);
}

.hi-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.hi-text {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hi-ink);
  padding: 10px 16px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: inset 0 1px 2px rgba(16, 8, 8, 0.04);
  transition: border-color 0.2s var(--hi-ease), box-shadow 0.2s var(--hi-ease);
}

.hi-text::placeholder {
  color: rgba(124, 80, 64, 0.72);
}

.hi-text:focus {
  border-color: var(--hi-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 146, 58, 0.16);
}

.hi-send {
  min-width: 74px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hi-accent) 0%, var(--hi-accent-light) 100%);
  color: var(--hi-primary);
  padding: 0 16px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 146, 58, 0.28);
  transition: transform 0.2s var(--hi-ease), box-shadow 0.2s var(--hi-ease), filter 0.2s var(--hi-ease);
}

.hi-send:hover,
.hi-send:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 146, 58, 0.34);
  outline: none;
}

.hi-send:disabled,
.hi-text:disabled {
  cursor: wait;
  opacity: 0.66;
}

/* ── Reservation form ── */
.hi-reservation {
  flex-shrink: 0;
  border: 1px solid rgba(200, 146, 58, 0.24);
  background: linear-gradient(180deg, #fff 0%, var(--hi-soft) 100%);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(16, 8, 8, 0.06);
}

.hi-res-title {
  margin-bottom: 10px;
  color: var(--hi-primary);
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hi-res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hi-res-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hi-res-label {
  color: var(--hi-muted);
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hi-res-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--hi-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hi-ink);
  padding: 10px 12px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: inset 0 1px 2px rgba(16, 8, 8, 0.04);
  transition: border-color 0.2s var(--hi-ease), box-shadow 0.2s var(--hi-ease);
}

.hi-res-input::placeholder {
  color: rgba(124, 80, 64, 0.72);
}

.hi-res-input:focus {
  border-color: var(--hi-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 146, 58, 0.16);
}

.hi-res-input[type="date"],
.hi-res-input[type="time"],
.hi-res-input[type="number"] {
  appearance: auto;
  -webkit-appearance: auto;
}

.hi-res-notes {
  grid-column: 1 / -1;
}

.hi-res-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 4px;
}

.hi-res-actions .hi-send {
  min-width: 120px;
}

.hi-res-actions .hi-chip {
  justify-content: center;
}

@media (max-width: 600px) {
  .hi-chatbot {
    right: 0;
    left: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    width: 100%;
    height: min(100dvh, 100svh);
    max-height: min(100dvh, 100svh);
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .hi-chatbot.hi-keyboard-open {
    border-radius: 0;
  }

  .hi-chatbot.hi-chat-active .hi-header {
    padding: 8px 10px 9px;
    gap: 8px;
  }

  .hi-chatbot.hi-chat-active .hi-subtitle {
    display: none;
  }

  .hi-launcher {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-width: 88px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 11px;
  }

  .hi-body {
    gap: 8px;
    padding: 8px 10px;
  }

  .hi-greeting {
    padding: 8px 10px;
  }

  .hi-greeting-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .hi-greeting-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .hi-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 10px 10px 11px;
    gap: 8px;
  }

  .hi-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .hi-title {
    font-size: 12px;
  }

  .hi-subtitle {
    font-size: 9px;
  }

  .hi-icon-button {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 9px;
  }

  .hi-close-btn {
    font-size: 20px;
  }

  .hi-quick-section {
    flex-shrink: 0;
  }

  .hi-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hi-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .hi-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .hi-chip-live {
    grid-column: auto;
  }

  .hi-body.hi-chat-active .hi-quick-actions {
    display: flex;
  }

  .hi-quick-section-compact .hi-quick-actions {
    grid-template-columns: unset;
  }

  .hi-quick-section-compact .hi-chip {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .hi-quick-section-compact .hi-chip-icon {
    width: 16px;
    height: 16px;
  }

  .hi-quick-section-compact .hi-chip-icon svg {
    width: 11px;
    height: 11px;
  }

  .hi-messages {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 36vh;
    padding: 2px 0 4px;
  }

  .hi-body.hi-chat-active .hi-messages {
    flex: 1 1 auto;
    min-height: 96px;
    max-height: none;
  }

  .hi-bubble {
    font-size: 13px;
    padding: 9px 11px;
    line-height: 1.45;
    max-width: 92%;
  }

  .hi-info {
    display: none;
  }

  .hi-footer {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .hi-input {
    gap: 6px;
  }

  .hi-text {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 16px;
  }

  .hi-send {
    min-width: 64px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hi-res-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hi-res-input {
    min-height: 44px;
    font-size: 16px;
  }

  .hi-reservation {
    padding: 14px 12px 10px;
  }

  .hi-body.hi-reservation-open .hi-reservation {
    padding: 12px 12px 8px;
  }

  .hi-res-actions {
    position: sticky;
    bottom: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 0 calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(245, 236, 216, 0) 0%, var(--hi-soft) 28%, var(--hi-soft) 100%);
  }

  .hi-res-actions .hi-send,
  .hi-res-actions .hi-chip {
    width: 100%;
    min-height: 44px;
  }

  .hi-chatbot.hi-reservation-open .hi-footer {
    display: none;
  }
}

@media (max-width: 380px) {
  .hi-launcher {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .hi-quick-section-compact .hi-chip-label {
    max-width: 5.5rem;
  }
}
