/* Boutique de modules.
  Règles déplacées de booking.css (étape 7 de l’audit), dans leur ordre d’origine ; chargé juste après booking.css. */

:root {
  /* Palette du fichier : couleurs écrites en dur remplacées par ces variables (mêmes valeurs). */
  --c-black-a25: rgba(0, 0, 0, 0.25);
}
/* Section d’origine : Boutique de modules */
.shop-total {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.shop-card.is-focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 2px var(--theme-accent);
}
.shop-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.shop-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 44px;
  background: linear-gradient(135deg, var(--sw-a) 0 55%, var(--sw-b) 55% 100%);
  border: 1px solid var(--theme-border);
}
.shop-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-muted);
}
.shop-primary,
.shop-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}
.shop-primary {
  background: var(--theme-accent);
  color: var(--theme-on-accent);
  border: 0;
}
.shop-confirm {
  flex: 1 1 100%;
  padding-top: 4px;
}
.shop-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin: 10px 0;
  border: 1px dashed var(--theme-accent);
  border-radius: 12px;
  background: var(--theme-soft);
  color: var(--theme-text);
  font-size: 14px;
}
.shop-lock-link {
  margin-left: auto;
  font-weight: 700;
  color: var(--theme-accent-text);
}
.service-link .shop-padlock {
  margin-left: 6px;
}
.shop-swatch.sw-theme_charcoal_copper {
  --sw-a: #292d32;
  --sw-b: #c1845b;
}
.shop-swatch.sw-theme_navy_gold {
  --sw-a: var(--c-navy);
  --sw-b: #d2a44c;
}
.shop-swatch.sw-theme_graphite_gold {
  --sw-a: #16181c;
  --sw-b: #d5aa50;
}
.shop-swatch.sw-theme_white_blue {
  --sw-a: #f0f4f8;
  --sw-b: #2362a0;
}
.shop-swatch.sw-theme_green_gold {
  --sw-a: #193c36;
  --sw-b: #c5a15b;
}
.shop-swatch.sw-theme_ivory_champagne {
  --sw-a: #f6f1e8;
  --sw-b: #a8864a;
}

/* Section d’origine : Vols suivis (alertes retard / annulation) */
.shop-team {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.shop-team-count {
  margin: 0;
}
.shop-admins {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--theme-border);
}
.shop-team-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
}

/* Section d’origine : Numéro de version et section d'intégration */
.shop-search {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 8px 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font: inherit;
  box-sizing: border-box;
}
.shop-card[hidden] {
  display: none !important;
}
.shop-cart {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 2px solid var(--theme-accent);
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.shop-cart ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-cart li > span {
  min-width: 0;
}

/* Section d’origine : V0168-46 : panier collé en bas de la Boutique */
.shop-cart-bar {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  margin: 16px 0 0;
  box-shadow: 0 8px 28px var(--c-black-a25);
}
.shop-cart-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.shop-cart-top .shop-primary,
.shop-cart-top .shop-btn {
  min-height: 44px;
}
.shop-cart-bar ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.shop-cart-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--theme-muted);
}

/* Section d’origine : V0168-48 : panier compact + panneau de détail qui défile */
.shop-cart-bar {
  padding: 10px 12px;
}
.shop-cart-bar .shop-cart-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.shop-cart-bar .shop-cart-top .shop-btn {
  flex: none;
  white-space: nowrap;
}
.shop-cart-bar .shop-cart-top .shop-primary {
  flex: none;
  white-space: nowrap;
  margin-left: auto;
}
.shop-cart-bar .sc-total {
  margin-left: auto;
  font-size: 1.05rem;
  white-space: nowrap;
}
.shop-cart-bar .sc-total + .shop-primary {
  margin-left: 0;
}
.shop-cart-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 8px;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 14px;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #101828);
  border: 2px solid var(--theme-accent, #c4875a);
  border-radius: 14px;
  box-shadow: 0 -8px 28px var(--c-black-a25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-cart-sheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.shop-cart-sheet li:last-child {
  border-bottom: 0;
}
.shop-cart-sheet .sc-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.shop-cart-sheet .sc-price {
  font-size: 0.9rem;
  color: var(--theme-muted, var(--c-muted));
  text-align: right;
  white-space: nowrap;
}
.shop-cart-sheet .sc-del {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--theme-border, #d8dde6);
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}
.shop-cart-sheet .shop-cart-note {
  margin: 0;
}
.shop-cart-sheet > .shop-btn {
  align-self: flex-start;
  min-height: 44px;
}
