/**
 * Thème Planet Sushi — fond noir (lisibilité), accents rose glossy
 * Activé par html.theme-planet-sushi (serveur + applySiteName)
 * Ne pas forcer .text-white → gris : les boutons catégories utilisent text-white + glass.
 */

html.theme-planet-sushi {
  --ps-rose-600: #db2777;
  --ps-rose-500: #ec4899;
  --ps-rose-400: #f472b6;
  --ps-bg: #020617;
}

/* Fond noir + léger halo rose (très discret) */
html.theme-planet-sushi body {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(219, 39, 119, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%) !important;
  color: #f8fafc !important;
}

/* Glass : comme l’app d’origine, bordure rose */
html.theme-planet-sushi .glass {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(244, 114, 182, 0.22) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
}

/* Gradients orange → rose (boutons principaux) */
html.theme-planet-sushi .from-orange-600 {
  --tw-gradient-from: #be185d !important;
}
html.theme-planet-sushi .to-orange-500 {
  --tw-gradient-to: #ec4899 !important;
}
html.theme-planet-sushi .from-orange-500 {
  --tw-gradient-from: #db2777 !important;
}
html.theme-planet-sushi .to-orange-400 {
  --tw-gradient-to: #f472b6 !important;
}

html.theme-planet-sushi .shadow-orange-500\/30,
html.theme-planet-sushi .shadow-orange-600\/40 {
  --tw-shadow-color: rgba(236, 72, 153, 0.4) !important;
}

/* Accents texte orange → rose */
html.theme-planet-sushi .text-orange-400,
html.theme-planet-sushi .text-orange-500 {
  color: var(--ps-rose-400) !important;
}

html.theme-planet-sushi .border-white\/5,
html.theme-planet-sushi .border-white\/10,
html.theme-planet-sushi .border-white\/20 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-planet-sushi [class*="border-orange"] {
  border-color: rgba(236, 72, 153, 0.45) !important;
}

/* Header */
html.theme-planet-sushi #server-view > main > header {
  background: #020617 !important;
  border-bottom: 1px solid rgba(244, 114, 182, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Nav : icônes lisibles sur fond sombre */
html.theme-planet-sushi #desktop-rail-nav.glass i {
  color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
}

/* Bouton « Barre » dans le header : même rôle qu’Okana — forcer l’affichage desktop */
html.theme-planet-sushi #rail-toggle-btn {
  border-color: rgba(244, 114, 182, 0.22) !important;
  background: rgba(15, 23, 42, 0.92) !important;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  html.theme-planet-sushi #rail-toggle-btn {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
html.theme-planet-sushi #rail-toggle-btn .rail-icon-open,
html.theme-planet-sushi #rail-toggle-btn .rail-icon-closed {
  color: #fbcfe8 !important;
  opacity: 1 !important;
}

html.theme-planet-sushi #server-view > nav.glass i:hover {
  color: #fbcfe8 !important;
}

html.theme-planet-sushi #server-view > nav.glass i.text-orange-400 {
  color: var(--ps-rose-400) !important;
}

html.theme-planet-sushi #server-view > nav.glass i.text-purple-400 {
  color: #c4b5fd !important;
}

html.theme-planet-sushi #server-view > nav.glass i.text-green-400 {
  color: #4ade80 !important;
}

/* Cartes produit : overlay sombre (comportement d’origine) */
html.theme-planet-sushi .product-btn-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent) !important;
  /* Réserve la zone du bouton info (coin haut-droite) pour éviter le chevauchement du libellé */
  padding-right: 1.35rem !important;
  box-sizing: border-box;
}

html.theme-planet-sushi .product-btn:hover {
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.25) !important;
}

html.theme-planet-sushi .product-btn {
  border-bottom-color: rgba(0, 0, 0, 0.35) !important;
}

