/* Toast styles with mobile/desktop responsive positioning */
.app-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* Mobile toast container positioning */
.app-toast-container.mobile {
  top: auto;
  bottom: 70px; /* Just above mobile footer */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
}

/* Desktop toast container positioning */
.app-toast-container.desktop {
  top: 80px;
  right: 20px;
  left: auto;
  bottom: auto;
  transform: none;
  width: auto;
}

.app-toast {
  min-width: 200px;
  max-width: 400px;
  background: #000; /* Black background */
  color: #fff; /* White text */
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  font-size: 14px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 48px; /* Better touch target for mobile */
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.app-toast .app-toast-body { 
  line-height: 1.3; 
  flex: 1;
  font-weight: 500;
}
.app-toast .app-toast-close {
  margin-left: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  opacity: 0.85;
  min-width: 28px; /* Better touch target */
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.app-toast .app-toast-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.app-toast.type-success { 
  background: #000;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.app-toast.type-error { 
  background: #000;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .app-toast {
    font-size: 15px; /* Larger text for mobile */
    padding: 16px 18px;
    min-height: 52px; /* Better touch target */
    min-width: 240px;
    max-width: 300px;
    border-radius: 10px;
  }
  
  .app-toast .app-toast-close {
    min-width: 32px;
    min-height: 32px;
    font-size: 20px;
  }
  
  /* Ensure mobile footer cart count is visible */
  .footer-device-mobile .count-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000000 !important;
    color: white !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    min-height: 20px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .footer-device-mobile .icon {
    position: relative !important;
  }
}
