.ucc-ai-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ucc-ai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(231, 201, 142, 0.55);
  border-radius: 999px;
  background: rgba(25, 24, 23, 0.94);
  color: #f8f6f1;
  box-shadow: 0 16px 42px rgba(25, 24, 23, 0.22);
  cursor: pointer;
}

.ucc-ai-launcher span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7c98e;
  color: #191817;
  font-weight: 800;
}

.ucc-ai-launcher strong {
  font-size: 0.86rem;
}

.ucc-ai-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(199, 161, 106, 0.38);
  border-radius: 8px;
  background: rgba(248, 246, 241, 0.98);
  color: #333333;
  box-shadow: 0 24px 80px rgba(25, 24, 23, 0.28);
  overflow: hidden;
}

.ucc-ai-panel[hidden] {
  display: none;
}

.ucc-ai-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #191817;
  color: #f8f6f1;
}

.ucc-ai-panel header span {
  display: block;
  margin-top: 2px;
  color: rgba(248, 246, 241, 0.64);
  font-size: 0.78rem;
}

.ucc-ai-panel header button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 246, 241, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #f8f6f1;
  font-size: 1.3rem;
  cursor: pointer;
}

.ucc-ai-messages {
  flex: 1;
  min-height: 210px;
  overflow-y: auto;
  padding: 14px;
}

.ucc-ai-message {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ucc-ai-message--bot {
  background: #f5f2ea;
  border: 1px solid rgba(199, 161, 106, 0.2);
}

.ucc-ai-message--user {
  margin-left: auto;
  background: #191817;
  color: #f8f6f1;
}

.ucc-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.ucc-ai-suggestions button {
  border: 1px solid rgba(199, 161, 106, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #333333;
  padding: 7px 10px;
  cursor: pointer;
}

.ucc-ai-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(51, 51, 51, 0.12);
}

.ucc-ai-panel form textarea {
  grid-column: 1 / -1;
}

.ucc-ai-panel textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(51, 51, 51, 0.18);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.ucc-ai-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: end;
}

.ucc-ai-verify label {
  color: #5f554b;
  font-size: 0.78rem;
  font-weight: 800;
}

.ucc-ai-verify label span {
  display: block;
  margin-top: 2px;
  color: #191817;
  font-size: 0.92rem;
}

.ucc-ai-verify input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(51, 51, 51, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.ucc-ai-verify p {
  grid-column: 1 / -1;
  margin: 0;
  color: #9a2f24;
  font-size: 0.78rem;
}

.ucc-ai-panel form button {
  min-width: 70px;
  border: none;
  border-radius: 999px;
  background: #c7a16a;
  color: #191817;
  font-weight: 800;
  cursor: pointer;
}

.ucc-ai-inline {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(199, 161, 106, 0.28);
  border-radius: 8px;
  background: rgba(245, 242, 234, 0.76);
}

.ucc-contact-hub {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 79;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", Arial, sans-serif;
}

.ucc-contact-hub > button {
  min-height: 52px;
  border: 1px solid rgba(231, 201, 142, 0.55);
  border-radius: 999px;
  background: rgba(248, 246, 241, 0.94);
  color: #191817;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(25, 24, 23, 0.16);
}

.ucc-contact-hub section {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(300px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(199, 161, 106, 0.34);
  border-radius: 8px;
  background: rgba(248, 246, 241, 0.98);
  color: #333333;
  box-shadow: 0 24px 70px rgba(25, 24, 23, 0.24);
}

.ucc-contact-hub section[hidden] {
  display: none;
}

.ucc-contact-hub strong {
  display: block;
  margin-bottom: 10px;
  color: #191817;
}

.ucc-contact-hub a,
.ucc-contact-inline a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.ucc-contact-hub a span,
.ucc-contact-inline a span {
  color: #746b60;
  font-size: 0.82rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ucc-contact-inline {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(199, 161, 106, 0.28);
  border-radius: 8px;
  background: rgba(245, 242, 234, 0.76);
  color: #333333;
}

.ucc-contact-inline h3 {
  margin: 0 0 8px;
  color: #191817;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.ucc-contact-form {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.ucc-contact-form label {
  display: grid;
  gap: 8px;
  color: #333333;
  font-weight: 800;
}

.ucc-contact-form input,
.ucc-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(51, 51, 51, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: #333333;
  padding: 12px 14px;
  font: inherit;
}

.ucc-contact-form textarea {
  resize: vertical;
}

.ucc-contact-form__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ucc-contact-form__math {
  max-width: 280px;
}

.ucc-form-status {
  max-width: 820px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.ucc-form-status--success {
  border: 1px solid rgba(42, 124, 76, 0.32);
  background: rgba(42, 124, 76, 0.1);
  color: #245f3b;
}

.ucc-form-status--error {
  border: 1px solid rgba(154, 47, 36, 0.28);
  background: rgba(154, 47, 36, 0.08);
  color: #8a2b22;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 560px) {
  .ucc-ai-widget {
    right: 12px;
    bottom: 12px;
  }

  .ucc-ai-launcher strong {
    display: none;
  }

  .ucc-ai-panel {
    right: -2px;
    bottom: 60px;
    max-height: calc(100vh - 88px);
  }

  .ucc-ai-panel form {
    grid-template-columns: 1fr;
  }

  .ucc-ai-panel form button {
    min-height: 42px;
  }

  .ucc-ai-verify {
    grid-template-columns: 1fr;
  }

  .ucc-contact-hub {
    left: 12px;
    bottom: 12px;
  }

  .ucc-contact-hub > button {
    min-height: 46px;
    padding: 0 14px;
  }
}