/* Pilule − / n / + : renfort visuel (panier + extras) — cohérent avec la modal */
html.theme-planet-sushi .planet-cart-qty,
html.theme-planet-sushi .planet-order-extra-qty {
  border-color: rgba(192, 132, 200, 0.55) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html.theme-planet-sushi .planet-cart-qty-mobile .opt-qty-minus,
html.theme-planet-sushi .planet-cart-qty-mobile .opt-qty-plus {
  min-height: 3rem !important;
}
html.theme-planet-sushi .planet-cart-qty-mobile .opt-qty-badge {
  min-height: 3rem !important;
  font-size: 1.05rem !important;
}

/* Barre catégories : couleurs gérées en inline (categoryTabStyle) — pas de bordure rose forcée */
html.theme-planet-sushi #cat-bar button,
html.theme-planet-sushi #mobile-cat-bar button {
  flex-shrink: 0 !important;
  min-width: max-content !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/*
 * Grille + cartes produits : même densité partout (sur place = à emporter).
 * Avant : seul .planet-service-emporter avait la grille serrée et min-height 86px ;
 * le mode sur place gardait des cartes plus hautes (118px) et chevauchement avec le bouton info.
 */
html.theme-planet-sushi #display-grid {
  gap: 0.35rem !important;
}
@media (min-width: 768px) {
  html.theme-planet-sushi #display-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  html.theme-planet-sushi #display-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1280px) {
  html.theme-planet-sushi #display-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
html.theme-planet-sushi #mobile-display-grid {
  gap: 0.35rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.theme-planet-sushi .product-btn {
  min-height: 86px !important;
}

html.theme-planet-sushi .product-btn-content .product-btn-name {
  font-size: clamp(0.48rem, 0.62vw + 0.16rem, 0.62rem) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  -webkit-line-clamp: 3 !important;
  word-break: break-word !important;
  hyphens: auto;
  max-height: 3.15em !important;
}

html.theme-planet-sushi .product-btn-content .product-btn-price {
  font-size: clamp(0.48rem, 0.68vw + 0.18rem, 0.7rem) !important;
  line-height: 1.05 !important;
  margin-top: 0.08rem !important;
  padding-bottom: 0.05rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.theme-planet-sushi .product-btn-formule {
  min-height: 102px !important;
}

/* Champs : style sombre (cohérent avec l’app) */
html.theme-planet-sushi .custom-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html.theme-planet-sushi .custom-input:focus {
  border-color: var(--ps-rose-500) !important;
  background: rgba(219, 39, 119, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

html.theme-planet-sushi .custom-input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

html.theme-planet-sushi select.custom-input,
html.theme-planet-sushi input[type="date"].custom-input {
  background: rgba(15, 23, 42, 0.95) !important;
  color: #fff !important;
}

html.theme-planet-sushi select.custom-input option,
html.theme-planet-sushi select.custom-input optgroup {
  background: #0f172a;
  color: #fff;
}

/* Scrollbars */
html.theme-planet-sushi .custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.45) !important;
}

/* Stat badges */
html.theme-planet-sushi .stat-badge {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(244, 114, 182, 0.2) !important;
}

html.theme-planet-sushi .stat-badge-label {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.theme-planet-sushi .stat-badge-value {
  color: var(--ps-rose-400) !important;
}

/* Modales : overlay sombre (ne pas éclaircir) */
html.theme-planet-sushi [class*="bg-black/90"],
html.theme-planet-sushi [class*="bg-black/95"],
html.theme-planet-sushi [class*="bg-black/80"] {
  background-color: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(10px) !important;
}

/* Panneaux semi-transparents */
html.theme-planet-sushi .bg-black\/40,
html.theme-planet-sushi .bg-black\/30,
html.theme-planet-sushi .bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Manager */
html.theme-planet-sushi #manager-view .text-slate-300 {
  color: rgba(203, 213, 225, 0.95) !important;
}
html.theme-planet-sushi #manager-view .text-slate-400 {
  color: rgba(148, 163, 184, 0.9) !important;
}

/* Toasts */
html.theme-planet-sushi #toast-container .toast,
html.theme-planet-sushi .toast-container .toast {
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(244, 114, 182, 0.25) !important;
}
html.theme-planet-sushi .toast-title {
  color: #fff !important;
}
html.theme-planet-sushi .toast-message {
  color: rgba(255, 255, 255, 0.7) !important;
}

html.theme-planet-sushi .loading-spinner {
  border-color: rgba(236, 72, 153, 0.2) !important;
  border-top-color: var(--ps-rose-500) !important;
}

html.theme-planet-sushi #footer-feed {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), #020617) !important;
  border-top: 1px solid rgba(244, 114, 182, 0.15) !important;
}

