/* Cart Error Notifications Styles */

/* Corner Alert Styles */
.dash-corner-alert {
  max-width: 400px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: dashSlideIn 0.3s ease-out;
}

.dash-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash-alert-message {
  flex: 1;
  margin: 0;
}

.dash-alert-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.dash-alert-close:hover {
  opacity: 1;
}

/* Modal Styles */
.dash-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  animation: dashFadeIn 0.3s ease-out;
}

.dash-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: dashModalSlideIn 0.3s ease-out;
}

.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.dash-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #212529;
}

.dash-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.dash-modal-close:hover {
  color: #343a40;
}

.dash-modal-body {
  padding: 16px 24px;
}

.dash-modal-message {
  margin: 0;
  color: #721c24;
  font-size: 14px;
  line-height: 1.5;
}

.dash-modal-footer {
  padding: 16px 24px 20px;
  text-align: right;
  border-top: 1px solid #e9ecef;
}

.dash-modal-ok {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dash-modal-ok:hover {
  background-color: #0056b3;
}

/* Animations */
@keyframes dashSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dashSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes dashFadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@keyframes dashModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dash-corner-alert {
    max-width: calc(100vw - 40px);
    font-size: 13px;
  }
  
  .dash-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .dash-modal-header,
  .dash-modal-body,
  .dash-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}