/**
 * Checkout page — self-hosted styles (CSP-safe; no Tailwind CDN).
 * Scope: .checkout-page
 */
.checkout-page {
  --brand-green: #1f4e3d;
  --brand-gold: #c39e4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-900: #78350f;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-800: #991b1b;
  --green-700: #15803d;

  background: #fff;
  color: var(--neutral-800, var(--gray-800));
  -webkit-font-smoothing: antialiased;
}

/* Afrekenstappen — zelfde 1200px-container als rest van de site */
.checkout-page-steps {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-family: var(--font-display);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.checkout-page-steps__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  text-align: center;
}
.checkout-page-steps__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.checkout-page-steps__link:hover {
  color: var(--gold-300);
}
.checkout-page-steps__current {
  color: var(--gold-300);
  font-weight: 700;
}
.checkout-page-steps__muted {
  opacity: 0.5;
}
.checkout-page-steps__sep {
  opacity: 0.45;
  user-select: none;
}

.checkout-page .checkout-line-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checkout-page .checkout-line-items__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}
.checkout-page .checkout-line-items__name {
  color: var(--gray-900);
  font-weight: 500;
}
.checkout-page .checkout-line-items__qty {
  color: var(--gray-500);
  font-weight: 400;
}
.checkout-page .checkout-line-items__price {
  flex-shrink: 0;
  color: var(--gray-900);
}

/* Layout utilities (Tailwind-like names for minimal HTML churn) */
.checkout-page .flex { display: flex; }
.checkout-page .inline-flex { display: inline-flex; }
.checkout-page .inline-block { display: inline-block; }
.checkout-page .hidden { display: none; }
.checkout-page .block { display: block; }
.checkout-page .grid { display: grid; }

.checkout-page .flex-1 { flex: 1 1 0%; }
.checkout-page .flex-wrap { flex-wrap: wrap; }
.checkout-page .flex-col { flex-direction: column; }
.checkout-page .items-center { align-items: center; }
.checkout-page .items-end { align-items: flex-end; }
.checkout-page .justify-between { justify-content: space-between; }
.checkout-page .justify-center { justify-content: center; }
.checkout-page .shrink-0 { flex-shrink: 0; }

.checkout-page .gap-2 { gap: 0.5rem; }
.checkout-page .gap-3 { gap: 0.75rem; }
.checkout-page .gap-4 { gap: 1rem; }
.checkout-page .gap-8 { gap: 2rem; }
.checkout-page .gap-x-2 { column-gap: 0.5rem; }
.checkout-page .gap-y-1 { row-gap: 0.25rem; }

.checkout-page .space-y-2 > * + * { margin-top: 0.5rem; }
.checkout-page .space-y-3 > * + * { margin-top: 0.75rem; }
.checkout-page .space-y-4 > * + * { margin-top: 1rem; }
.checkout-page .space-y-6 > * + * { margin-top: 1.5rem; }
.checkout-page .space-y-10 > * + * { margin-top: 2.5rem; }

.checkout-page .space-x-2 > * + * { margin-left: 0.5rem; }
.checkout-page .space-x-6 > * + * { margin-left: 1.5rem; }

.checkout-page .w-full { width: 100%; }
.checkout-page .h-4 { height: 1rem; }
.checkout-page .w-4 { width: 1rem; }

.checkout-page .max-w-7xl { max-width: 80rem; }
.checkout-page .max-w-2xl { max-width: 42rem; }
.checkout-page .mx-auto { margin-left: auto; margin-right: auto; }

.checkout-page .m-0 { margin: 0; }
.checkout-page .mb-1 { margin-bottom: 0.25rem; }
.checkout-page .mb-4 { margin-bottom: 1rem; }
.checkout-page .mb-5 { margin-bottom: 1.25rem; }
.checkout-page .mb-6 { margin-bottom: 1.5rem; }
.checkout-page .mt-4 { margin-top: 1rem; }
.checkout-page .mt-12 { margin-top: 3rem; }
.checkout-page .mr-1 { margin-right: 0.25rem; }

.checkout-page .p-0 { padding: 0; }
.checkout-page .p-3 { padding: 0.75rem; }
.checkout-page .p-4 { padding: 1rem; }
.checkout-page .px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.checkout-page .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.checkout-page .px-4 { padding-left: 1rem; padding-right: 1rem; }
.checkout-page .px-8 { padding-left: 2rem; padding-right: 2rem; }
.checkout-page .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.checkout-page .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.checkout-page .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.checkout-page .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.checkout-page .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.checkout-page .py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.checkout-page .text-xs { font-size: 0.75rem; line-height: 1rem; }
.checkout-page .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.checkout-page .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.checkout-page .text-xl { font-size: 1.25rem; line-height: 1.75rem; }

