.hotel-chat-launcher {
  --hotel-chat-accent: #e6b65d;
  --hotel-chat-accent-dark: #c8943f;
  --hotel-chat-button-text: #fff;
  position: fixed;
  right: 22px;
  bottom: calc(22px + var(--hotel-chat-bottom-offset, 0px));
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hotel-chat-accent), var(--hotel-chat-accent-dark));
  color: var(--hotel-chat-button-text);
  box-shadow: 0 18px 45px rgba(160, 122, 53, 0.3);
  cursor: pointer;
  font: 700 14px/1 system-ui, sans-serif;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hotel-chat-launcher.has-label::before {
  content: var(--hotel-chat-launcher-label, "Ask AI");
  position: absolute;
  min-width: 0;
  max-width: min(128px, calc(100vw - 104px));
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hotel-chat-accent), var(--hotel-chat-accent-dark));
  color: var(--hotel-chat-button-text);
  box-shadow: 0 12px 26px rgba(112, 84, 35, 0.2);
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, transform 0.22s ease, visibility 0.7s ease;
}

.hotel-chat-launcher.has-label::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, transform 0.22s ease, visibility 0.7s ease;
}

.hotel-chat-launcher.callout-top-badge::before {
  right: 50%;
  top: -39px;
  transform: translateX(50%);
  min-width: auto;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 11px;
  box-shadow: 0 12px 28px rgba(112, 84, 35, 0.24);
}

.hotel-chat-launcher.callout-top-badge::after {
  right: 50%;
  top: -12px;
  transform: translateX(50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--hotel-chat-accent-dark);
}

.hotel-chat-launcher.callout-speech-bubble::before,
.hotel-chat-launcher.callout-timed-hint::before {
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
}

.hotel-chat-launcher.callout-speech-bubble::before {
  min-width: 66px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #3b2d18;
  border: 0;
  box-shadow: 0 10px 22px rgba(23, 18, 11, 0.14);
  font-size: 12px;
}

.hotel-chat-launcher.callout-speech-bubble::after {
  right: 66px;
  top: calc(50% + 9px);
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 8px solid #ffffff;
  border-right: 11px solid transparent;
}

.hotel-chat-launcher.callout-timed-hint::after {
  right: 65px;
  top: calc(50% + 8px);
  transform: translateY(-50%);
  border-top: 10px solid var(--hotel-chat-accent-dark);
  border-right: 12px solid transparent;
}

.hotel-chat-launcher.callout-timed-hint::before {
  min-width: 62px;
  padding: 8px 12px;
  animation: hotel-chat-callout-pulse 2.8s ease-in-out infinite;
}

@keyframes hotel-chat-callout-pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.04);
  }
}

.hotel-chat-launcher:hover,
.hotel-chat-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(160, 122, 53, 0.36);
}

.hotel-chat-launcher.has-label.open::before,
.hotel-chat-launcher.has-label.open::after,
.hotel-chat-launcher.has-label.hint-dismissed::before,
.hotel-chat-launcher.has-label.hint-dismissed::after,
.hotel-chat-launcher.has-label.hint-auto-hidden::before,
.hotel-chat-launcher.has-label.hint-auto-hidden::after {
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  visibility: hidden;
}

.hotel-chat-launcher img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  border-radius: 999px;
  display: block;
  overflow: hidden;
}

.hotel-chat-launcher.fit-cover img {
  width: 92%;
  height: 92%;
  object-fit: cover;
}

.hotel-chat-launcher.fit-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-chat-panel {
  --hotel-chat-accent: #e6b65d;
  --hotel-chat-accent-dark: #c58b30;
  --hotel-chat-panel-bg: #fdfaf3;
  --hotel-chat-header-bg: #fbf4e3;
  --hotel-chat-header-text: #3b2d18;
  --hotel-chat-body-text: #3a2f1f;
  --hotel-chat-bot-bg: #fffcf6;
  --hotel-chat-user-bg: #e2b055;
  --hotel-chat-button-text: #fff;
  --hotel-chat-border: rgba(143, 108, 43, 0.18);
  position: fixed;
  right: 22px;
  bottom: calc(98px + var(--hotel-chat-bottom-offset, 0px));
  width: min(360px, calc(100vw - 24px));
  height: 520px;
  background: var(--hotel-chat-panel-bg);
  border: 1px solid var(--hotel-chat-border);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(112, 84, 35, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483647;
  font-family: "Segoe UI", Arial, sans-serif;
}

.hotel-chat-panel.open {
  display: flex;
}

.hotel-chat-header {
  padding: 14px 16px 11px;
  background: linear-gradient(135deg, var(--hotel-chat-header-bg), var(--hotel-chat-accent));
  color: var(--hotel-chat-header-text);
  border-bottom: 1px solid var(--hotel-chat-border);
}

.hotel-chat-header strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.hotel-chat-header span {
  display: block;
  color: rgba(59, 45, 24, 0.72);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.35;
}

.hotel-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.hotel-chat-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--hotel-chat-body-text);
}

