/* checkout.css — bestelformulier */

.checkout-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.checkout-form { min-width: 0; }

.checkout-form h1 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  border-bottom: 4px solid var(--black);
  padding-bottom: 0.6rem;
}
.checkout-form .lead {
  margin: 0.75rem 0 1.5rem;
  color: #444;
  font-size: 0.95rem;
}

fieldset {
  border: 2px solid var(--black);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1.5rem;
}
fieldset legend {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.5rem;
}

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.col { flex: 1 1 calc(50% - 0.4rem); min-width: 140px; }
.col-1 { flex: 1 1 100%; }
.col-3 { flex: 0 0 35%; min-width: 110px; }
.col-7 { flex: 1 1 60%; }

.field { margin-bottom: 0.85rem; }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  color: #333;
}
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--black);
  transition: border-color 0.15s;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--black);
}
input.error { border-color: #c00; background: #fff8f8; }
textarea { min-height: 80px; resize: vertical; }

.help { font-size: 0.78rem; color: #666; margin-top: 0.25rem; }

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.payment-options label.opt {
  border: 2px solid #ccc;
  padding: 1rem;
  cursor: pointer;
  display: block;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  transition: all 0.15s;
  color: var(--black);
}
.payment-options label.opt:hover { border-color: var(--black); }
.payment-options input[type=radio] { display: none; }
.payment-options input[type=radio]:checked + .opt-content {
  display: block;
}
.payment-options label.opt:has(input:checked) {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.payment-options .opt-title {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}
.payment-options .opt-desc {
  display: block;
  font-size: 0.82rem;
  opacity: 0.8;
  font-weight: 400;
}

#invoiceFields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #aaa;
  display: none;
}
#invoiceFields.show { display: block; }

.cb-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  margin: 0.5rem 0 1rem;
  color: var(--black);
}
.cb-line input { width: auto; }

.error-msg {
  background: #fff0f0;
  border: 2px solid #c00;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #800;
  display: none;
}
.error-msg.show { display: block; }

/* ── Sidebar (samenvatting) ── */
.summary {
  border: 3px solid var(--black);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  background: #fff;
}
.summary h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.5rem;
}
.summary .item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.summary .mini-cover-img {
  width: 70px;
  height: auto;
  flex-shrink: 0;
  border: 2px solid var(--black);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: block;
}
.summary .meta { font-size: 0.85rem; }
.summary .meta strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }

.summary .qty-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.summary .qty-line input { width: 70px; padding: 0.4rem; }

.summary .totals { margin: 1rem 0 0.5rem; font-size: 0.92rem; }
.summary .totals .line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}
.summary .totals .line.total {
  font-weight: 800;
  font-size: 1.05rem;
  border-top: 2px solid var(--black);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
}
.summary .totals .line .small { font-size: 0.75rem; color: #777; }

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 3px solid var(--black);
  background: var(--black);
  color: #fff;
  cursor: pointer;
  margin-top: 1rem;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-submit:hover { background: transparent; color: var(--black); }
.btn-submit[disabled] { opacity: 0.5; cursor: wait; }

.tos-line {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.tos-line a { color: var(--black); }

@media (max-width: 800px) {
  .checkout-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .summary { position: static; }
  .col { flex: 1 1 100%; }
  .payment-options { grid-template-columns: 1fr; }
}
