/* Shared conversational commerce chrome. Desktop and mobile use the same card. */
.zc-commerce {
  width: 100%;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf5;
  color: #1c1917;
  box-sizing: border-box;
}
.zc-commerce-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
}
.zc-commerce h2,
.zc-commerce h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #1c1917;
}
.zc-commerce-lead,
.zc-commerce p {
  margin: 0 0 12px;
  color: #57534e;
}
.zc-commerce-actions,
.zc-commerce-examples,
.zc-commerce-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.zc-commerce [hidden] {
  display: none !important;
}
.zc-commerce button,
.zc-commerce-actions a {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zc-commerce button.is-quiet,
.zc-commerce-actions a.is-quiet {
  background: #fff;
  color: #9a3412;
  border: 1px solid #ea580c;
}
.zc-commerce button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.zc-commerce textarea,
.zc-commerce input[type="text"],
.zc-commerce input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
  color: #1c1917;
}
.zc-commerce-stage {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #fed7aa;
}
.zc-commerce-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  max-height: 280px;
  overflow: auto;
}
.zc-commerce-bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffedd5;
  white-space: pre-wrap;
}
.zc-commerce-bubble.is-user {
  background: #ffedd5;
}
.zc-commerce-bubble.is-ai::before {
  content: "AI · ";
  font-weight: 800;
  color: #9a3412;
}
.zc-commerce-preview {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #fdba74;
}
.zc-commerce-preview h3 {
  font-size: 1.15rem;
}
.zc-commerce-specs {
  margin: 0 0 8px;
  padding-left: 18px;
}
.zc-commerce-status {
  min-height: 1.2em;
}
.zc-commerce-status.is-error {
  color: #b91c1c;
  font-weight: 700;
}
.zc-commerce-results {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.zc-commerce-result {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fed7aa;
  color: #1c1917;
  text-decoration: none;
}
.zc-commerce-result strong {
  display: block;
}
.zc-commerce-meta {
  font-size: 0.85rem;
  color: #57534e;
}
.zc-ops {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 16px 40px;
}
.zc-ops-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .zc-commerce {
    padding: 14px;
    border-radius: 14px;
  }
  .zc-commerce button,
  .zc-commerce-actions a {
    width: 100%;
  }
}

.zc-commerce-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12500;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(15, 23, 42, 0.55);
}
.zc-commerce-modal.is-open,
.zc-commerce-modal:not([hidden]) {
  display: flex;
}
.zc-commerce-modal[hidden] {
  display: none !important;
}
.zc-commerce-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: transparent;
}
.zc-commerce-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
body.zc-commerce-modal-open {
  overflow: hidden;
}
@media (max-width: 720px) {
  .zc-commerce-modal {
    align-items: flex-end;
    padding: 0;
  }
  .zc-commerce-modal__dialog {
    width: 100%;
    max-height: 92vh;
  }
  .zc-commerce-modal .zc-commerce {
    border-radius: 18px 18px 0 0;
  }
}