.hotel-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--hotel-chat-user-bg), var(--hotel-chat-accent-dark));
  color: var(--hotel-chat-button-text);
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 24px rgba(133, 97, 35, 0.16);
}

.hotel-chat-bubble.bot {
  align-self: flex-start;
  background: var(--hotel-chat-bot-bg);
  color: var(--hotel-chat-body-text);
  border: 1px solid var(--hotel-chat-border);
  border-bottom-left-radius: 6px;
}

.hotel-chat-bubble.bot a {
  color: var(--hotel-chat-accent-dark);
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hotel-chat-bubble.bot strong {
  font-weight: 700;
}

.hotel-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 10px 12px;
}

.hotel-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hotel-chat-accent);
  opacity: 0.35;
  animation: hotel-chat-dot-bounce 1s infinite ease-in-out;
}

.hotel-chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.hotel-chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes hotel-chat-dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

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

.hotel-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: rgba(252, 248, 239, 0.94);
  border-top: 1px solid rgba(143, 108, 43, 0.12);
}

.hotel-chat-form input {
  flex: 1;
  height: 40px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--hotel-chat-border);
  padding: 0 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hotel-chat-body-text);
  box-sizing: border-box;
}

.hotel-chat-form input::placeholder {
  color: rgba(58, 47, 31, 0.56);
}

.hotel-chat-form input:disabled,
.hotel-chat-form button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.hotel-chat-form button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hotel-chat-accent), var(--hotel-chat-accent-dark));
  color: var(--hotel-chat-button-text);
  min-width: 74px;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.hotel-chat-note {
  padding: 0 12px 10px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(58, 47, 31, 0.64);
}

.hotel-chat-support {
  padding: 0 12px 8px;
}

.hotel-chat-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hotel-chat-support-actions.inline {
  align-self: flex-start;
  width: 100%;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--hotel-chat-bot-bg);
  border: 1px solid var(--hotel-chat-border);
}

.hotel-chat-support-title {
  width: 100%;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(58, 47, 31, 0.72);
}

.hotel-chat-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hotel-chat-accent), var(--hotel-chat-accent-dark));
  color: var(--hotel-chat-button-text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.hotel-chat-support-button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--hotel-chat-body-text);
  border: 1px solid var(--hotel-chat-border);
}

.hotel-chat-support-button:disabled {
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 480px) {
  .hotel-chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: calc(82px + var(--hotel-chat-bottom-offset, 0px));
    height: min(76vh, 560px);
    border-radius: 20px;
  }

  .hotel-chat-launcher {
    right: 10px;
    bottom: calc(10px + var(--hotel-chat-bottom-offset, 0px));
    width: 56px;
    height: 56px;
    font-size: 13px;
  }

  .hotel-chat-launcher.callout-speech-bubble::before,
  .hotel-chat-launcher.callout-timed-hint::before {
    right: 66px;
    max-width: min(112px, calc(100vw - 88px));
    padding: 8px 10px;
    font-size: 11px;
  }

  .hotel-chat-launcher.callout-speech-bubble::after {
    right: 62px;
  }

  .hotel-chat-launcher.callout-timed-hint::after {
    right: 57px;
  }

  .hotel-chat-launcher.callout-top-badge::before {
    top: -37px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .hotel-chat-launcher.callout-top-badge::after {
    top: -11px;
  }

  .hotel-chat-header {
    padding: 12px 14px 10px;
  }

  .hotel-chat-messages {
    padding: 10px 12px;
    gap: 8px;
  }

  .hotel-chat-bubble {
    max-width: 88%;
    padding: 9px 11px;
    font-size: 13px;
  }

  .hotel-chat-form {
    padding: 8px 10px 7px;
    gap: 7px;
  }

  .hotel-chat-form input {
    height: 38px;
    padding: 0 11px;
  }

  .hotel-chat-form button {
    min-width: 68px;
    height: 38px;
    padding: 0 12px;
  }

  .hotel-chat-support {
    padding: 0 10px 7px;
  }

  .hotel-chat-note {
    padding: 0 10px 9px;
  }
}
