/* =============================================================================
 * landing-multishop-creator.css — côté créateur de l'overlay MultiShop+.
 *
 * Chargée par le partial public/_multishop_modal.html (après les CSS de page,
 * donc gagnante à spécificité égale) :
 *
 * 1. Sélecteur « Qu'est-ce que tu mets en vente ? » — port de zic_admin
 *    static/css/admin-multishop-add-product-picker.css (préfixe mpk-, libre
 *    côté landing) DANS la carte compacte .zh-mshop-ptype-card : cartes
 *    blanches rayon 14, tuile d'icône colorée, pastille radio violette, badge
 *    « Nouveau » rouge, panneau de détail, « Continuer » rouge pleine largeur.
 *    Écarts : jetons du profil (--pp-*, clair / sombre) au lieu des jetons du
 *    cadre admin ; « Continuer » collant au bas de la carte (et non de la
 *    page) sous 768 px.
 * 2. Raccords du choix de devise au 1er produit (composant zsc-,
 *    landing-shop-currency-choice.css, copie de l'admin) dans les wizards
 *    digital (msd-), services (zsw-) et billetterie (ntk-) — miroir des
 *    raccords de l'admin (admin-multishop-digital-modal.css .msd-cur-field…).
 * ============================================================================= */

/* ----------------------------------------------------------- 1. Sélecteur */

/* 7 cartes : la carte compacte s'élargit (3 colonnes dès 640 px). */
.zh-mshop-ptype-card { max-width: 680px; }

.mpk-root {
  --mpk-brand: #7b3ff2;
  --mpk-brand-soft: rgba(123, 63, 242, 0.06);
  --mpk-brand-line: rgba(123, 63, 242, 0.18);
  --mpk-text: var(--pp-text, #1f1340);
  --mpk-muted: var(--pp-text-muted, #6b6383);
  --mpk-border: var(--pp-border, rgba(31, 19, 64, 0.12));
  --mpk-surface: var(--pp-card, #ffffff);
  --mpk-cta: #e11d48;
  --mpk-cta-dk: #be123c;
  --mpk-display: "Space Grotesk", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  padding: 6px 22px 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mpk-text);
}

.mpk-root [hidden] { display: none !important; }

.mpk-head { margin: 0 0 18px; }

.mpk-title {
  margin: 0;
  font-family: var(--mpk-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--mpk-text);
}

.mpk-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mpk-muted);
}

@media (min-width: 640px) {
  .mpk-title { font-size: 24px; letter-spacing: -0.7px; }
}

.mpk-types {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.mpk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .mpk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.mpk-type {
  position: relative;
  min-width: 0;
}

/* Radio réelle : invisible mais focalisable (flèches, Tab, lecteurs
   d'écran) ; elle couvre sa carte (défilement au focus), les clics vont au
   label. */
.mpk-radio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.mpk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  height: 100%;
  min-height: 100px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--mpk-border);
  background: var(--mpk-surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mpk-card:hover { border-color: rgba(123, 63, 242, 0.45); }

.mpk-radio:checked + .mpk-card {
  border-color: var(--mpk-brand);
  background: var(--mpk-brand-soft);
  box-shadow: 0 0 0 1px var(--mpk-brand), 0 10px 26px -16px var(--mpk-brand);
}

.mpk-radio:focus-visible + .mpk-card {
  outline: 2px solid var(--mpk-brand);
  outline-offset: 3px;
}

.mpk-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mpk-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mpk-c, var(--mpk-brand));
  color: #ffffff;
  flex-shrink: 0;
}

.mpk-tile svg { width: 19px; height: 19px; }

.mpk-check {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--mpk-border);
  color: #ffffff;
  flex-shrink: 0;
}

.mpk-check svg { width: 12px; height: 12px; visibility: hidden; }

.mpk-radio:checked + .mpk-card .mpk-check {
  border-color: var(--mpk-brand);
  background: var(--mpk-brand);
}

.mpk-radio:checked + .mpk-card .mpk-check svg { visibility: visible; }

.mpk-card-label {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--mpk-text);
  overflow-wrap: anywhere;
}

.mpk-badge {
  position: absolute;
  top: -9px;
  right: -4px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--mpk-cta);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.mpk-details { margin-top: 20px; }

.mpk-detail {
  padding: 18px;
  border-radius: 16px;
  background: var(--mpk-brand-soft);
  border: 1px solid var(--mpk-brand-line);
}

.mpk-detail-title {
  margin: 0;
  font-family: var(--mpk-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--mpk-text);
}

.mpk-detail-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mpk-muted);
}

.mpk-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mpk-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mpk-text);
}

.mpk-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--mpk-surface);
  border: 1px solid var(--mpk-border);
  color: var(--mpk-muted);
  flex-shrink: 0;
}

.mpk-feature-icon svg { width: 15px; height: 15px; }

.mpk-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 18px -22px 0;
  padding: 14px 22px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--mpk-surface) 28%);
}

.mpk-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--mpk-cta);
  color: #ffffff;
  font-family: var(--mpk-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.mpk-continue svg { width: 18px; height: 18px; flex-shrink: 0; }

.mpk-continue:hover { background: var(--mpk-cta-dk); color: #ffffff; }

.mpk-continue:active { transform: scale(0.99); }

.mpk-continue:focus-visible {
  outline: 2px solid var(--mpk-brand);
  outline-offset: 3px;
}

/* La carte focalisée s'arrête AU-DESSUS du « Continuer » collant. */
@media (max-width: 767px) {
  .mpk-radio { scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .mpk-card,
  .mpk-continue { transition: none; }
  .mpk-continue:active { transform: none; }
}

/* ------------------------------------- 2. Choix de devise dans les wizards */

/* Digital (étape 3) — miroir admin .msd-cur-field. */
.msd-cur-field {
  --zsc-purple: var(--msd-primary);
  --zsc-text: var(--msd-text);
  --zsc-muted: var(--msd-text-muted);
  --zsc-border: var(--msd-border-strong);
  min-width: 0;
}
.msd-cur-field .zsc-legend { margin-bottom: 6px; color: var(--msd-text-muted); }
.msd-cur-field .zsc-help { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--msd-text-soft); }
.msd-cur-field .zsc-chip span { border-radius: var(--msd-radius-sm); }

/* Services (étape 4) — l'emplacement monté par mountCurrency(). */
.zsw-currency { margin-bottom: 12px; min-width: 0; }
.zsw-currency .zsc-legend { margin-bottom: 6px; }
.zsw-currency .zsc-help { margin: 0; }

/* Billetterie — au-dessus des catégories de billets. */
[data-ntk-currency-field] { min-width: 0; }
[data-ntk-currency-field] .zsc-legend { margin-bottom: 6px; }
[data-ntk-currency-field] .zsc-help { margin: 0; font-size: 11.5px; line-height: 1.4; }