html.theme-planet-sushi .command-item:hover,
html.theme-planet-sushi .command-item.selected {
  background: rgba(219, 39, 119, 0.15) !important;
  border-left-color: var(--ps-rose-500) !important;
}

html.theme-planet-sushi .product-btn-formule {
  border-color: rgba(251, 191, 36, 0.55) !important;
}

/* Bottom nav mobile */
html.theme-planet-sushi .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.98) !important;
  border-top: 2px solid rgba(244, 114, 182, 0.25) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5) !important;
}

html.theme-planet-sushi .mobile-bottom-nav-item {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.theme-planet-sushi .mobile-bottom-nav-item.active {
  background: rgba(219, 39, 119, 0.25) !important;
  color: #fbcfe8 !important;
  border: 2px solid rgba(236, 72, 153, 0.45) !important;
}

html.theme-planet-sushi aside.border-l {
  border-left-color: rgba(244, 114, 182, 0.15) !important;
}

html.theme-planet-sushi #desktop-rail-nav.glass {
  border-right: 1px solid rgba(244, 114, 182, 0.12) !important;
}

/* Ticket thermique / navigateur : contraste maximal (thème sombre + raster Epson) */
@media print {
  html.theme-planet-sushi {
    color-scheme: light !important;
  }
  html.theme-planet-sushi #print-area,
  html.theme-planet-sushi #print-area * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html.theme-planet-sushi #print-area {
    background: #fff !important;
  }
}

/* Accueil service Planet : gros boutons Livraison / À emporter / Sur place */
html.theme-planet-sushi .planet-service-btn {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.theme-planet-sushi .planet-service-btn:hover {
  box-shadow:
    0 16px 48px rgba(236, 72, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Modal téléphone / livraison : libellés adaptés (pas « salle ») */
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal {
  border-color: rgba(244, 114, 182, 0.35) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(236, 72, 153, 0.15) !important;
}
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal h2,
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal .text-orange-400 {
  color: var(--ps-rose-400) !important;
}

/* Accueil Planet : 3 héros pleine hauteur avec visuels */
html.theme-planet-sushi .planet-service-fullscreen {
  flex: 1 1 auto;
  min-height: 0;
}
html.theme-planet-sushi .planet-service-hero {
  flex: 1 1 0;
  min-height: 22vh;
}
@media (min-width: 640px) {
  html.theme-planet-sushi .planet-service-hero {
    min-height: 26vh;
  }
}
html.theme-planet-sushi .planet-service-hero img {
  pointer-events: none;
}

/* ─── Bouton info produit : discret, hors zone prix ─── */
html.theme-planet-sushi .product-info-btn {
  top: 5px !important;
  right: 5px !important;
  left: auto !important;
  bottom: auto !important;
  width: 19px !important;
  height: 19px !important;
  border-width: 1px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
html.theme-planet-sushi .product-info-btn svg {
  width: 9px !important;
  height: 9px !important;
}

/* ─── Modales : centrées, compactes, pas de scroll interne (réduction auto zoom JS) ─── */
html.theme-planet-sushi #product-options-modal {
  padding: 0.35rem !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(0, 0, 0, 0.88) !important;
}
html.theme-planet-sushi #product-options-modal > .glass.product-options-glass,
html.theme-planet-sushi #product-options-modal > .glass {
  max-width: min(32rem, 100vw) !important;
  width: 100% !important;
  min-height: 0 !important;
  border-radius: 1rem !important;
  margin: 0 auto !important;
}
html.theme-planet-sushi #product-options-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem !important;
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
}
html.theme-planet-sushi #opt-step-indicator:not(.hidden) {
  padding: 0.3rem 0.65rem 0 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.05em !important;
}
html.theme-planet-sushi #product-options-modal .border-b,
html.theme-planet-sushi #product-options-modal .border-t {
  padding: 0.5rem 0.65rem !important;
}
html.theme-planet-sushi #product-options-modal .border-t button {
  min-height: 44px !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}
html.theme-planet-sushi #product-options-modal #product-options-footer {
  padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px)) !important;
  gap: 0.65rem !important;
}
html.theme-planet-sushi #product-options-modal #product-options-footer button:not(#product-options-next-btn) {
  min-height: 3.75rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}
