/* ==========================================================================
   FEATURE: CHECKOUT MODAL & ORDER CONFIRMATION
   ========================================================================== */

/* 1. CHECKOUT MODAL OVERLAY & CONTAINER */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.checkout-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 10, 70, 0.3);
  overflow: hidden;
}

.checkout-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
}

.checkout-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy, #000A46);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.checkout-form-group {
  margin-bottom: 16px;
}

.checkout-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.checkout-form-input,
.checkout-form-select {
  width: 100%;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #1E293B;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.checkout-form-input:focus,
.checkout-form-select:focus {
  border-color: var(--primary-red, #FB3E38);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(251, 62, 56, 0.12);
}

/* 2. SUCCESS MODAL */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.success-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: modalScaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #237B30;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy, #000A46);
  margin-bottom: 8px;
}

.success-modal-desc {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-order-code {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-red, #FB3E38);
  background: #FFF5F5;
  border: 1.5px dashed var(--primary-red, #FB3E38);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .checkout-modal-card {
    max-height: 96vh;
    border-radius: 16px;
  }
  .checkout-modal-body {
    padding: 16px;
  }
}
