* {
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 60px 40px;
  background-color: #f9fafb;
}

form {
  width: 34vw;
  min-width: 500px;
  border-radius: 16px;
  margin-top: 2vw;
  background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); /* subtle shadow */
    padding: 12px 32px 36px 32px;

}

.payment-column h2 {
  margin-bottom: 20px;
  color: #0A2540;
}

#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#payment-element {
  margin-bottom: 24px;
  margin-top: 16px;
}


/* Clean button and spinner implementation */
button {
  background: #0A2540;
  font-family: inherit;
  color: #ffffff;
  border-radius: 10px;
  border: 0;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 6px 14px rgba(10, 37, 64, 0.15);
  width: 100%;
  margin-top: 24px;
  position: relative;
  min-height: 56px;
}

button:hover:not(:disabled) {
  background: #163757;
}

button:disabled {
  background: #0A2540;
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: 0px 4px 10px rgba(10, 37, 64, 0.1);
}

/* Container for loading state */
.button-loading-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Simple, clean spinner */
.payment-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

/* Smooth transitions */
#button-text, #spinner {
  transition: opacity 0.2s ease;
}

.hidden {
  display: none !important;
}



@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  form {
    width: 80vw;
    min-width: initial;
  }
}

.container {
  display: flex;
  max-width: 1800px;
  margin: 0 auto;
  gap: 40px;
  align-items: flex-start;
   justify-content: center;
}


@media only screen and (max-width: 768px) {
  body {
    padding-top: 30px; /* Add only top padding for the fixed header height */
  
  }

  form {
    width: 100%;
    min-width: unset;
    padding: 4px 20px 18px 20px;
    border-radius:0px;
    margin-top: 0 !important; /* Remove top margin on mobile */
    margin-bottom: 70px; /* Add bottom margin for the fixed bottom bar */
  }

  .payment-column {
    width: 100vw !important;
  }


  .product-info p {
    font-size: 14px;
    line-height: 1.5;
  }

  button {
    font-size: 15px;
    padding: 16px 20px;
  }

  

  .payment-divider span {
    font-size: 13px;
  }



  .product-info > div,
  .product-info > table,
 

  .product-info .badge-container {
    flex-direction: row;
    align-items: flex-start;
  }
}


 
.product-info {
  width: 100%;
  max-width: 600px;
  padding: 12px 32px 8px 32px;
  margin-top: 2vw;
  background: white;
  font-family: -apple-system, Inter, sans-serif;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.product-info h2 {
  margin-bottom: 20px;
  color: #0A2540;
}

.payment-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  text-align: center;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}

.payment-divider span {
  padding: 0 16px;
  font-size: 14px;
  color: #666;
  font-weight: 400;
  background: white;
}

/* Mobile Summary Bar - Fixed positioning at bottom */
.mobile-summary-bar {
  display: none; /* Hidden by default, shown only on mobile */
  position: fixed;
  bottom: 0; /* Changed from top: 70px to bottom: 0 */
  left: 0;
  right: 0;
  background: white;
   padding: 12px 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08); /* Changed shadow direction to cast upward */
  z-index: 998;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-summary-bar:active {
  background: #f8f8f8;
}

.mobile-summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
}



.mobile-summary-price {
  font-weight: 600;
  font-size: 16px;
  color: #0A2540;
}

/* Mobile Slide-up Panel */
.mobile-detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-radius: 20px 20px 0 0;
}

.mobile-detail-panel.active {
  transform: translateY(0);
}





/* Reduce top padding of the first element */
.mobile-detail-content .product-info > div:first-child {
  padding-top: 0;
}


/* Dark overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive styles */
@media only screen and (max-width: 768px) {
  /* Hide desktop product info */
  .product-info {
    display: none;
  }
  
  /* Show mobile summary bar only on mobile */
  .mobile-summary-bar {
    display: block;
  }
  
  /* Adjust payment column spacing */
  .payment-column {
    margin-top: 0px; /* Add top margin for fixed header */
    padding-bottom: 0px; /* Add bottom padding for fixed bottom bar */
  }
  
  .product-info h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  /* Ensure proper spacing in mobile detail panel */
  .mobile-detail-content .product-info {
    display: block;
    margin-top: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* Desktop styles - keep product info visible */
@media only screen and (min-width: 769px) {
  .mobile-summary-bar,
  .mobile-detail-panel,
  .mobile-overlay {
    display: none !important;
  }
}

/* Product card: add radius only on ≥768px (md) */
@media (min-width: 768px) {
  .product-info { border-radius: 16px; } /* Tailwind rounded-2xl */
}

/* Product card heading */
.product-info > h2 {
  font-size: 25px;
  line-height: 1.25;         
  margin-top: 0;            
  font-weight: 500;
}


@media (min-width: 768px) {
  .product-info > h2 { margin-top: 0.75rem; } /* md:mt-3 */
}

/* Minimal utility shim (only what this page uses so far) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.text-center { text-align: center; }

.mt-6 { margin-top: 1.5rem; }  /* 24px */
.mb-0 { margin-bottom: 0; }
@media (min-width: 768px) { .md\:mb-6 { margin-bottom: 1.5rem; } }

/* Image utilities for the badge */
.h-13 { height: 52px; }        /* Tailwind doesn't have 13 by default; using ~52px */
.w-auto { width: auto; }
.object-contain { object-fit: contain; }





     
