@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* Masquer immédiatement les messages WooCommerce pour éviter le flash visuel */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.elegant-toast-container {
  position: fixed;
  top: 200px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.elegant-toast {
  background: var(--e-global-color-secondary);
  color: #ffffff;
  padding: 15px 15px;
  padding-left: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  font-family: "brother-1816", Sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.elegant-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.elegant-toast.error {
  background: #dc2626;
}

.elegant-toast.info {
  background: #0a1b38;
}

.elegant-toast-text {
  flex: 1;
  font-weight: 400;
  font-family: "brother-1816", Sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Boutons internes : style texte souligné subtil */
.elegant-toast-text button,
.elegant-toast-text .button.wc-forward {
  all: unset;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
margin-left: 15px;
  text-decoration: none !important;
  text-transform: uppercase;
  padding: .7em 1em;
  border: 1px solid white;
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% + 1px);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.3s ease;
}

.restore-item {
    color: #ffffff !important;
}
.restore-item:hover {
    color: #ffffff;
    background-color: transparent;
    text-decoration: underline !important;
}

.elegant-toast-text button:hover,
.elegant-toast-text .button.wc-forward:hover {
  background-size: 100% 2px;
  color: white;
  background-color: transparent;
  text-decoration: underline !important;
}

/* Croix sans border ni hover */
.elegant-toast-close {
  background: none;
  position: absolute;
  top: 2px;
  left: 2px;
  border: none;
  border-color: transparent;
  padding: 5px 5px;
  margin: 0;
  color: #ffffff;
  font-size: 21px !important;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 1;
  font-weight: 300;
  transition: none;
  outline: none;
}

.elegant-toast-close:hover,
.elegant-toast-close:focus,
.elegant-toast-close:active {
  opacity: 1;
  transform: none;
  background: none;
  border-color: transparent;
  outline: none;
}

@media (max-width: 640px) {
  .elegant-toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .elegant-toast {
    max-width: none;
    width: 100%;
  }
}
