/* ==========================================
   ORDERS MODAL - CUSTOMER ORDER HISTORY
   ========================================== */

/* Modal Container */
.orders-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

/* Dark Overlay */
.orders-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Modal Content Panel */
.orders-modal-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: #ffffff;
  overflow-y: auto;
  padding: 20px;
  animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Close Button */
.btn-close-orders {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: color 0.2s;
}

.btn-close-orders:hover {
  color: #333;
}

/* Header */
.orders-header {
  padding: 10px 0 20px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.orders-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

/* Loyalty Card */
.loyalty-card {
  background: linear-gradient(135deg, #7d9d43 0%, #5a7331 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(125, 157, 67, 0.3);
}

.loyalty-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

/* Progress Bar */
.loyalty-progress {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Coupon Badges */
.coupon-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 5px 5px 5px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.coupon-code {
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* Tabs */
.orders-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #7d9d43;
  border-bottom-color: #7d9d43;
}

.tab-btn:hover:not(.active) {
  color: #333;
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Order Card */
.order-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Order Header */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-number {
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-en_camino {
  background: #cfe2ff;
  color: #084298;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-cancelled {
  background: #f8d7da;
  color: #842029;
}

/* Order Details */
.order-items {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.order-total {
  font-size: 18px;
  font-weight: 700;
  color: #7d9d43;
  margin-bottom: 5px;
}

.order-date {
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Order Actions */
.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-order-action {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-cancel {
  background: #dc3545;
  color: white;
}

.btn-cancel:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-reschedule {
  background: #0d6efd;
  color: white;
}

.btn-reschedule:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-reorder {
  background: #7d9d43;
  color: white;
}

.btn-reorder:hover {
  background: #5a7331;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(125, 157, 67, 0.3);
}

.btn-view-details {
  background: #6c757d;
  color: white;
}

.btn-view-details:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  margin-bottom: 20px;
}

.empty-state h5 {
  color: #333;
  margin-bottom: 10px;
}

.empty-state .btn {
  margin-top: 20px;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
}

.error-state i {
  font-size: 48px;
  margin-bottom: 15px;
}

.error-state button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #7d9d43;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.error-state button:hover {
  background: #5a7331;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .orders-modal-content {
    max-width: 100%;
  }

  .order-actions {
    flex-direction: column;
  }

  .btn-order-action {
    min-width: 100%;
  }

  .orders-header h2 {
    font-size: 20px;
  }

  .loyalty-card {
    padding: 15px;
  }
}

/* Scrollbar Styling */
.orders-modal-content::-webkit-scrollbar {
  width: 8px;
}

.orders-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.orders-modal-content::-webkit-scrollbar-thumb {
  background: #7d9d43;
  border-radius: 4px;
}

.orders-modal-content::-webkit-scrollbar-thumb:hover {
  background: #5a7331;
}

/* ==========================================
   CANCEL ORDER MODAL
   ========================================== */

/* Cancel Modal Container */
.cancel-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Cancel Modal Overlay */
.cancel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Cancel Modal Content */
.cancel-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button for Cancel Modal */
.btn-close-cancel {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-close-cancel:hover {
  color: #333;
  background: #f0f0f0;
}

/* Cancel Modal Header */
.cancel-modal-header {
  text-align: center;
  padding: 35px 30px 25px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.cancel-modal-header i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cancel-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cancel-modal-header p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.95;
}

/* Cancel Modal Body */
.cancel-modal-body {
  padding: 30px;
}

.cancel-modal-body label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.cancel-modal-body textarea {
  transition: all 0.2s;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
}

.cancel-modal-body textarea:focus {
  outline: none;
  border-color: #dc3545;
  background: white;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Cancel Modal Footer */
.cancel-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 30px 30px;
  background: #f8f9fa;
}

.btn-cancel-action,
.btn-confirm-cancel {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cancel-action {
  background: white;
  color: #555;
  border: 2px solid #e0e0e0;
}

.btn-cancel-action:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm-cancel {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-confirm-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Mobile Responsive for Cancel Modal */
@media (max-width: 480px) {
  .cancel-modal {
    padding: 15px;
  }

  .cancel-modal-content {
    max-width: 100%;
  }

  .cancel-modal-header {
    padding: 25px 20px 15px;
  }

  .cancel-modal-header h3 {
    font-size: 20px;
  }

  .cancel-modal-header i {
    font-size: 40px !important;
  }

  .cancel-modal-body {
    padding: 20px;
  }

  .cancel-modal-footer {
    flex-direction: column;
    padding: 15px 20px;
  }

  .btn-cancel-action,
  .btn-confirm-cancel {
    width: 100%;
  }
}

/* ==========================================
   RESCHEDULE ORDER MODAL
   ========================================== */

/* Reschedule Modal Container */
.reschedule-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Reschedule Modal Overlay */
.reschedule-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

/* Reschedule Modal Content */
.reschedule-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Close Button for Reschedule Modal */
.btn-close-reschedule {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-close-reschedule:hover {
  color: #000;
  background: #fff;
  transform: rotate(90deg);
}

/* Reschedule Modal Header */
.reschedule-modal-header {
  text-align: center;
  padding: 35px 30px 25px;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: white;
}

.reschedule-modal-header i {
  font-size: 50px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.reschedule-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reschedule-modal-header p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.95;
}

/* Reschedule Modal Body */
.reschedule-modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0d6efd;
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}

/* Reschedule Modal Footer */
.reschedule-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 30px 30px;
  background: #f8f9fa;
}

.btn-reschedule-action,
.btn-confirm-reschedule {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-reschedule-action {
  background: white;
  color: #555;
  border: 2px solid #e0e0e0;
}

.btn-reschedule-action:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm-reschedule {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: white;
}

.btn-confirm-reschedule:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Time Slots Grid for Reschedule */
#timeSlotsGridReschedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  margin-top: 10px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Collapsed state - only shows selected slot */
#timeSlotsGridReschedule.collapsed {
  max-height: none;
  overflow: visible;
  display: block;
}

/* Hide unselected cards when collapsed */
#timeSlotsGridReschedule.collapsed .reschedule-time-slot-card:not(.selected) {
  display: none;
}

/* Selected card in collapsed state */
#timeSlotsGridReschedule.collapsed .reschedule-time-slot-card.selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
}



/* Time Slot Cards */
.reschedule-time-slot-card {
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  user-select: none;
}

.reschedule-time-slot-card:hover {
  border-color: #0d6efd;
  background: #e7f1ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.reschedule-time-slot-card.selected {
  border-color: #0d6efd;
  background: #0d6efd;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.reschedule-time-slot-card.selected .reschedule-slot-time {
  color: white;
}

.reschedule-time-slot-card.selected .reschedule-slot-price {
  color: rgba(255, 255, 255, 0.9);
}

.reschedule-slot-time {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.reschedule-slot-price {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* Scrollbar for time slots grid */
#timeSlotsGridReschedule::-webkit-scrollbar {
  width: 6px;
}

#timeSlotsGridReschedule::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#timeSlotsGridReschedule::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}

#timeSlotsGridReschedule::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}

/* Mobile Responsive for Reschedule Modal */
@media (max-width: 480px) {
  .reschedule-modal {
    padding: 10px;
  }

  .reschedule-modal-content {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .reschedule-modal-header {
    padding: 20px 15px 15px;
  }

  .reschedule-modal-header h3 {
    font-size: 20px;
  }

  .reschedule-modal-header i {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .reschedule-modal-body {
    padding: 15px;
  }

  .reschedule-modal-footer {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .btn-reschedule-action,
  .btn-confirm-reschedule {
    width: 100%;
    padding: 14px 20px;
  }

  /* 2 columns on mobile for time slots */
  #timeSlotsGridReschedule {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
    overflow-y: visible;
    gap: 8px;
  }

  .reschedule-time-slot-card {
    padding: 12px 8px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-group input {
    padding: 12px;
    font-size: 14px;
  }

  .form-group small {
    font-size: 12px;
  }
}

/* ==========================================
   COUPON ACTIVATION MODAL
   ========================================== */

/* Coupon Activation Modal Container */
.coupon-activation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Coupon Activation Modal Overlay */
.coupon-activation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

/* Coupon Activation Modal Content */
.coupon-activation-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Close Button for Coupon Activation Modal */
.btn-close-coupon-activation {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-close-coupon-activation:hover {
  color: #000;
  background: #fff;
  transform: rotate(90deg);
}

/* Coupon Activation Modal Header */
.coupon-activation-modal-header {
  text-align: center;
  padding: 40px 30px 30px;
  background: linear-gradient(135deg, #7d9d43 0%, #5a7331 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.coupon-activation-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.coupon-activation-modal-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.coupon-activation-modal-header i {
  font-size: 55px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.coupon-activation-modal-header h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.coupon-activation-modal-header .discount-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 25px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

/* Coupon Activation Modal Body */
.coupon-activation-modal-body {
  padding: 35px 30px;
  text-align: center;
}

.coupon-code-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #7d9d43;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.coupon-code-label {
  font-size: 13px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.coupon-code-value {
  font-size: 28px;
  font-weight: 700;
  color: #7d9d43;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.coupon-activation-message {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.coupon-activation-message strong {
  color: #333;
}

.coupon-expiry-info {
  font-size: 13px;
  color: #666;
  padding: 12px;
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.coupon-expiry-info i {
  color: #ffc107;
}

/* Coupon Activation Modal Footer */
.coupon-activation-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 30px 30px;
  background: #f8f9fa;
}

.btn-cancel-coupon-activation,
.btn-confirm-coupon-activation {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cancel-coupon-activation {
  background: white;
  color: #555;
  border: 2px solid #e0e0e0;
}

.btn-cancel-coupon-activation:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm-coupon-activation {
  background: linear-gradient(135deg, #7d9d43 0%, #5a7331 100%);
  color: white;
}

.btn-confirm-coupon-activation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 157, 67, 0.4);
}

/* Mobile Responsive for Coupon Activation Modal */
@media (max-width: 480px) {
  .coupon-activation-modal {
    padding: 15px;
  }

  .coupon-activation-modal-content {
    max-width: 100%;
  }

  .coupon-activation-modal-header {
    padding: 30px 20px 20px;
  }

  .coupon-activation-modal-header h3 {
    font-size: 22px;
  }

  .coupon-activation-modal-header i {
    font-size: 45px;
  }

  .coupon-activation-modal-header .discount-badge {
    font-size: 16px;
    padding: 6px 16px;
  }

  .coupon-activation-modal-body {
    padding: 25px 20px;
  }

  .coupon-code-value {
    font-size: 24px;
  }

  .coupon-activation-modal-footer {
    flex-direction: column;
    padding: 15px 20px 20px;
    gap: 10px;
  }

  .btn-cancel-coupon-activation,
  .btn-confirm-coupon-activation {
    width: 100%;
  }
}

/* ==========================================
   REORDER CONFIRMATION MODAL
   ========================================== */

/* Reorder Modal Container */
.reorder-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Reorder Modal Overlay */
.reorder-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

/* Reorder Modal Content */
.reorder-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Close Button for Reorder Modal */
.btn-close-reorder {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-close-reorder:hover {
  color: #000;
  background: #fff;
  transform: rotate(90deg);
}

/* Reorder Modal Header */
.reorder-modal-header {
  text-align: center;
  padding: 35px 30px 25px;
  background: linear-gradient(135deg, #81c408 0%, #6a9f07 100%);
  color: white;
  flex-shrink: 0;
}

.reorder-modal-header i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.reorder-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reorder-modal-header p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.95;
}

/* Reorder Modal Body */
.reorder-modal-body {
  padding: 25px 30px;
  overflow-y: auto;
  flex: 1;
}

/* Order Items Preview */
.reorder-items-preview {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.reorder-items-list {
  margin-bottom: 12px;
  max-height: 180px;
  overflow-y: auto;
}

.reorder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.reorder-item:last-child {
  border-bottom: none;
}

.reorder-item-name {
  flex: 1;
  font-weight: 500;
  color: #333;
}

.reorder-item-quantity {
  color: #666;
  margin: 0 10px;
  font-size: 12px;
}

.reorder-item-price {
  font-weight: 600;
  color: #81c408;
  min-width: 70px;
  text-align: right;
}

.reorder-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 2px solid #81c408;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Selectable Options */
.reorder-options-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hide radio input */
.reorder-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Option Card as Label */
.reorder-option-card {
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

.reorder-option-content {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  transition: all 0.2s;
}

/* Hover state */
.reorder-option-card:hover .reorder-option-content {
  border-color: #81c408;
  background: #f8fcf0;
}

/* Selected state */
.reorder-radio:checked+.reorder-option-content {
  border-color: #81c408;
  background: linear-gradient(135deg, #f0f8e6 0%, #e8f4d9 100%);
  box-shadow: 0 2px 8px rgba(129, 196, 8, 0.2);
}

.reorder-option-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 10px;
  color: #81c408;
  font-size: 18px;
  transition: all 0.2s;
}

/* Selected icon */
.reorder-radio:checked+.reorder-option-content .reorder-option-icon {
  background: #81c408;
  color: white;
  box-shadow: 0 2px 8px rgba(129, 196, 8, 0.3);
}

.reorder-option-text {
  flex: 1;
}

.reorder-option-text strong {
  display: block;
  color: #333;
  font-size: 14px;
  margin-bottom: 2px;
}

.reorder-option-text p {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.3;
}

/* Reorder Modal Footer */
.reorder-modal-footer {
  display: flex;
  padding: 18px 24px;
  background: #f8f9fa;
  flex-shrink: 0;
  border-top: 1px solid #e0e0e0;
}

.btn-continue-reorder {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #81c408 0%, #6a9f07 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-continue-reorder:disabled {
  background: #d0d0d0;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continue-reorder:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 196, 8, 0.4);
}

/* Mobile Responsive for Reorder Modal */
@media (max-width: 480px) {
  .reorder-modal {
    padding: 10px;
  }

  .reorder-modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
  }

  .reorder-modal-header {
    padding: 20px 18px 15px;
  }

  .reorder-modal-header h3 {
    font-size: 18px;
  }

  .reorder-modal-header i {
    font-size: 36px !important;
  }

  .reorder-modal-header p {
    font-size: 12px;
  }

  .reorder-modal-body {
    padding: 16px 18px;
  }

  .reorder-items-preview {
    padding: 14px;
    margin-bottom: 14px;
  }

  .reorder-items-list {
    max-height: 140px;
  }

  .reorder-item {
    font-size: 12px;
    padding: 6px 0;
  }

  .reorder-item-price {
    font-size: 12px;
  }

  .reorder-total {
    font-size: 14px;
  }

  .reorder-options-selector {
    gap: 8px;
  }

  .reorder-option-content {
    padding: 12px;
    gap: 10px;
  }

  .reorder-option-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .reorder-option-text strong {
    font-size: 13px;
  }

  .reorder-option-text p {
    font-size: 11px;
  }

  .reorder-modal-footer {
    padding: 14px 18px;
  }

  .btn-continue-reorder {
    padding: 12px 20px;
    font-size: 15px;
  }
}