.sany-guide-trigger-host {
  display: flex;
  font-family: Arial, sans-serif;
  width: 100%;
}

.sany-guide-trigger-host--product-info {
  display: block;
}

.sany-guide-trigger-host--compare {
  display: inline-block;
  width: auto;
}

.sany-guide-trigger-host--category-choose {
  display: block;
  position: sticky;
  top: 64px;
  z-index: 100;
  background: #ffeceb;
}

.sany-guide-trigger-host--consult {
  display: block;
}

.sany-guide-trigger-host--specs {
  display: inline !important;
  width: auto;
}

.sany-guide-trigger-host--feature {
  display: flex;
  justify-content: center;
  margin-top: -24px !important;
  margin-bottom: 24px !important;
}

.sany-guide-trigger-host--global-auto {
  display: block;
  width: 0;
  height: 0;
}

.guide-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-trigger-bar {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 8px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #e60000;
  background: rgba(230, 0, 0, 0.05);
  font-size: 14px;
  line-height: 1.2;
}

.guide-trigger-bar:hover {
  background: rgba(230, 0, 0, 0.1);
}

.guide-trigger-bar .guide-trigger-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e60000;
}

.guide-trigger-bar .guide-trigger-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.guide-trigger-bar .guide-trigger-text {
  min-width: 0;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.guide-trigger-bar .guide-trigger-action {
  color: #e60000;
  font-size: 14px;
  font-weight: 400;
}

.consult-trigger,
.product-info-trigger,
.feature-trigger {
  padding: 12px;
}

.consult-trigger {
  margin-bottom: 24px;
}

.category-choose-trigger {
  justify-content: center;
  padding: 12px;
  border: none;
}

.specs-trigger {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #e60000;
  border-radius: 4px;
  background: #fff;
  line-height: 1.2;
}

.specs-trigger .specs-trigger-text {
  display: inline !important;
  color: #e60000 !important;
  font-size: 14px;
}

.compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #e31e24;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e31e24;
  font-size: 14px;
  transition: all 0.3s ease;
}

.compare-trigger:hover {
  background: #fff5f5;
  border-color: #c41a1f;
  color: #c41a1f;
}

.compare-trigger .guide-trigger-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e31e24;
  border-radius: 50%;
  padding: 4px;
}

.compare-trigger:hover .guide-trigger-icon {
  background: #c41a1f;
}

.sany-guide-global-auto-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: #191b33;
  font-family: Arial, sans-serif;
}

.global-auto-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(0, 0, 0, 0.38);
}

.global-auto-modal {
  position: relative;
  box-sizing: border-box;
  width: min(100vw, 900px);
  height: min(100vh, 535px);
  overflow: hidden;
  border: 1px solid #c9c9c9;
  background: #fff;
}

.global-auto-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e60012;
  color: #fff;
  cursor: pointer;
}

.global-auto-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.global-auto-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 0;
}

.global-auto-welcome,
.global-auto-chat {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.global-auto-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 32px;
  border-right: 0.5px solid rgba(0, 0, 0, 0.05);
}

.global-auto-title {
  margin: 0 0 24px;
  color: #181a31;
  font-family: "PingFang SC", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.global-auto-desc {
  width: min(100%, 373px);
  margin: 0 0 18px;
  color: #181a31;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.global-auto-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.global-auto-quote {
  min-width: 107px;
  height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #e60012;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.global-auto-quote:hover {
  background: #c90010;
}

.global-auto-help-btn {
  display: none;
}

.global-auto-chat {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.global-auto-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 0.5px solid #e5e5e5;
}

.global-auto-chat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  color: #e60012;
}

.global-auto-chat-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.global-auto-chat-title {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.global-auto-chat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.global-auto-input-panel {
  padding: 12px;
}

.global-auto-message-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.global-auto-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 8px;
}

.global-auto-bubble {
  align-self: flex-start;
  max-width: 80%;
  padding: 10px;
  border-radius: 8px;
  background: #f5f8fb;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.global-auto-question {
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid #666;
  border-radius: 9px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  transition: all 0.2s;
}

.global-auto-question:hover {
  border-color: #e60012;
  color: #e60012;
}

.global-auto-input-wrap {
  position: relative;
  box-sizing: border-box;
  min-height: 72px;
  padding: 16px 48px 16px 12px;
  border: 0;
  border-radius: 10px;
  background: #f5f8fb;
}

.global-auto-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.global-auto-input::placeholder {
  color: #999;
}

.global-auto-send {
  position: absolute;
  right: 12px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffc0c4;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.global-auto-send:hover {
  background: #ffb0b5;
}

.global-auto-send svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .sany-guide-trigger-host--feature {
    width: calc(100vw - 24px);
    margin: auto !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 640px) {
  .global-auto-overlay {
    padding: 16px;
  }

  .global-auto-modal {
    width: 100%;
    max-width: 432px;
    height: auto;
    padding: 32px 24px 24px;
    border-radius: 8px;
  }

  .global-auto-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #aeafb7;
  }

  .global-auto-close svg {
    width: 18px;
    height: 18px;
  }

  .global-auto-body {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .global-auto-welcome {
    align-items: center;
    padding: 0;
    border-right: none;
  }

  .global-auto-title {
    margin: 0 0 16px;
    font-size: 20px;
    text-align: center;
  }

  .global-auto-desc {
    width: 100%;
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    text-align: center;
  }

  .global-auto-buttons {
    width: 100%;
    gap: 12px;
  }

  .global-auto-quote,
  .global-auto-help-btn {
    flex: 1;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .global-auto-help-btn {
    display: block;
    border: 1px solid #e60012;
    border-radius: 4px;
    background: #fff;
    color: #e60012;
    cursor: pointer;
  }

  .global-auto-help-btn:hover {
    background: #fff5f5;
  }

  .global-auto-chat {
    display: none;
  }
}
