/* Checkout Confirmation Modal */
.confirm-checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.confirm-checkout-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 95vh;
  overflow: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}
.confirm-checkout-content::-webkit-scrollbar {
  width: 6px;
}

.confirm-checkout-content::-webkit-scrollbar-track {
  background: transparent;
}

.confirm-checkout-content::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}

.confirm-checkout-content::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

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

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

.modal-header {
  padding: 25px 30px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.close-confirm-modal {
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-confirm-modal:hover {
  background: #f3f4f6;
  color: #1e3a8a;
}

.modal-body {
  padding: 30px;
}

.confirmation-section {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.confirmation-section:last-of-type {
  margin-bottom: 0;
}

.section-icon {
  flex-shrink: 0;
}

.section-icon i {
  font-size: 32px;
  color: #1e3a8a;
  background: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.section-content {
  flex: 1;
}

.section-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 8px 0;
}

.section-content p {
  font-size: 15px;
  color: #666;
  margin: 0 0 5px 0;
  line-height: 1.5;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.total-amount {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #22c55e !important;
  margin-top: 10px !important;
}

.confirmation-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  margin-top: 20px;
}

.confirmation-note i {
  font-size: 20px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.confirmation-note p {
  font-size: 14px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #f3f4f6;
  display: flex;
  gap: 12px;
}

.modal-footer button {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cancel-checkout {
  background: #f3f4f6;
  color: #374151;
}

.btn-cancel-checkout:hover {
  background: #e5e7eb;
}

.btn-confirm-checkout {
  background: #22c55e;
  color: white;
}

.btn-confirm-checkout:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-confirm-checkout i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 25px;
  }

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

  .confirm-checkout-content {
    max-width: 100%;
    border-radius: 12px;
  }

  .modal-header {
    padding: 20px;
  }

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

  .modal-body {
    padding: 20px;
  }

  .confirmation-section {
    padding: 15px;
    gap: 12px;
  }

  .section-icon i {
    font-size: 28px;
    width: 45px;
    height: 45px;
  }

  .section-content h4 {
    font-size: 15px;
  }

  .section-content p {
    font-size: 14px;
  }

  .total-amount {
    font-size: 16px !important;
  }

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

  .modal-footer button {
    padding: 12px 20px;
    font-size: 15px;
  }
}
