/**
 * Zmarta Frontend Styles - Simplified
 */

/* Felmarkering för obligatoriska fält */
.zmarta-input-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.zmarta-field-error {
  color: #dc3545;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

/* Additional styles for summary sections */
.zmarta-summary-section {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.zmarta-summary-section h4 {
  margin: 0 0 10px 0;
  color: #000075;
  font-size: 16px;
}

.zmarta-summary-section p {
  margin: 5px 0;
  color: #333;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .zmarta-wrapper {
    padding: 10px;
  }

  .zmarta-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .zmarta-header-actions {
    width: 100%;
    justify-content: center;
  }

  .zmarta-card-body {
    padding: 20px;
  }

  .zmarta-flags {
    flex-direction: column;
  }

  .zmarta-flag {
    flex-direction: row;
    justify-content: center;
  }
}

/* Status Tracker Styles */
.zmarta-status-tracker {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
}

.email-sent-confirmation {
  background: #d4edda;
  color: #155724;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  border: 1px solid #c3e6cb;
}

.zmarta-status-tracker.status-pending {
  border-left: 4px solid #ffc107;
}

.zmarta-status-tracker.status-opened {
  border-left: 4px solid #17a2b8;
}

.zmarta-status-tracker.status-checkout {
  border-left: 4px solid #6f42c1;
}

.zmarta-status-tracker.status-completed {
  border-left: 4px solid #28a745;
  background: #e8f5e9;
}

.zmarta-status-tracker.status-expired {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-icon {
  font-size: 24px;
}

.status-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.status-progress {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
}

.status-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #e0e0e0;
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #999;
  border: 2px solid #e0e0e0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: #000075;
  color: #fff;
  border-color: #000075;
}

.status-extra {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.status-time,
.status-order {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

.status-order {
  font-weight: 600;
  color: #28a745;
}

.status-footer {
  margin-top: 20px;
  text-align: center;
}

.zmarta-btn-secondary {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.zmarta-btn-secondary:hover {
  background: #5a6268;
}

/* Animation for status updates */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.status-pending .status-icon {
  animation: pulse 2s infinite;
}

.status-opened .status-icon {
  animation: pulse 1.5s infinite;
}
