/* ========================================================
   GEN Z CREATION - LUXURY TOAST NOTIFICATION SYSTEM
   Solid Emerald Green (#0B3D2E) & Metallic Gold (#C5A059)
   ======================================================== */

#genz-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.genz-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background-color: #0B3D2E !important; /* Solid Emerald Green - No gradients */
  background-image: none !important;
  border: 1.5px solid #C5A059;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(11, 61, 46, 0.45), 0 0 18px rgba(197, 160, 89, 0.2);
  color: #FAF7F2;
  padding: 16px 18px 14px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  box-sizing: border-box;
}

.genz-toast.genz-toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.genz-toast.genz-toast-hiding {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  pointer-events: none;
}

/* ========================================================
   1. GENERAL NOTIFICATIONS (OTP, Account, Info, Alerts)
   Clean single-row or compact notification without buttons
   ======================================================== */
.genz-toast.genz-toast-general {
  background-color: #0B3D2E !important;
  background-image: none !important;
  padding: 14px 16px 13px 16px;
}

.genz-toast-general-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.genz-toast-general .genz-toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.genz-toast-general .genz-toast-body {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.45;
  color: #FAF7F2;
  margin: 0;
  word-break: break-word;
  font-weight: 500;
}

.genz-toast-general .genz-toast-close {
  flex-shrink: 0;
  margin-left: 6px;
  align-self: center;
}

/* ========================================================
   2. ADD TO CART / WISHLIST / COMPARE NOTIFICATIONS
   Includes header badge, product text and action buttons
   ======================================================== */
.genz-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.genz-toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.genz-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.genz-toast-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #D4AF37;
  line-height: 1;
}

.genz-toast-close {
  background: transparent;
  border: none;
  color: #FAF7F2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.genz-toast-close:hover {
  opacity: 1;
  color: #D4AF37;
  transform: scale(1.15);
}

/* Body Content */
.genz-toast-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: #FAF7F2;
  margin-bottom: 12px;
  word-break: break-word;
}

.genz-toast-body a {
  color: #F3E5AB !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: color 0.2s ease;
}

.genz-toast-body a:hover {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

/* Footer / Action Buttons (Add to Cart only) */
.genz-toast-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.genz-toast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.genz-toast-btn-gold {
  background: #C5A059;
  color: #0B3D2E !important;
  border: 1px solid #D4AF37;
  box-shadow: 0 3px 10px rgba(197, 160, 89, 0.3);
}

.genz-toast-btn-gold:hover {
  background: #D4AF37;
  color: #06261D !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(197, 160, 89, 0.45);
}

.genz-toast-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #FAF7F2 !important;
  border: 1px solid rgba(197, 160, 89, 0.6);
}

.genz-toast-btn-outline:hover {
  background: rgba(197, 160, 89, 0.18);
  border-color: #D4AF37;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Progress Bar */
.genz-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.genz-toast-progress-bar {
  height: 100%;
  width: 100%;
  background: #C5A059;
  transform-origin: left;
  transition: width linear;
}

/* Hide legacy alerts that may push the header */
header + .alert.alert-success,
#content > .alert.alert-success,
.route-product-category > .alert.alert-success {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  #genz-toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }

  .genz-toast {
    padding: 14px 16px 12px 16px;
  }

  .genz-toast-footer {
    gap: 8px;
  }

  .genz-toast-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 11.5px;
  }
}
