/* Container & scroll-behavior */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html { scroll-behavior: smooth; }

a {
  text-decoration: none;
  color: #d61f1f;
}
/* No-items notice */
#no-items-message {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Show/hide wrapper */
#checkout-container {
  margin: 0 auto;
  display: none; /* toggled via JS */
}
@media (min-width: 1200px) {
  #checkout-container {
    display: block;
    width: 50%;
  }
}

/* Title */
#checkout-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Two-column checkout form */
#checkout-row {
  display: flex;
  gap: 1rem;
}
@media (max-width: 800px) {
  #checkout-row { flex-direction: column; }
}
#checkout-left { flex: 0 0 64%; }
#checkout-right { flex: 0 0 30%; position: relative; }

/* Accordion card */
#placeholder-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}
[data-accordion-section] { margin-bottom: 1rem; }
[data-accordion-title] {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 7px;
  margin: 0.2rem 0;
  cursor: pointer;
  background-color: #e8e8e8;
}
[data-accordion-content] {
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.2s ease;
  max-height: 0;
  padding: 0;
}
[data-accordion-content].open {
  padding: 0.5rem 0;
  max-height: 1000px;
}
button[data-accordion-next] {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background-color: #b0ecb4;
  cursor: pointer;
  transition: background-color 0.3s ease;
  float: right;
}
button[data-accordion-next]:hover {
  background-color: #a0dca4;
}

/* OR divider */
#or-container {
  display: flex;
  align-items: center;
  margin: 1rem 0 1rem 0;
}
#or-container span {
  margin: 0 0.5rem;
  white-space: nowrap;
}
#or-container hr {
  flex: 1;
  border: none;
  border-top: 1px solid #ccc;
}

/* Card form placeholder spacing */
#card_form_div { 
  margin-bottom: .3rem; 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#card_form_div > h4 {
  flex-basis: 100%;
  margin-bottom: 0.5rem;
}
#number-field-container {
  flex: 1 1 100%;
}
#expiry-field-container,
#cvv-field-container {
  flex: 1 1 calc(50% - 0.5rem);
}

/* Order summary */
#order-summary-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  padding: 1rem;
  position: sticky;
  top: 2rem;
}
#order-summary-card table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
#order-summary-card td {
  padding: 0.5rem;
}
#same-as-billing {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: #056bfa27;
  color: #056dfa;
  border: 1px solid #056dfa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#same-as-billing:hover {
  background-color: #056dfa;
  color: #fff;
}
.place-order-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 50px;
  background-color: #056bfa27;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.place-order-btn:hover {
  background-color: #056bfa49;
}

#contact-email {
  margin-bottom: 0;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.fastlane-spinner {
  display: inline-block;
  margin: 0 auto;
}

/* Form inputs in checkout */
input, select {
  height: 3rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
input:focus, select:focus {
  border-color: #056dfa;
  outline: none;
}

#checkout-left label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}