/* Étape options : orange tant que min/max non respecté, rose quand OK */
html.theme-planet-sushi #product-options-modal #product-options-next-btn.opt-next-step-incomplete {
  background-image: linear-gradient(to right, #ea580c, #f97316) !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35) !important;
}
html.theme-planet-sushi #product-options-modal #product-options-next-btn.opt-next-step-complete {
  background-image: linear-gradient(to right, #db2777, #c026d3) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35) !important;
}

html.theme-planet-sushi #product-options-modal #product-options-next-btn {
  min-height: 4.25rem !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  font-size: 1.0625rem !important;
  letter-spacing: 0.06em !important;
}
@media (min-width: 640px) {
  html.theme-planet-sushi #product-options-modal #product-options-next-btn {
    min-height: 4.65rem !important;
    font-size: 1.2rem !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
}
html.theme-planet-sushi #product-options-modal #product-options-close-footer-btn {
  min-width: 3.75rem !important;
  min-height: 3.75rem !important;
}
html.theme-planet-sushi #product-options-modal #product-options-close-footer-btn svg {
  width: 2.25rem !important;
  height: 2.25rem !important;
}
/* Grille 2 colonnes pour réduire la hauteur des listes d’options */
html.theme-planet-sushi #product-options-modal .opt-group-box:not(.opt-static-line) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.45rem;
  align-items: start;
}
html.theme-planet-sushi #product-options-modal .opt-group-title {
  grid-column: 1 / -1;
  font-size: 0.72rem !important;
  margin-bottom: 0.15rem !important;
  color: rgba(244, 114, 182, 0.98) !important;
}
html.theme-planet-sushi #product-options-modal .opt-static-line {
  grid-column: 1 / -1;
  font-size: 0.75rem !important;
  margin-bottom: 0.35rem !important;
}
html.theme-planet-sushi #product-options-modal .opt-choice-row {
  padding: 0.35rem 0.4rem !important;
  margin-bottom: 0 !important;
  gap: 0.35rem !important;
}
html.theme-planet-sushi #product-options-modal .opt-choice-text {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}
html.theme-planet-sushi #product-options-modal .opt-slot-label,
html.theme-planet-sushi #product-options-modal .opt-slot-select,
html.theme-planet-sushi #product-options-modal .opt-slot-radio-wrap,
html.theme-planet-sushi #product-options-modal .mb-3 {
  grid-column: 1 / -1;
}

/* « X au choix » : une ligne pleine largeur (− / compteur / + + libellé) */
html.theme-planet-sushi #product-options-modal .opt-choice-with-qty {
  grid-column: 1 / -1;
  padding: 0.4rem 0.45rem !important;
  margin-bottom: 0 !important;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 114, 182, 0.12);
  align-items: center !important;
}
html.theme-planet-sushi #product-options-modal .opt-qty-stepper {
  border-color: rgba(192, 132, 200, 0.55) !important;
  background: rgba(15, 23, 42, 0.92) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.theme-planet-sushi #product-options-modal .opt-qty-stepper .opt-qty-minus,
html.theme-planet-sushi #product-options-modal .opt-qty-stepper .opt-qty-plus {
  background: rgba(255, 255, 255, 0.08) !important;
}
html.theme-planet-sushi #product-options-modal .opt-qty-stepper .opt-qty-minus:hover,
html.theme-planet-sushi #product-options-modal .opt-qty-stepper .opt-qty-plus:hover {
  background: rgba(244, 114, 182, 0.22) !important;
}
html.theme-planet-sushi #product-options-modal .opt-qty-stepper .opt-qty-badge {
  border-left-color: rgba(244, 114, 182, 0.35) !important;
  border-right-color: rgba(244, 114, 182, 0.35) !important;
  background: rgba(15, 23, 42, 0.65) !important;
  color: #f0abfc !important;
}
html.theme-planet-sushi #product-options-modal .opt-slot-select {
  min-height: 2.5rem !important;
  font-size: 0.8rem !important;
}

