/* AI Receptionist Widget - Malta Land Day Trips */
.ai-receptionist-widget {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9999;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-receptionist-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #1B4F72;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(27, 79, 114, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-receptionist-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 79, 114, 0.34);
  background: #154360;
}

.ai-receptionist-button-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  flex: 0 0 auto;
}

.ai-receptionist-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 1px solid #D9E4EC;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(27, 79, 114, 0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ai-receptionist-widget.is-open .ai-receptionist-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-receptionist-header {
  background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
  color: #fff;
  padding: 18px 18px 16px;
  position: relative;
}

.ai-receptionist-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 34px;
}

.ai-receptionist-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ai-receptionist-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.ai-receptionist-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.ai-receptionist-subtitle {
  font-size: 12px;
  opacity: 0.88;
  margin-top: 3px;
}

.ai-receptionist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ai-receptionist-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ai-receptionist-body {
  padding: 14px;
  background: #F8FAFB;
}

.ai-receptionist-messages {
  height: 330px;
  overflow-y: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
}

.ai-message {
  display: flex;
  margin: 10px 0;
}

.ai-message.bot {
  justify-content: flex-start;
}

.ai-message.user {
  justify-content: flex-end;
}

.ai-bubble {
  max-width: 86%;
  border-radius: 15px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.ai-message.bot .ai-bubble {
  background: #FFFFFF;
  color: #1A2530;
  border: 1px solid #D9E4EC;
  border-bottom-left-radius: 5px;
}

.ai-message.user .ai-bubble {
  background: #1B4F72;
  color: #FFFFFF;
  border-bottom-right-radius: 5px;
}

.ai-receptionist-quick {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 0 12px;
}

.ai-quick-btn {
  border: 1px solid #AED6F1;
  background: #FFFFFF;
  color: #1B4F72;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ai-quick-btn:hover {
  background: #D6EAF8;
  border-color: #2E86C1;
}

.ai-receptionist-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border-top: 1px solid #D9E4EC;
  padding-top: 12px;
}

.ai-receptionist-input {
  flex: 1;
  min-height: 42px;
  max-height: 92px;
  resize: none;
  border: 1px solid #D9E4EC;
  border-radius: 13px;
  background: #FFFFFF;
  color: #1A2530;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  padding: 11px 12px;
  outline: none;
}

.ai-receptionist-input:focus {
  border-color: #2E86C1;
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.12);
}

.ai-receptionist-send {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 0;
  background: #25D366;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ai-receptionist-send:hover {
  background: #1DAA54;
  transform: translateY(-1px);
}

.ai-receptionist-footer {
  background: #FFFFFF;
  border-top: 1px solid #D9E4EC;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-receptionist-footer small {
  font-size: 11px;
  color: #6B8091;
  line-height: 1.35;
}

.ai-wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.ai-wa-link:hover {
  background: #1DAA54;
}

@media (max-width: 520px) {
  .ai-receptionist-widget {
    right: 14px;
    bottom: 82px;
  }

  .ai-receptionist-button {
    padding: 13px 15px;
    font-size: 13px;
  }

  .ai-receptionist-panel {
    width: calc(100vw - 28px);
    right: 0;
    bottom: 62px;
    border-radius: 16px;
  }

  .ai-receptionist-messages {
    height: 300px;
  }

  .ai-bubble {
    max-width: 92%;
  }
}
