/**
 * Fiche produit en rupture de stock (commande hors stock refusée).
 * Templates :
 *  - themes/PowerLab/templates/catalog/product.tpl (badge sous le titre)
 *  - themes/PowerLab/templates/catalog/price_bottom.tpl (barre de prix, classe .pl-oos)
 *  - themes/PowerLab/templates/catalog/_partials/product-out-of-stock-actions.tpl (boutons)
 */

/* Badge sous le titre, même rendu que le badge « Rupture de stock » du catalogue */
.pl-oos-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 10px;
  background-color: #e7e7e7;
  color: #222222;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

/* Boutons « Découvrir les alternatives » / « S'inscrire à la newsletter » */
.pl-oos-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.pl-oos-actions .pl-oos-actions__btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
}

.pl-oos-actions .pl-oos-actions__btn--alternatives {
  border-color: #80A523;
  background-color: #80A523;
  color: #ffffff;
}

.pl-oos-actions .pl-oos-actions__btn--alternatives:hover,
.pl-oos-actions .pl-oos-actions__btn--alternatives:focus {
  border-color: #6b8a1d;
  background-color: #6b8a1d;
  color: #ffffff;
}

.pl-oos-actions .pl-oos-actions__btn--newsletter {
  border-color: #00425F;
  background-color: #ffffff;
  color: #00425F;
}

.pl-oos-actions .pl-oos-actions__btn--newsletter:hover,
.pl-oos-actions .pl-oos-actions__btn--newsletter:focus {
  background-color: #00425F;
  color: #ffffff;
}

/* Barre de prix desktop */
.price-bottom-sticky.pl-oos #add-to-cart-or-refresh > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 0.75em;
}

.price-bottom-sticky.pl-oos .pl-oos-label {
  margin: 0;
  color: #222222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .price-bottom-sticky.pl-oos .pl-oos-label {
    display: none;
  }

  .price-bottom-sticky.pl-oos .pl-oos-actions {
    padding-top: 8px;
  }
}

/* Barre de prix mobile (rendu serveur mobile, barre fixe) */
.price-bottom-mobile.pl-oos .pl-oos-actions {
  padding: 8px 10px 10px;
}

.price-bottom-mobile.pl-oos .pl-oos-actions .pl-oos-actions__btn {
  min-height: 44px;
  font-size: 13px;
}