.checkout-page .font-medium { font-weight: 500; }
.checkout-page .font-bold { font-weight: 700; }

.checkout-page .text-center { text-align: center; }

.checkout-page .list-none { list-style: none; }

.checkout-page .rounded { border-radius: 0.25rem; }
.checkout-page .rounded-md { border-radius: 0.375rem; }
.checkout-page .rounded-lg { border-radius: 0.5rem; }

.checkout-page .border { border-width: 1px; border-style: solid; }
.checkout-page .border-2 { border-width: 2px; border-style: solid; }
.checkout-page .border-t { border-top-width: 1px; border-top-style: solid; }

.checkout-page .border-gray-200 { border-color: var(--gray-200); }
.checkout-page .border-gray-300 { border-color: var(--gray-300); }
.checkout-page .border-amber-200 { border-color: var(--amber-200); }
.checkout-page .border-red-200 { border-color: var(--red-200); }

.checkout-page .bg-white { background-color: #fff; }
.checkout-page .bg-gray-50 { background-color: var(--gray-50); }
.checkout-page .bg-gray-100 { background-color: var(--gray-100); }
.checkout-page .bg-amber-50 { background-color: var(--amber-50); }
.checkout-page .bg-amber-100 { background-color: var(--amber-100); }
.checkout-page .bg-red-50 { background-color: var(--red-50); }

.checkout-page .bg-brand-green { background-color: var(--brand-green); }
.checkout-page .bg-brand-gold { background-color: var(--brand-gold); }

.checkout-page .text-white { color: #fff; }
.checkout-page .text-gray-500 { color: var(--gray-500); }
.checkout-page .text-gray-600 { color: var(--gray-600); }
.checkout-page .text-gray-700 { color: var(--gray-700); }
.checkout-page .text-gray-800 { color: var(--gray-800); }
.checkout-page .text-gray-900 { color: var(--gray-900); }
.checkout-page .text-red-600 { color: var(--red-600); }
.checkout-page .text-red-800 { color: var(--red-800); }
.checkout-page .text-amber-900 { color: var(--amber-900); }
.checkout-page .text-green-700 { color: var(--green-700); }

.checkout-page .text-brand-green { color: var(--brand-green); }
.checkout-page .text-brand-gold { color: var(--brand-gold); }

.checkout-page .opacity-50 { opacity: 0.5; }

.checkout-page .shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.checkout-page .overflow-hidden { overflow: hidden; }

.checkout-page .cursor-pointer { cursor: pointer; }

.checkout-page .sticky { position: sticky; }
.checkout-page .top-4 { top: 1rem; }

.checkout-page .co-option-label:hover {
  border-color: rgba(31, 78, 61, 0.4);
}

/* sr-only */
.checkout-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form fields */
.checkout-page #checkout-form input:not([type='radio']):not([type='hidden']),
.checkout-page #checkout-form select,
.checkout-page #checkout-form textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  padding: 0.75rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  font: inherit;
}
.checkout-page #checkout-form input:focus,
.checkout-page #checkout-form select:focus,
.checkout-page #checkout-form textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(31, 78, 61, 0.2);
}

.checkout-page .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.checkout-page .co-discount-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
}

@media (min-width: 640px) {
  .checkout-page .sm\:p-6 { padding: 1.5rem; }
  .checkout-page .sm\:w-auto { width: auto !important; }
  .checkout-page .co-discount-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 768px) {
  .checkout-page .md\:flex { display: flex !important; }
  .checkout-page .md\:hidden { display: none !important; }
  .checkout-page .md\:w-auto { width: auto !important; }
  .checkout-page .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-page .md\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .checkout-page .lg\:flex-row { flex-direction: row; }
  .checkout-page .lg\:gap-16 { gap: 4rem; }
  .checkout-page .lg\:w-96 { width: 24rem; }
  .checkout-page .lg\:top-8 { top: 2rem; }
}

/* Hover */
.checkout-page a.hover\:underline:hover,
.checkout-page .hover\:underline:hover {
  text-decoration: underline;
}
.checkout-page .hover\:text-white:hover {
  color: #fff;
}
.checkout-page .hover\:bg-opacity-90:hover {
  filter: brightness(0.95);
}
.checkout-page .border-brand-green {
  border-color: var(--brand-green);
}
.checkout-page button#apply-discount:hover {
  background-color: var(--brand-green);
  color: #fff;
}

.checkout-page .transition {
  transition-property: color, background-color, border-color, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
}

.checkout-page input[type='radio'] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-green);
}

.checkout-page .checkout-cart-items .cart-item-line-total {
  color: var(--brand-green);
}
