/* Swft AI Chat — launcher button + iframe overlay */

.swft-ai-chat-btn {
  background: #0a84ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0;
  display: inline-block;
  line-height: 1.2;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.swft-ai-chat-btn:hover { background: #006fdb; }
.swft-ai-chat-btn:active { transform: translateY(1px); }
.swft-ai-chat-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.swft-ai-chat-btn--cart {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.swft-ai-chat-error {
  margin: 6px 0;
  padding: 8px 12px;
  background: #fff5f5;
  color: #c1272d;
  border: 1px solid #f5c2c5;
  border-radius: 6px;
  font-size: 13px;
}

/* Overlay — desktop slide-out from right, mobile full-screen */
.swft-ai-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}
.swft-ai-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: swft-ai-chat-fade-in 0.15s ease-out;
}
.swft-ai-chat-iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  border: 0;
  background: #1a1a1d;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.35);
  animation: swft-ai-chat-slide-in 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.swft-ai-chat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 1;
}
.swft-ai-chat-close:hover { background: rgba(0, 0, 0, 0.75); }

@media (max-width: 767px) {
  .swft-ai-chat-iframe {
    width: 100vw;
    height: 100vh;
    box-shadow: none;
  }
  .swft-ai-chat-close { top: 8px; right: 8px; }
}

@keyframes swft-ai-chat-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes swft-ai-chat-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