html.theme-planet-sushi #phone-order-modal {
  padding: 0.35rem !important;
  align-items: center !important;
}
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal {
  max-width: min(28rem, 100vw) !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 1rem !important;
  margin: 0 auto !important;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: hidden !important;
}
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.25rem !important;
}
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal .custom-input {
  padding: 0.45rem 0.5rem !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.35rem !important;
}

html.theme-planet-sushi #accompagnement-modal {
  padding: 0.35rem !important;
  align-items: center !important;
}
html.theme-planet-sushi #accompagnement-modal > .glass {
  max-width: min(28rem, 100vw) !important;
  width: 100% !important;
  max-height: none !important;
  border-radius: 1rem !important;
  margin: 0 auto !important;
  overflow-y: hidden !important;
}

html.theme-planet-sushi #custom-prompt-modal,
html.theme-planet-sushi #custom-confirm-modal {
  padding: 0.35rem !important;
  align-items: center !important;
}
html.theme-planet-sushi #custom-prompt-modal > .glass,
html.theme-planet-sushi #custom-confirm-modal > .glass {
  max-width: min(28rem, 100vw) !important;
  width: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 1rem !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 1rem !important;
  overflow-y: hidden !important;
}

/* ─── Boutons d’action principaux : rose (modales Planet) ─── */
html.theme-planet-sushi #product-options-modal #product-options-next-btn,
html.theme-planet-sushi #product-options-modal .border-t button:last-of-type,
html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal .grid button:last-child,
html.theme-planet-sushi #accompagnement-modal .grid button.bg-gradient-to-r,
html.theme-planet-sushi #custom-prompt-modal .grid button:last-child,
html.theme-planet-sushi #custom-confirm-modal .grid button:last-child {
  background-image: linear-gradient(to right, #be185d, #ec4899) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35) !important;
}

html.theme-planet-sushi #phone-order-modal-inner.planet-phone-modal .from-cyan-600 {
  --tw-gradient-from: #be185d !important;
  --tw-gradient-to: #ec4899 !important;
  background-image: linear-gradient(to right, #be185d, #ec4899) !important;
}

html.theme-planet-sushi #custom-prompt-modal .from-orange-600,
html.theme-planet-sushi #custom-confirm-modal .from-orange-600 {
  --tw-gradient-from: #be185d !important;
  --tw-gradient-to: #ec4899 !important;
}

html.theme-planet-sushi #custom-prompt-modal .bg-gradient-to-br.from-orange-600,
html.theme-planet-sushi #custom-confirm-modal .bg-gradient-to-br.from-orange-600 {
  background-image: linear-gradient(to bottom right, #be185d, #ec4899) !important;
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.35) !important;
}

html.theme-planet-sushi #print-queue-modal {
  padding: 0.35rem !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 2vh !important;
}
html.theme-planet-sushi #print-queue-modal > .glass {
  max-width: min(42rem, 100vw) !important;
  width: 100% !important;
  max-height: 92vh !important;
  height: auto !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
}

/* Paiement : hauteur cadrée par fitPaymentModalGlass() + scroll tactile (évite contenu coupé) */
html.theme-planet-sushi #payment-modal {
  padding: 0.35rem !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.theme-planet-sushi #payment-modal > .glass.payment-modal-glass,
html.theme-planet-sushi #payment-modal > .glass {
  max-width: min(36rem, 100vw) !important;
  width: 100% !important;
  /* Ne pas forcer max-height: none — ça annulait le style inline JS et bloquait tout défilement */
  min-height: 0 !important;
  border-radius: 1rem !important;
  margin: 0.5rem auto !important;
  flex-shrink: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
}
html.theme-planet-sushi #payment-modal h3 {
  font-size: 1.25rem !important;
  margin-bottom: 0.35rem !important;
}
html.theme-planet-sushi #payment-modal button[onclick*='confirmPayment'],
html.theme-planet-sushi #payment-modal button.from-green-600 {
  background-image: linear-gradient(to right, #be185d, #ec4899) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35) !important;
}

/* Détail produit (showProductInfo) : bloc centré, zoom JS, pas de scroll */
html.theme-planet-sushi .product-info-overlay {
  justify-content: center !important;
  align-items: center !important;
  padding: 0.35rem !important;
}
html.theme-planet-sushi .product-info-scale-root {
  max-width: min(28rem, 100vw) !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(244, 114, 182, 0.28) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
}
