body.modal-open {
  overflow: hidden;
}

.modal-open .navbar {
  z-index: 0;
  pointer-events: none;
}

.modal-open .navbar .nav-surface,
.modal-open .navbar .navbar-container {
  pointer-events: none;
  filter: blur(2px);
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 25, 40, 0.55);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.checkout-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.checkout-modal {
  position: relative;
  width: 95%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.checkout-overlay.is-visible .checkout-modal {
  transform: translateY(0);
  opacity: 1;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.checkout-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

#close-checkout {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #444;
  cursor: pointer;
}

#checkout-container {
  padding: 1rem;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .checkout-modal {
    max-width: 100%;
    border-radius: 16px;
  }
}
