
/* =========================================================
   Toast ajout au panier - mobile
   ========================================================= */

.toastcart-wrapper {
  position: fixed;
  z-index: 11;
  bottom: 25px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-15px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toastcart-wrapper--visible {
  opacity: 1;
  transform: translateY(0);
}

.toastcart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 18px 48px 18px 18px;
  background: #fff;
  background: #ddf6dd;
  border-radius: 8px;
  box-shadow:    0 0 12px rgba(0, 0, 0, 0.30);
  box-sizing: border-box;
  pointer-events: auto;
}


/* Check */

.toastcart .icon-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.toastcart .icon-check svg {
  display: block;
  width: 18px;
  height: 18px;
}


/* Texte */

.toastcart .texttoast {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.toastcart .titletoast {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #111;
}

.toastcart .actionstoast {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.toastcart .actionstoast:hover {
  color: #111;
  opacity: 0.6;
}


/* Fermeture */

.toastcart .icon-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.toastcart .icon-close svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: opacity 0.2s ease;
}

.toastcart .icon-close:hover svg {
  opacity: 0.5;
}


/* Mobile */

@media (max-width: 767px) {

  .toastcart {
    max-width: 100%;
    padding: 16px 44px 16px 16px;
    gap: 12px;
  }

  .toastcart .titletoast {
    font-size: 13px;
  }

  .toastcart .actionstoast {
    font-size: 12px;
  }
}