/* ===== OVERLAY ===== */
#fps-gc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 99999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

#fps-gc-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MODALE ===== */
.fps-gc-modal {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  color: #333333;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: fps-gc-fadeIn 0.3s ease-out;

  /* NEW: limite altezza + layout flex */
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

@keyframes fps-gc-fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== BOTTONE CHIUSURA ===== */
.fps-gc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: transparent !important;  box-shadow: none !important;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fps-gc-close:hover {
  background: transparent !important;  box-shadow: none !important;
  color: #333;
  transform: rotate(90deg);
}

/* ===== CONTENUTO MODALE ===== */
.fps-gc-modal-inner {
  padding: 32px 32px 32px 32px;
  box-sizing: border-box;

  /* NEW: il contenuto interno diventa scrollabile */
  flex: 1 1 auto;
  overflow-y: auto;
}

/* ===== HEADER ===== */
.fps-gc-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.fps-gc-header h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.fps-gc-header p {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

/* ===== PROGRESS BAR ===== */
.fps-gc-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.fps-gc-progress .bar {
  flex: 1;
  height: 8px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.fps-gc-progress .bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #EA552A 0%, #ff6b3d 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fps-gc-progress .txt {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ===== LAYOUT PRINCIPALE ===== */
.fps-gc-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

/* ===== RENDERER (ANTEPRIMA) ===== */
.fps-gc-renderer-box {
  position: sticky;
  top: 20px;
}

/* Quadrato, ma lato max 70vh */
.fps-gc-renderer {
  position: relative;
  
  margin: 0 auto;

  /* NIENTE più padding-top qui, gestiamo altezza/larghezza via JS */
  /* width/height verranno impostate inline da JS in base al rapporto */

  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.fps-gc-renderer img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: top left;
}


/* ===== STEPS CONTAINER ===== */
.fps-gc-steps-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
}

.fps-gc-steps-container {
  min-height: 300px;
}

.fps-gc-step-front {
  display: none;
  animation: fps-gc-slideIn 0.3s ease-out;
}

.fps-gc-step-front.active {
  display: block;
}

@keyframes fps-gc-slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fps-gc-step-front h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.fps-gc-step-front p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===== IMMAGINE ESPLICATIVA ===== */
.fps-gc-step-expl {
  margin-bottom: 20px;
}

.fps-gc-step-expl img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== SELETTORE OPZIONI ===== */
.fps-gc-options-front {
  margin-bottom: 16px;
}

.fps-gc-options-front .fps-gc-select-label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #EA552A;
  letter-spacing: 0.3px;
}

.fps-gc-options-front select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.fps-gc-options-front select:hover {
  border-color: #c0c0c0;
}

.fps-gc-options-front select:focus {
  outline: none;
  border-color: #EA552A;
  box-shadow: 0 0 0 3px rgba(234, 85, 42, 0.1);
}

/* ===== RIEPILOGO PREZZO ===== */
.fps-gc-price-summary {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  text-align: center;
  border: 1px solid #e0e0e0;
}

/* ===== NAVIGAZIONE FOOTER ===== */
.fps-gc-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.fps-gc-footer-nav .fps-gc-prev {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 120px;
  background: #f5f5f5;
  color: #666;
}

.fps-gc-footer-nav .fps-gc-prev:hover {
  background: #e8e8e8;
  color: #333;
  transform: translateX(-2px);
}

.fps-gc-footer-nav .fps-gc-next {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 120px;
  background: linear-gradient(135deg, #EA552A 0%, #ff6b3d 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 85, 42, 0.3);
  margin-left: auto;
}

.fps-gc-footer-nav .fps-gc-next:hover {
  box-shadow: 0 6px 16px rgba(234, 85, 42, 0.4);
  transform: translateY(-2px);
}

/* ===== BOTTONE TRIGGER PRINCIPALE ===== */
.fps-gc-open {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 16px 28px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #EA552A 0%, #ff6b3d 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(234, 85, 42, 0.3) !important;
  margin-bottom: 20px !important;
  text-decoration: none !important;
}

.fps-gc-open:before {
  content: "✨";
  font-size: 18px;
}

.fps-gc-open:hover {
  box-shadow: 0 6px 20px rgba(234, 85, 42, 0.4) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, #ff6b3d 0%, #EA552A 100%) !important;
}

/* ===== FEEDBACK MODALE ===== */
.fps-gc-feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fps-gc-feedback-overlay.active {
  display: flex;
}

.fps-gc-feedback {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: fps-gc-fadeIn 0.3s ease-out;
  position: relative;
}

.fps-gc-feedback h4 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  text-align: center;
}

.fps-gc-feedback-skip {
  position: absolute;
  top: 8px !important;
  right: 4px !important;
  background: transparent !important;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.fps-gc-feedback-skip:hover {
  background: transparent;
  color: #666;    transform: rotate(90deg);
}

.fps-gc-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.fps-gc-stars span {
  cursor: pointer;
  font-size: 36px;
  color: #828282 !important;
  transition: all 0.2s ease;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fps-gc-stars span:hover,
.fps-gc-stars span.active {
  color: #ffc107 !important;
  transform: scale(1.15);
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.fps-gc-feedback-text {
  width: 100%;
  max-width: 100%;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  color: #333;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.fps-gc-feedback-text:focus {
  outline: none;
  border-color: #EA552A;
  box-shadow: 0 0 0 3px rgba(234, 85, 42, 0.1);
}

.fps-gc-feedback-actions {
  display: flex;
  gap: 12px;
}

.fps-gc-feedback-send,
.fps-gc-feedback-skip-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.fps-gc-feedback-send {
  background: linear-gradient(135deg, #EA552A 0%, #ff6b3d 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 85, 42, 0.3);
}

.fps-gc-feedback-send:hover {
  box-shadow: 0 6px 16px rgba(234, 85, 42, 0.4);
  transform: translateY(-2px);
}

.fps-gc-feedback-skip-btn {
  background: #f5f5f5;
  color: #666;
}

.fps-gc-feedback-skip-btn:hover {
  background: #e8e8e8;
  color: #333;
}

.fps-gc-feedback-msg {
  text-align: center;
  font-size: 16px;
  margin-top: 16px;
  padding: 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  display: none;
}

.fps-gc-feedback-msg.show {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fps-gc-layout {
    grid-template-columns: 40% 60%;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #fps-gc-overlay {
    align-items: stretch;
    justify-content: center;
    padding: 16px 16px;
  }

  #fps-gc-overlay.active {
    align-items: flex-start;
  }

  /* Modale mobile, sempre con max-height 80vh per coerenza */
    .fps-gc-modal {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      background: #ffffff;
      color: #333333;
      border-radius: 16px;
      box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
      position: relative;
      animation: fps-gc-fadeIn 0.3s ease-out;
    
      /* IMPORTANTE PER L’ALTEZZA */
      max-height: 80vh;
      display: flex;
      flex-direction: column;
    }
    
    .fps-gc-modal-inner {
      padding: 32px;
      box-sizing: border-box;
    
      /* IMPORTANTE: fa scorrere SOLO il contenuto dentro */
      flex: 1;
      overflow-y: auto;
    }

  .fps-gc-footer-nav::after {
    content: "";
    display: block;
    height: 50px;
    width: 100%;
  }

  .fps-gc-header h3 {
    font-size: 22px;
  }

  .fps-gc-header p {
    font-size: 14px;
  }

  .fps-gc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fps-gc-steps-box {
    padding-right: 0;
  }

  .fps-gc-renderer-box {
    position: static;
    order: -1;
  }

  .fps-gc-price-summary {
    margin-top: 16px;
    margin-bottom: 4px;
  }

  .fps-gc-footer-nav {
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .fps-gc-step-front h4 {
    font-size: 20px;
  }

  .fps-gc-footer-nav .fps-gc-prev,
  .fps-gc-footer-nav .fps-gc-next {
    flex: 1;
    min-width: 45%;
  }

  .fps-gc-close {
    position: static;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fps-gc-feedback {
    padding: 24px 20px;
  }

  .fps-gc-feedback h4 {
    font-size: 20px;
  }

  .fps-gc-stars span {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .fps-gc-modal-inner {
    padding: 20px 16px;
  }

  .fps-gc-header h3 {
    font-size: 20px;
  }

  .fps-gc-progress .txt {
    font-size: 12px;
    min-width: 50px;
  }

  .fps-gc-step-front h4 {
    font-size: 18px;
  }

  .fps-gc-open {
    padding: 14px 24px !important;
    font-size: 15px !important;
    width: 100%;
    justify-content: center;
  }
}

/* Fix: pulsanti sempre allineati a destra */
.fps-gc-footer-nav {
  display: flex !important;
  justify-content: space-between !important;
}

.fps-gc-footer-nav .fps-gc-next {
  margin-left: auto !important;
}

@media (max-width: 768px) {
  .fps-gc-price-summary {
    margin-bottom: 0 !important;
  }

  .fps-gc-footer-nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}

.fps-gc-footer-nav::after {
  content: "";
  display: block;
  height: 50px;
}

/* ===============================
   UPSSELL – Adattatore PC (addon 30)
   =============================== */

.fps-gc-upsell-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.fps-gc-upsell-box .fps-gc-upsell-image {
    width: 140px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.fps-gc-upsell-title {
    font-size: 17px;
    font-weight: 600;
    margin-top: 5px;
    color: #ffffff;
}

.fps-gc-upsell-price {
    font-size: 16px;
    font-weight: 500;
    color: #EA552A; /* colore FPS Italia */
}

.fps-gc-upsell-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #EA552A;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease;
}

.fps-gc-upsell-btn:hover {
    background: #ff673b;
    transform: translateY(-2px);
}

.fps-gc-upsell-btn:active {
    transform: translateY(0);
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .fps-gc-upsell-box {
        padding: 15px;
        gap: 10px;
    }

    .fps-gc-upsell-box .fps-gc-upsell-image {
        width: 120px;
    }

    .fps-gc-upsell-title {
        font-size: 16px;
    }

    .fps-gc-upsell-price {
        font-size: 15px;
    }

    .fps-gc-upsell-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* Nasconde gli step non visibili (incluso upsell adattatore fuori logica Thrustmaster+PC) */
.fps-gc-step-front.fps-gc-hidden {
  display: none !important;
}

/* ===== SCELTA MANOPOLE TRAMITE IMMAGINI ===== */

.fps-gc-options-front--image-choices {
  margin-bottom: 12px;
}

/* Il select resta per YITH ma è nascosto all'utente */
.fps-gc-options-front--image-choices select {
  display: none;
}

.fps-gc-knob-grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 6px 0 10px;
  margin: 0 -4px 4px;
}

.fps-gc-knob-item {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  outline: none;
}

.fps-gc-knob-img-wrap {
  position: relative;
  border-radius: 14px;
  padding: 4px 6px 8px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

/* Immagini delle manopole */
.fps-gc-knob-img-wrap img {
  display: block;
  max-height: 190px;   /* ← massimo 190px */
  width: auto;         /* ← calcolo proporzionale */
  height: auto;        /* ← lascia l'immagine adattarsi */
  object-fit: contain; /* ← evita distorsioni */
}


@media (max-width: 768px) {
  .fps-gc-knob-img-wrap img {
    max-height: 140px; /* ad esempio */
  }
}

/* Niente bordi / glow da focus */
.fps-gc-knob-item:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Stato hover + selezionata: solo movimento, niente riquadro */
.fps-gc-knob-item:hover .fps-gc-knob-img-wrap,
.fps-gc-knob-item.is-selected .fps-gc-knob-img-wrap {
  transform: translateY(-4px) scale(1.06);
  filter: none;          /* se vuoi il glow rimetti qui un drop-shadow */
  background: transparent;
  box-shadow: none;
}

.fps-gc-knob-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
  white-space: nowrap;
}

/* Bottone download sulla foto a sinistra */
.fps-gc-download-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fps-gc-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: #ea552a;
}

@media (max-width: 768px) {
  .fps-gc-download-btn {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* ===========================================
   HARD OVERRIDE: manopole senza riquadro
   =========================================== */

/* Nessun bordo / sfondo / box-shadow su tutta l'area manopole */
#fps-gc-overlay .fps-gc-knob-item,
#fps-gc-overlay .fps-gc-knob-item *,
#fps-gc-overlay .fps-gc-knob-img-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Stato hover + selezionata: SOLO ingrandimento, niente riquadro */
#fps-gc-overlay .fps-gc-knob-item:hover .fps-gc-knob-img-wrap,
#fps-gc-overlay .fps-gc-knob-item.is-selected .fps-gc-knob-img-wrap {
  transform: translateY(-4px) scale(1.06);
  filter: none !important;
}

/* ===========================================
   MANOPOLE: sempre centrate, NON scrollabili
   =========================================== */

#fps-gc-overlay .fps-gc-knob-grid {
  display: flex;
  flex-wrap: wrap;              /* se non ci stanno in una riga, vanno a capo */
  justify-content: center;      /* sempre centrate */
  align-items: flex-end;
  gap: 12px;
  padding: 6px 0 10px;
  margin: 0 auto 4px;           /* centrata rispetto al contenitore */
  overflow-x: hidden;           /* niente scroll orizzontale */
}

/* Contenitore renderer: riferimento per il tasto download */
.fps-gc-renderer-box {
  position: relative;
}

/* Bottone download (icona / stato di attesa) */
.fps-gc-download-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  padding: 0 14px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  background: #111;
  color: #fff;
}

/* Stato "sto preparando l'immagine" */
.fps-gc-download-btn.fps-gc-download-wait {
  font-size: 13px;
  padding: 0 18px;
  white-space: nowrap;
  cursor: default;
  opacity: 0.9;
}

/* Mobile: tienilo un filo più dentro e compatto */
@media (max-width: 768px) {
  .fps-gc-download-btn {
    bottom: 10px;
    right: 10px;
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .fps-gc-download-btn.fps-gc-download-wait {
    font-size: 12px;
    max-width: 70vw;
  }
}

/* Contenitore renderer: riferimento per wrapper download */
.fps-gc-renderer-box {
  position: relative;
}

/* Wrapper: testo a sinistra + pulsante a destra */
.fps-gc-download-wrapper {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Testo "Sto preparando l'immagine" */
.fps-gc-download-label {
  font-size: 12px;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 220px;
  line-height: 1.3;
}

/* Stato disabilitato (mentre prepara) */
.fps-gc-download-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* Mobile: un po' più compatto */
@media (max-width: 768px) {
  .fps-gc-download-wrapper {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }

  .fps-gc-download-label {
    font-size: 11px;
    max-width: 60vw;
  }

  .fps-gc-download-btn {
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
  }
}
