.gecx-mockup {
  background: #fff;
  color: #23232a;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  margin: 2rem 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

[data-theme="dark"] .gecx-mockup {
  border-color: var(--gray-200);
  background: #15151f;
  color: #f0f0f1;
}

/* Header */
.gecx-mockup .gecx-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-300);
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme="dark"] .gecx-mockup .gecx-header {
  border-bottom-color: var(--gray-200);
}

.gecx-mockup .gecx-header-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary, #e60094);
  flex-shrink: 0;
}

/* Chat area */
.gecx-mockup .gecx-chat {
  height: 548px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

/* Messages */
.gecx-mockup .gecx-msg {
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gecx-mockup .gecx-msg.visible {
  opacity: 1;
  transform: none;
}

.gecx-mockup .gecx-msg.user {
  align-self: flex-end;
}

.gecx-mockup .gecx-msg.user .gecx-bubble {
  background: #e8eaed;
  color: #1f1f1f;
  border-radius: 18px 18px 4px 18px;
  padding: 0.6rem 1rem;
}

[data-theme="dark"] .gecx-mockup .gecx-msg.user .gecx-bubble {
  background: #36363e;
  color: #f0f0f1;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble {
  background: transparent;
  padding: 0.4rem 0;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble p {
  margin: 0 0 0.5em;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble p:last-child {
  margin-bottom: 0;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble ul {
  margin: 0.25em 0;
  padding-left: 1.25em;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble li {
  margin: 0.15em 0;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble strong {
  font-weight: 600;
}

.gecx-mockup .gecx-msg.bot .gecx-bubble a {
  color: var(--color-primary, #e60094);
  text-decoration: none;
  font-weight: 500;
}

[data-theme="dark"] .gecx-mockup .gecx-msg.bot .gecx-bubble a {
  color: #fe79cf;
}

/* Typing indicator */
.gecx-mockup .gecx-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.gecx-mockup .gecx-typing.visible {
  opacity: 1;
}

.gecx-mockup .gecx-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  animation: gecx-dot-bounce 1.4s infinite ease-in-out both;
}

[data-theme="dark"] .gecx-mockup .gecx-typing span {
  background: #999;
}

.gecx-mockup .gecx-typing span:nth-child(1) { animation-delay: 0s; }
.gecx-mockup .gecx-typing span:nth-child(2) { animation-delay: 0.16s; }
.gecx-mockup .gecx-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes gecx-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Product carousel */
.gecx-mockup .gecx-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gecx-mockup .gecx-carousel::-webkit-scrollbar {
  display: none;
}

.gecx-mockup .gecx-product-tile {
  flex: 0 0 140px;
  border: 1px solid #e4e4e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] .gecx-mockup .gecx-product-tile {
  border-color: #36363e;
  background: #23232a;
}

.gecx-mockup .gecx-product-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gecx-mockup .gecx-product-meta {
  padding: 0.5rem;
}

.gecx-mockup .gecx-product-title {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gecx-mockup .gecx-product-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e60094;
}

[data-theme="dark"] .gecx-mockup .gecx-product-price {
  color: #fe79cf;
}

.gecx-mockup .gecx-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  cursor: default;
  width: 100%;
}

.gecx-mockup .gecx-cart-btn.add {
  background: #e60094;
  color: #fff;
}

[data-theme="dark"] .gecx-mockup .gecx-cart-btn.add {
  background: #fe79cf;
  color: #15151f;
}

.gecx-mockup .gecx-cart-btn.added {
  background: #e8eaed;
  color: #23232a;
}

[data-theme="dark"] .gecx-mockup .gecx-cart-btn.added {
  background: #36363e;
  color: #f0f0f1;
}

.gecx-mockup .gecx-cart-btn svg {
  width: 14px;
  height: 14px;
}

/* Product detail */
.gecx-mockup .gecx-detail {
  border: 1px solid #e4e4e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] .gecx-mockup .gecx-detail {
  border-color: #36363e;
  background: #23232a;
}

.gecx-mockup .gecx-detail-img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  display: block;
  transition: src 0.3s;
}

.gecx-mockup .gecx-detail-compact .gecx-detail-img {
  aspect-ratio: 2;
}

/* Cart button flip animation */
.gecx-mockup .gecx-cart-btn {
  transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease;
}

.gecx-mockup .gecx-cart-btn.added {
  animation: gecx-cart-pop 0.35s ease;
}

@keyframes gecx-cart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.gecx-mockup .gecx-detail-thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
}

.gecx-mockup .gecx-detail-thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: 0.6;
}

.gecx-mockup .gecx-detail-thumbs img.active {
  border-color: #e60094;
  opacity: 1;
}

[data-theme="dark"] .gecx-mockup .gecx-detail-thumbs img.active {
  border-color: #fe79cf;
}

.gecx-mockup .gecx-detail-info {
  padding: 0 0.75rem 0.75rem;
}

.gecx-mockup .gecx-detail-name {
  font-size: 1rem;
  font-weight: 600;
}

.gecx-mockup .gecx-detail-desc {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.15rem 0;
}

.gecx-mockup .gecx-detail-price {
  font-size: 1rem;
  font-weight: 600;
  color: #e60094;
}

[data-theme="dark"] .gecx-mockup .gecx-detail-price {
  color: #fe79cf;
}

/* Order summary */
.gecx-mockup .gecx-order {
  border: 1px solid #e4e4e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 1rem;
}

[data-theme="dark"] .gecx-mockup .gecx-order {
  border-color: #36363e;
  background: #23232a;
}

.gecx-mockup .gecx-order-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.gecx-mockup .gecx-order-product img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.gecx-mockup .gecx-order-product-info {
  flex: 1;
}

.gecx-mockup .gecx-order-product-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.gecx-mockup .gecx-order-product-subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
}

.gecx-mockup .gecx-order-product-price {
  font-weight: 600;
  font-size: 0.9rem;
}

.gecx-mockup .gecx-order-divider {
  height: 1px;
  background: #e4e4e5;
  margin: 0.75rem 0;
}

[data-theme="dark"] .gecx-mockup .gecx-order-divider {
  background: #36363e;
}

.gecx-mockup .gecx-order-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.gecx-mockup .gecx-order-row.total {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.gecx-mockup .gecx-order-row.gecx-order-customer-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.gecx-mockup .gecx-order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gecx-mockup .gecx-order-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: default;
  border: none;
}

.gecx-mockup .gecx-order-btn.secondary {
  background: transparent;
  border: 1px solid #ccc;
  color: inherit;
}

[data-theme="dark"] .gecx-mockup .gecx-order-btn.secondary {
  border-color: #555;
}

.gecx-mockup .gecx-order-btn.primary {
  background: #e60094;
  color: #fff;
}

[data-theme="dark"] .gecx-mockup .gecx-order-btn.primary {
  background: #fe79cf;
  color: #15151f;
}

/* Chip actions bar */
.gecx-mockup .gecx-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.25rem;
}

.gecx-mockup .gecx-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  border: 1px solid #ccc;
  background: transparent;
  color: inherit;
  cursor: default;
}

