/* Container du bouton */
.a4w-alerts-product {
    margin-bottom: var(--margin-large, 32px);
    text-align: center;
    width: 100%;
}

/* Espacement supplémentaire quand le bouton s'affiche sur un produit hors stock */
.a4w-alerts-product.a4w-alerts-oos {
    margin-top: 20px;
}

/* Bouton "Être alerté" - Design aligné sur a4w_offre (.btn-make-offer) */
.a4w-alerts .a4w-alert-btn {
    color: var(--secondary-color, #000000) !important;
    background-color: var(--background-color, #FFFFFF) !important;
    border: 2px solid var(--secondary-color, #000000) !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 16px 24px !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: all var(--transition-duration, .2s) ease;
    width: 100%;
    font-size: 14px;
}

.a4w-alerts .a4w-alert-btn:hover {
    color: var(--background-color, #FFFFFF) !important;
    background-color: var(--secondary-color, #000000) !important;
    border: 2px solid var(--secondary-color, #000000) !important;
}

.a4w-alerts .a4w-alert-btn:focus {
    color: var(--secondary-color, #000000) !important;
    background-color: var(--background-color, #FFFFFF) !important;
    border: 2px solid var(--secondary-color, #000000) !important;
    outline: none !important;
    box-shadow: none !important;
}

.a4w-alerts .a4w-alert-modal .modal-body label { display: block; margin: .25rem 0; }

/* Alignement à gauche du bloc "Type d'alerte" dans la modale */
.a4w-alerts .a4w-alert-modal .a4w-type-group,
.a4w-alerts .a4w-alert-modal .a4w-type-group label,
.a4w-alerts .a4w-alert-modal .a4w-type-group em {
    text-align: left;
}
/* Aide affichée au-dessus des cases à cocher (mode « choix multiple ») */
.a4w-alert-modal .a4w-type-hint {
    margin: .25rem 0 .5rem;
    font-size: 13px;
    color: var(--medium-gray, #7a7a7a);
    text-align: left;
}

/* ───────── Popup de connexion ───────── */

.a4w-login-modal .a4w-login-intro {
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--medium-gray, #7a7a7a);
}

.a4w-login-modal .modal-body { text-align: left; }

.a4w-login-modal .form-group { margin-bottom: 1rem; }

.a4w-login-modal .form-group label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
    text-align: left;
}

.a4w-login-modal .form-control { width: 100%; }

.a4w-login-modal .a4w-login-forgot {
    font-size: 13px;
    margin-bottom: .5rem;
}

.a4w-login-modal .a4w-login-feedback:empty { display: none; }

/* Le pied de modale empile le bouton et le rappel « pas encore de compte ? » */
.a4w-login-modal .a4w-login-footer {
    display: block;
    text-align: center;
}

.a4w-login-modal .a4w-login-submit { width: 100%; }

.a4w-login-modal .a4w-login-register {
    margin: .75rem 0 0;
    font-size: 14px;
}

.a4w-login-modal .a4w-login-register-link {
    font-weight: 600;
    text-decoration: underline;
}

.a4w-alerts-myalerts table { width: 100%; }
.a4w-alerts-myalerts .a4w-status-active { color: var(--success-color, #28a745); }
.a4w-alerts-myalerts .a4w-status-inactive { color: var(--medium-gray, #aaa); }

/* === v2.6.0 — étape « code » de la popup de connexion (délégation a4w_authflow) === */

.a4w-login-modal .a4w-login-code-submit { width: 100%; }

.a4w-login-modal .a4w-login-code-feedback:empty { display: none; }

.a4w-login-modal .a4w-login-code-intro {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.a4w-login-modal #a4wLoginCode {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
}

/* Case « appareil de confiance » : mise en page portée par le module, pas par
   Bootstrap — les thèmes PrestaShop vont de Bootstrap 4 à 5 et `form-check`
   n'y positionne pas la case de la même façon. */
.a4w-login-modal .a4w-login-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.a4w-login-modal .a4w-login-trust input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0.2rem 0 0 0;
}

.a4w-login-modal .a4w-login-trust label {
  margin: 0;
  font-weight: normal;
  line-height: 1.4;
  cursor: pointer;
}

.a4w-login-modal .a4w-login-code-alt {
  text-align: center;
  margin-top: 0.5rem;
}

.a4w-login-modal .a4w-login-code-resend {
  color: var(--accent-ink-color, #232323);
}


/* ───────── « Me prévenir » : fiche produit, déclinaison en rupture (CAT-01) ───────── */

/* Le bloc remplace le sélecteur de quantité et le bouton d'achat : il prend toute la largeur du bloc d'achat. */
.a4w-notify {
    width: 100%;
    margin: 0 0 16px;
    text-align: left;
}

.a4w-notify__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: var(--border-radius, 3px);
    background-color: var(--light-bg, #FAF7F4);
    color: var(--text-color, #1D191B);
    font-size: .9375rem;
    line-height: 1.5;
}

.a4w-notify__icon {
    flex: 0 0 auto;
    margin-top: 2px;
}

.a4w-notify__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}

.a4w-notify__email {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid var(--input-border-color, #8E8C8D);
    border-radius: var(--border-radius, 3px);
    background-color: var(--background-color, #FFFFFF);
    color: var(--text-color, #1D191B);
    font-size: 1rem;
}

.a4w-notify__email:focus-visible {
    outline: 2px solid var(--link-decoration-color, #B68A56);
    outline-offset: 2px;
}

.a4w-notify__submit {
    flex: 0 0 auto;
    min-height: 56px;
}

.a4w-notify__submit[aria-disabled="true"] {
    opacity: .6;
    cursor: progress;
}

.a4w-notify__status {
    margin: 8px 0 0;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--text-color, #1D191B);
}

.a4w-notify__status:empty {
    display: none;
}

.a4w-notify__status.is-error {
    color: var(--alert-danger-color, #9B2C2C);
}

.a4w-notify__status.is-success {
    color: var(--alert-success-color, #2F6B4F);
}

/* Libellé et piège à robots : présents pour les lecteurs d'écran / les robots, invisibles à l'écran. */
.a4w-notify__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.a4w-notify__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .a4w-notify__submit {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .a4w-notify * {
        transition: none;
    }
}
