/**
 * Toast Notification Styles
 * WooCommerce to Shopify Sync Plugin
 */

.w2ssyn-toast-container {
  position: fixed;
  top: 32px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: var(--w2ssyn-spacing-sm);
  pointer-events: none;
}

/* Adjust for WordPress admin bar */
.admin-bar .w2ssyn-toast-container {
  top: 46px;
}

@media screen and (max-width: 782px) {
  .admin-bar .w2ssyn-toast-container {
    top: 46px;
  }
}

.w2ssyn-toast {
  display: flex;
  align-items: center;
  gap: var(--w2ssyn-spacing-md);
  min-width: 300px;
  max-width: 500px;
  padding: var(--w2ssyn-spacing-md) var(--w2ssyn-spacing-lg);
  background: var(--w2ssyn-bg-primary);
  border: 1px solid var(--w2ssyn-border-color);
  border-radius: var(--w2ssyn-radius-md);
  box-shadow: var(--w2ssyn-shadow-lg);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

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

.w2ssyn-toast--hide {
  opacity: 0;
  transform: translateX(400px);
}

.w2ssyn-toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.w2ssyn-toast__message {
  flex: 1;
  font-size: var(--w2ssyn-font-size-base);
  color: var(--w2ssyn-text-primary);
  line-height: var(--w2ssyn-line-height-normal);
}

.w2ssyn-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: var(--w2ssyn-text-secondary);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--w2ssyn-transition-fast);
}

.w2ssyn-toast__close:hover {
  color: var(--w2ssyn-text-primary);
}

/* Toast Types */
.w2ssyn-toast--success {
  border-left: 4px solid var(--w2ssyn-success);
}

.w2ssyn-toast--success .w2ssyn-toast__icon {
  color: var(--w2ssyn-success);
}

.w2ssyn-toast--error {
  border-left: 4px solid var(--w2ssyn-danger);
}

.w2ssyn-toast--error .w2ssyn-toast__icon {
  color: var(--w2ssyn-danger);
}

.w2ssyn-toast--warning {
  border-left: 4px solid var(--w2ssyn-warning);
}

.w2ssyn-toast--warning .w2ssyn-toast__icon {
  color: var(--w2ssyn-warning);
}

.w2ssyn-toast--info {
  border-left: 4px solid var(--w2ssyn-info);
}

.w2ssyn-toast--info .w2ssyn-toast__icon {
  color: var(--w2ssyn-info);
}

/* Responsive */
@media (max-width: 782px) {
  .w2ssyn-toast-container {
    top: 46px;
    right: 10px;
    left: 10px;
  }
  
  .w2ssyn-toast {
    min-width: auto;
    max-width: 100%;
  }
}

