:root {
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition-speed: 0.15s;
}

body {
  background-color: var(--light-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card {
  border: none;
  transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.product-upsell {
  border: 2px dashed #ce2828;
  padding: 9px;
  background-color: #fff6db;
  cursor: pointer;
  border-radius: 10px;
}

.product-upsell:hover {
  background-color: #ffe9b3;
  border-color: #2fce28;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.363);
  transform: translateY(-2px) scale(1.02);
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

#productName {
  width: 60%;
  font-weight: bold;
}

#productDescription {
  font-size: 12px;
}

#productAmount {
  text-align: right;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.btn {
  transition: all var(--transition-speed) ease-in-out;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(108, 117, 125, 0.3);
}

.nav-tabs .nav-link {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  transition: background-color var(--transition-speed) ease-in-out;
}

.nav-tabs .nav-link:not(.active):hover {
  background-color: rgba(13, 110, 253, 0.05);
  border-color: #dee2e6 #dee2e6 #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.qr-code-container {
  width: 200px;
  height: 200px;
  background-color: white;
  padding: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.payment-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

#confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Animation for feedback messages */
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.feedback-animation {
  animation: fadeInOut 2s ease-in-out;
}

/* Highlight effect for changes */
@keyframes highlight {
  0% {
    background-color: rgba(255, 193, 7, 0.3);
  }

  100% {
    background-color: transparent;
  }
}

.highlight {
  animation: highlight 1.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
  }

  .card {
    margin-bottom: 1rem;
  }

  .qr-code-container {
    margin-bottom: 1.5rem;
  }
}