/**
 * Copyright since 2002 Advisa
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the EUPL, Version 1.2 or – as soon they will be approved by
 * the European Commission - subsequent versions of the EUPL (the "Licence");
 * You may not use this work except in compliance with the Licence.
 * You may obtain a copy of the Licence at:
 *
 * https://joinup.ec.europa.eu/software/page/eupl
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the Licence is distributed on an "AS IS" basis,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the Licence for the specific language governing permissions and
 * limitations under the Licence.
 *
 * @author Advisa <dev@advisa.fr>
 * @copyright Since 2002 Advisa
 * @license <https://joinup.ec.europa.eu/software/page/eupl> EUPL
 */

.da-stock-alert {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
}

.da-stock-alert__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mention RGPD : taille imposée ici, quel que soit le contenu saisi dans l'éditeur (le thème fixe la taille des <p>) */
.da-stock-alert__rgpd {
  margin: 0.75rem 0 0;
}

.da-stock-alert__rgpd,
.da-stock-alert__rgpd * {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

.da-stock-alert__rgpd p {
  margin: 0 0 0.5em;
}

.da-stock-alert__rgpd p:last-child {
  margin-bottom: 0;
}

.da-stock-alert__confirmation {
  margin: 0;
}

/* Pendant la rupture, le formulaire remplace le bloc quantité / « Ajouter au panier » */
.product__out-of-stock-hook:has(.js-da-stock-alert) + .js-product-actions .product__grid-actions {
  display: none;
}

/* Contenus affichés seulement pendant la rupture (ex. question de FAQ dans Creative Elements, classe CSS da-stock-alert-only) */
.da-stock-alert-only {
  display: none;
}

body:has(.js-da-stock-alert) .da-stock-alert-only {
  display: block;
}
