/* ===========================
   ZOOM TECHNOLOGIE — SHARE.CSS
   Share Sheet avancé
   =========================== */

/* ── Overlay + box ── */
#zt-share-sheet {
  position: fixed; inset: 0;
  z-index: 2800;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#zt-share-sheet.open { opacity: 1; pointer-events: all; }

.zt-ss-overlay {
  position: absolute; inset: 0;
  background: rgba(5,5,15,.75);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.zt-ss-box {
  position: relative; z-index: 1;
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 14px 18px 28px;
  width: 100%; max-width: 480px;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(0.34,1.1,0.64,1);
  display: flex; flex-direction: column; gap: 14px;
  max-height: 90vh; overflow-y: auto;
}
#zt-share-sheet.open .zt-ss-box { transform: translateY(0); }

.zt-ss-handle {
  width: 40px; height: 4px; background: #e2e8f0; border-radius: 2px;
  margin: 0 auto 4px;
}

/* ── Aperçu produit ── */
.zt-ss-preview {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border-radius: 12px; padding: 12px;
  border: 1px solid #e2e8f0;
}
.zt-ss-preview-img {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 8px; background: white;
  border: 1px solid #e2e8f0; flex-shrink: 0; padding: 4px;
}
.zt-ss-preview-emoji { font-size: 2.5rem; flex-shrink: 0; }
.zt-ss-preview-name  { font-size: .80rem; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.zt-ss-preview-price { font-size: .92rem; font-weight: 900; color: #B12704; margin-bottom: 3px; }
.zt-ss-preview-badge { font-size: .65rem; color: #64748b; display: flex; align-items: center; gap: 4px; }
.zt-ss-preview-badge i { color: #0055FF; }

/* ── Lien unique ── */
.zt-ss-link-section { display: flex; flex-direction: column; gap: 6px; }
.zt-ss-link-label   { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: center; gap: 5px; }
.zt-ss-link-label i { color: #0055FF; font-size: .65rem; }
.zt-ss-link-row     { display: flex; gap: 7px; align-items: center; }
.zt-ss-link-input {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-family: monospace; font-size: .72rem; color: #475569;
  background: #f8fafc; outline: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: border-color .18s;
}
.zt-ss-link-input:focus { border-color: #0055FF; background: white; }
.zt-ss-copy-btn {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: #0055FF; color: white; border: none; cursor: pointer;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: all .18s; box-shadow: 0 2px 8px rgba(0,85,255,.3);
}
.zt-ss-copy-btn:hover { background: #003DC0; transform: scale(1.05); }
.zt-ss-copy-btn.copied { background: #059669; }

/* ── QR Code ── */
.zt-ss-qr-section { display: flex; flex-direction: column; gap: 6px; }
.zt-ss-qr-label   { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: center; gap: 5px; }
.zt-ss-qr-label i { color: #0055FF; font-size: .65rem; }
.zt-ss-qr-wrap    { display: flex; align-items: center; gap: 14px; }
.zt-ss-qr-canvas  {
  width: 100px; height: 100px;
  border-radius: 10px; border: 1.5px solid #e2e8f0;
  background: white; flex-shrink: 0;
}
.zt-ss-qr-dl {
  flex: 1; padding: 9px 12px;
  background: #f1f5f9; border: 1.5px solid #e2e8f0;
  border-radius: 9px; font-family: inherit; font-size: .76rem; font-weight: 700;
  color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .18s;
}
.zt-ss-qr-dl:hover { background: #e2e8f0; border-color: #0055FF; color: #0055FF; }

/* ── Plateformes ── */
.zt-ss-platforms-label { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .6px; }
.zt-ss-platforms { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.zt-ss-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 11px 6px;
  border-radius: 12px; border: 1.5px solid #e2e8f0;
  background: #f8fafc; cursor: pointer;
  font-family: inherit; font-size: .65rem; font-weight: 700; color: #475569;
  transition: all .18s;
}
.zt-ss-btn i { font-size: 1.3rem; }
.zt-ss-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.zt-ss-wa    { color: #25D366; } .zt-ss-wa:hover    { border-color: #25D366; background: #f0fff6; }
.zt-ss-fb    { color: #1877F2; } .zt-ss-fb:hover    { border-color: #1877F2; background: #eff6ff; }
.zt-ss-tg    { color: #229ED9; } .zt-ss-tg:hover    { border-color: #229ED9; background: #e0f4fd; }
.zt-ss-native{ color: #0055FF; } .zt-ss-native:hover{ border-color: #0055FF; background: #eff6ff; }

.zt-ss-cancel {
  width: 100%; padding: 11px;
  background: #f1f5f9; border: none; border-radius: 10px;
  font-family: inherit; font-size: .82rem; font-weight: 700; color: #475569;
  cursor: pointer; transition: background .18s;
}
.zt-ss-cancel:hover { background: #e2e8f0; }

/* ── Desktop (centré, pas en bas) ── */
@media (min-width: 600px) {
  #zt-share-sheet { align-items: center; }
  .zt-ss-box {
    border-radius: 20px;
    transform: scale(.9) translateY(16px);
    max-height: 88vh;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
  }
  #zt-share-sheet.open .zt-ss-box { transform: scale(1) translateY(0); }
  .zt-ss-handle { display: none; }
}
