.checkout-modal .ant-modal-content {
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.checkout-modal .ant-modal-body {
  padding: 0;
}

.checkout-modal .ant-modal-close {
  top: 16px;
  right: 16px;
  color: #6b7280;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.checkout-modal .ant-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.checkout-container {
  padding: 24px;
  max-height: 95vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #fafafa 0%, var(--color-text-white) 100%);
  scrollbar-width: thin; 
  scrollbar-color: var(--color-primary) #e5e7eb; 
}

.checkout-container::-webkit-scrollbar {
  width: 4px;
}

.checkout-container::-webkit-scrollbar-track {
  background: var(--color-primary);    
  border-radius: 999px;
}

.checkout-container::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
}

.checkout-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.checkout-header {
  margin-bottom: 18px;
  padding: 20px;
  background-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(92, 190, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.checkout-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
}

.checkout-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-white);
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  text-align: center;
}

.checkout-header .highlight {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.customer-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.form-group {
  width: 100%;
  border: none;
}
.form-group input {
  width: 100%;
  border: none;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: var(--color-text-white);
  padding: 0 16px;
  height: 52px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-icon:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

.input-icon .icon {
  font-size: 20px;
  margin-right: 14px;
  color: #8b5cf6;
  transition: color 0.3s ease;
}

.input-icon:focus-within .icon {
  color: #7c3aed;
}

.input-icon input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1f2937;
  background: transparent;
  font-weight: 500;
}

.input-icon input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.place-order-btn {
  width: 100%;
  height: 56px;
  color: var(--color-text-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(81, 106, 122, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.loader {
  border: 4px solid #ddd;
  border-top: 4px solid #6d28d9;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.place-order-btn.is_disable {
  background-color: transparent !important;
  color: #000;
}

.place-order-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.place-order-btn:hover::before {
  left: 100%;
}

.place-order-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.place-order-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-modal .ant-modal {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }

  .checkout-container {
    padding: 16px;
    max-height: 90vh;
  }

  .checkout-header {
    padding: 16px;
    margin-bottom: 20px;
  }

  .checkout-header h2 {
    font-size: 15px;
    line-height: 1.5;
  }

  .customer-form {
    gap: 14px;
    margin-bottom: 20px;
  }

  .input-icon {
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .input-icon .icon {
    font-size: 18px;
    margin-right: 12px;
  }

  .input-icon input {
    font-size: 14px;
  }

  .section-title {
    font-size: 15px;
  }

  .place-order-btn {
    height: 50px;
    font-size: 15px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .checkout-modal .ant-modal {
    margin: 5px;
    max-width: calc(100vw - 10px);
  }

  .checkout-container {
    padding: 12px;
  }

  .checkout-header {
    padding: 12px;
    border-radius: 10px;
  }

  .checkout-header h2 {
    font-size: 14px;
  }

  .input-icon {
    height: 44px;
    padding: 0 12px;
  }
}