[data-theme="dark"] .gecx-mockup .gecx-chip {
  border-color: #555;
}

.gecx-mockup .gecx-chip.selected {
  border-color: #e60094;
  color: #e60094;
}

[data-theme="dark"] .gecx-mockup .gecx-chip.selected {
  border-color: #fe79cf;
  color: #fe79cf;
}

/* Cart status bar */
.gecx-mockup .gecx-cart-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  opacity: 0.8;
}

.gecx-mockup .gecx-cart-status svg {
  width: 16px;
  height: 16px;
}

/* Input area */
.gecx-mockup .gecx-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e4e4e5;
}

[data-theme="dark"] .gecx-mockup .gecx-input {
  border-top-color: #36363e;
}

.gecx-mockup .gecx-input-field {
  flex: 1;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.gecx-mockup .gecx-input-cursor {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background: #888;
  animation: gecx-blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes gecx-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Payment link highlight animation */
.gecx-mockup .gecx-payment-link {
  cursor: pointer;
  transition: background 0.3s, padding 0.3s;
  border-radius: 4px;
}

.gecx-mockup .gecx-payment-link.highlight {
  background: rgba(230, 0, 148, 0.15);
  padding: 2px 4px;
}

[data-theme="dark"] .gecx-mockup .gecx-payment-link.highlight {
  background: rgba(254, 121, 207, 0.15);
}

/* Payment modal */
.gecx-payment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gecx-payment-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.gecx-payment-modal {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.gecx-payment-modal-overlay.visible .gecx-payment-modal {
  transform: none;
}

[data-theme="dark"] .gecx-payment-modal {
  background: #23232a;
}

.gecx-payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e4e4e5;
  font-weight: 600;
  font-size: 0.95rem;
}

[data-theme="dark"] .gecx-payment-modal-header {
  border-bottom-color: #36363e;
  color: #f0f0f1;
}

.gecx-payment-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}

.gecx-payment-modal-close:hover {
  opacity: 1;
}

.gecx-payment-modal-body {
  padding: 1rem;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gecx-payment-modal-body video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.gecx-payment-modal-placeholder {
  padding: 3rem 2rem;
  text-align: center;
  opacity: 0.5;
  font-size: 0.95rem;
}

[data-theme="dark"] .gecx-payment-modal-placeholder {
  color: #f0f0f1;
}

/* Click hint */
.gecx-mockup .gecx-hint-text {
  font-size: 0.8rem;
  opacity: 0.7;
  animation: gecx-hint-pulse 2s ease-in-out infinite;
}

@keyframes gecx-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Responsive */
/* Footer description */
.gecx-footer-desc {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.5;
  padding: 0.4rem 1rem;
  border-top: 1px solid #e4e4e5;
}

[data-theme="dark"] .gecx-footer-desc {
  border-top-color: #36363e;
}

@media (max-width: 520px) {
  .gecx-mockup .gecx-chat {
    height: 450px;
  }
}
