/* ===========================================================
   Mobile‑First CSS for “Spin Wheel MS”
   Colors: #ffb400, #ffffff, #547cd9
   =========================================================== */

/* 1. Wrapper principal (mobile : colonne) */
#swms-wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 1a. Logo et images décoratives */
.swms-logo {
  text-align: center;
  margin-bottom: 20px;
}
.swms-logo img {
  max-height: 60px;
  width: auto;
  display: inline-block;
}
.swms-deco-images {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.swms-deco-images .swms-deco {
  max-width: 50px;
  height: auto;
  display: inline-block;
}

/* 2. Zones “roue” et “formulaire” (mobile) */
#swms-wheel-area,
#swms-form-area {
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

/* 3. Curseur (triangle) */
#swms-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #000;
}

/* 4. Canvas de la roue */
#swms-canvas {
  display: block;
  margin: 0 auto;
}

/* 5. Formulaire et champs */
#swms-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}
#swms-form input[type="email"],
#swms-form input[type="text"] {
  width: 100%;
  padding: 15px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  background: #ffffff;
  color: #000;
}

/* 6. Bouton “Spin & Win” */
#swms-spin-btn {
  padding: 15px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background: #547cd9;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  align-self: center;
}
#swms-spin-btn:hover,
#swms-spin-btn:focus,
#swms-spin-btn:active {
  background: #ffb400;
  color: #000;
  outline: none;
}

/* 7. Message de résultat */
#swms-result-message {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
  color: #000;
}

/* Texte en petit sous la popup */
.swms-popup-footer-text {
  text-align: center;
  font-size: 0.75em;
  color: #666;
  margin-top: 1em;
}
/* ====================================================
   Desktop Overrides (≥769px) : layout côte‑à‑côte
   ==================================================== */
@media (min-width: 769px) {
  /* wrapper : row + espace entre les blocs */
  #swms-wheel-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* formulaire : prend le reste de la largeur */
  #swms-form-area {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin-bottom: 0;
  }
}

/* =======================================================
   Styles page de paiement [swms_purchase]
   ======================================================= */
/* Titre avec icône */
.swms-purchase-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.5em;
}

/* Icône avant le titre */
.swms-purchase-icon {
  width: 1.2em;
  height: auto;
}

/* Conteneur des boutons */
.swms-purchase-buttons {
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

/* Style commun des boutons */
.swms-purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

/* Bouton Stripe (bleu site) */
.swms-purchase-button--stripe {
  background: #547cd9;   /* ton bleu */
  color: #fff;
}
.swms-purchase-button--stripe:hover {
  background: #ffb400;   /* ton jaune au hover */
  color: #000;
}

/* Bouton PayPal (un peu plus clair par défaut) */
.swms-purchase-button--paypal {
  background: #003087;   /* bleu PayPal foncé */
  color: #fff;
}
.swms-purchase-button--paypal:hover {
  background: #009cde;   /* bleu PayPal clair */
  color: #fff;
}

/* Icônes dans les boutons */
.swms-purchase-button-icon {
  width: 1em;
  height: auto;
  margin-left: 0.5em;
}

/* === Centrer le bloc d’achat === */
.swms-purchase {
  /* passe le conteneur en flex vertical centré */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* optionnel : limiter la largeur max pour ne pas être trop large */
  max-width: 600px;
  /* centrer horizontalement dans la page */
  margin: 0 auto 2em;
  /* un peu de padding autour */
  padding: 1em;
}

/* Centrer le titre à l’intérieur */
.swms-purchase-title {
  text-align: center;
}

/* Centrer les boutons côte-à-côte */
.swms-purchase-buttons {
  display: flex;
  justify-content: center;
  gap: 1em; /* espace entre les boutons */
  width: 100%;
}



/* =========== Remove Logo button en rouge =========== */
#swms_logo_remove_button {
  background-color: #dc3232 !important;
  color: #ffffff !important;
  border-color: #dc3232 !important;
}
#swms_logo_remove_button:hover,
#swms_logo_remove_button:focus {
  background-color: #a00 !important;
  border-color: #a00 !important;
}

/* Donne un fond rouge au bouton Remove Images */
button.remove-swms-custom-images {
  background-color: #dc3232!important;
  border-color:     #dc3232 !important;
  color:            #fff!important;
}

/* Hover (sans !important, il prendra le precedent) */
button.remove-swms-custom-images:hover {
  background-color: #a00!important;
  border-color:     #a00!important;
  color:            #fff !important;
}

/* SWMS: License action buttons */
.swms-btn-revoke {
  background-color: #e74c3c !important;
  color: #fff !important;
  border: 1px solid #e74c3c !important;
}

.swms-btn-revoke:hover {
  background-color: #c0392b !important;
  border-color: #c0392b!important;
}

.swms-btn-renew {
  background-color: #2ecc71 !important;
  color: #fff !important;
  border: 1px solid #2ecc71!important;
}

.swms-btn-renew:hover {
  background-color: #27ae60 !important;
  border-color: #27ae60!important;
}

.swms-btn-resend {
  background-color: #ffb400!important;
  color: #000!important;
  border-color: #ffb400!important;
}
.swms-btn-resend:hover {
  background-color: #cc9200!important;
  border-color: #cc9200!important;
  color: #000!important;
}


/* Optionnel : désactivé par défaut
.swms-purchase-button--stripe { background-color: #6772e5; }
.swms-purchase-button--paypal { background-color: #003087; }
*/



