.checkout-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.checkout-page h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.checkout-sub {
  margin: 0 0 20px;
  color: #666;
}

.checkout-grid {
  display: grid;
  gap: 16px;
}

.checkout-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  padding: 16px;
}

.checkout-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.checkout-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.checkout-card input,
.checkout-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.pay-option input {
  width: auto;
  margin: 0;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.sum-row.total {
  margin-top: 14px;
  font-size: 18px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
}

.checkout-msg {
  margin: 12px 0 0;
  color: #c62828;
  font-weight: 700;
}

@media (min-width: 800px) {
  .checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .checkout-summary {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
  }
  .cart-item > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.fulfill-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
}

.fulfill-option input {
  width: auto;
  margin-top: 4px;
}

.fulfill-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

.fulfill-option small {
  font-weight: 500;
  color: #666;
}

.checkout-section-title {
  margin: 16px 0 10px;
  font-size: 0.95rem;
}

.pickup-note {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

#deliveryFields[hidden],
#pickupFields[hidden] {
  display: none !important;
}
/* Primary actions = Zandya green */
.cart-checkout,
#payButton {
  background: #0a7a3e !important;
  color: #fff !important;
  border: 0;
}

.cart-checkout:hover,
#payButton:hover {
  background: #066533 !important;
}

/* Error messages can stay red */
.checkout-msg {
  color: #c62828;
}
