.stripe-pay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  margin: 0 auto 16px auto;
}
.stripe-pay-btn:hover { 
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.stripe-pay-btn:active { 
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

#stripe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  /* blocca lo scroll della pagina sottostante */
  overflow: hidden;
}
#stripe-overlay.open {
  display: flex;
}

#stripe-modal {
  position: relative;
  width: 520px;
  max-width: 95vw;
  /* altezza massima = viewport meno margini, con scroll interno */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

#stripe-modal-header {
  flex-shrink: 0;  /* non si comprime mai */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
#stripe-modal-header span {
  font-size: 14px;
  color: #888;
}
#stripe-close-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #666;
  transition: background 0.15s;
}
#stripe-close-btn:hover { background: #f5f5f5; }

/* il form embedded scorre internamente se è troppo alto */
#stripe-embedded-form {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
}
