/* ─── Mira Embed — Inline element + Modal overlay ──────────────────────────── */

/* Inline element injected below Add to Cart */
.mira-embed-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.mira-embed-inline:hover {
  border-color: #ccc;
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mira-embed-inline-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mira-embed-inline-icon svg {
  width: 20px;
  height: 20px;
}

.mira-embed-inline-text {
  flex: 1;
}

.mira-embed-inline-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.mira-embed-inline-subtitle {
  font-size: 11px;
  color: #888;
  margin: 2px 0 0;
  line-height: 1.3;
}

.mira-embed-inline-arrow {
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.mira-embed-inline:hover .mira-embed-inline-arrow {
  color: #555;
  transform: translateX(2px);
}

/* Loading state */
.mira-embed-inline--loading {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Unavailable state */
.mira-embed-inline--unavailable {
  display: none;
}

/* ─── Modal Overlay ────────────────────────────────────────────────────────── */

#mira-embed-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mira-embed-fade-in 0.2s ease-out;
}

@keyframes mira-embed-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#mira-embed-iframe {
  width: 90vw;
  max-width: 480px;
  height: 85vh;
  max-height: 900px;
  border: none;
  border-radius: 16px;
  background: #f5f5f5;
  animation: mira-embed-slide-up 0.25s ease-out;
}

@keyframes mira-embed-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mira-embed-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}

#mira-embed-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #mira-embed-iframe {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  #mira-embed-close {
    top: 8px;
    right: 8px;
  }
}
