.gt-conversation-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 5em;
  color: #8c96a5;
}

.gt-chat-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #3b75c3;
  border-radius: 50%;
  animation: gt-spin 0.8s linear infinite;
}

@keyframes gt-spin {
  to { transform: rotate(360deg); }
}

.gt-chat-message-row.user {
  justify-content: flex-end;
}

.gt-chat-message-row.assistant {
  justify-content: flex-start;
}

.gt-chat-message span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
}

.gt-chat-message p {
  margin: 0;
  padding: 0;
}

.gt-chat-message a {
  color: #8ecbff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

.gt-chat-message a:hover,
.gt-chat-message a:focus-visible {
  color: #fff;
}

.gt-chat-message pre,
.gt-chat-message code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gt-chat-message.user {
  background: #2858a8;
  color: #fff;
}

.gt-chat-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.gt-chat-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.gt-order-pill.expandable {
  cursor: pointer;
}

.gt-order-pill.expandable:hover {
  background: linear-gradient(180deg, #3b75c3, #2858a8);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gt-order-pill-wrapper.open .gt-order-pill-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.gt-order-pill-wrapper.open .gt-order-pill-dropdown {
  max-height: 500px;
  opacity: 1;
}

.gt-order-field-label::after {
  content: ": ";
}

.gt-order-empty {
  margin: 1em 0;
  padding: 1em 1.25em;
  border: 1px solid #d97706;
  border-left: 4px solid #f59e0b;
  border-radius: 0.5em;
  background: #422d13;
  color: #ffdb9b;
  text-align: center;
}

.gt-offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
}

.gt-offer-header h3 {
  margin-top: 0;
}

.gt-offer-date {
  color: #9aa7bb;
  font-size: 0.85em;
}

.gt-offer-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2em;
  color: #a8b3c2;
  text-align: right;
  white-space: nowrap;
}

.gt-offer-price strong {
  color: #8ee0ae;
  font-size: 1.25em;
}

.gt-offer-price small {
  color: #9aa7bb;
}

.gt-offer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
  gap: 0.75em 1.25em;
  margin-top: 1em;
}

.gt-offer-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  min-width: 0;
}

.gt-offer-detail span {
  color: #9aa7bb;
  font-size: 0.85em;
}

.gt-offer-detail strong {
  color: #f1f4f8;
  overflow-wrap: anywhere;
}

.gt-offers-empty-action {
  display: block;
  margin: 1em auto 0;
  padding: 0.65em 1em;
  border: 0;
  border-radius: 0.5em;
  background: #3b75c3;
  color: #fff;
  cursor: pointer;
}

.gt-chat-container:has(> .gt-attachment-overlay) {
  position: relative;
}

.gt-attachment-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(12 16 23 / 68%);
  backdrop-filter: blur(3px);
}

.gt-attachment-overlay[hidden] {
  display: none;
}

.gt-attachment-panel {
  box-sizing: border-box;
  width: min(100%, 360px);
  max-height: 100%;
  overflow: auto;
  padding: 16px;
  border: 1px solid #43536a;
  border-radius: 12px;
  background: #232933;
  color: #edf3fb;
  box-shadow: 0 12px 32px #0c1018a6;
}

.gt-attachment-panel header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.gt-attachment-panel h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.gt-attachment-panel button {
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gt-attachment-panel [data-cancel] {
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #323d4d;
  font-size: 1.35rem;
  line-height: 1;
}

.gt-attachment-choices {
  display: grid;
  gap: 10px;
}

.gt-attachment-choices button {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #43536a;
  border-radius: 10px;
  background: #2c3543;
  text-align: left;
}

.gt-attachment-choices button:hover {
  background: #324865;
  border-color: #6593cf;
}

.gt-attachment-choices span {
  color: #bdcbe0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.gt-attachment-panel button:focus-visible {
  outline: 2px solid #80b4ff;
  outline-offset: 2px;
}
