/* ── Checkout page ────────────────────────────────────────────────── */

.checkout-page {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 2rem;
}

/* Two-column layout */
.checkout-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.checkout-form-col {
  flex: 1;
  min-width: 0;
}

/* Sections */
.checkout-section {
  margin-bottom: 2.25rem;
}

.checkout-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ebebeb;
}

/* Form fields */
.field {
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field-row .field {
  flex: 1;
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.field-optional {
  color: #bbb;
  font-weight: normal;
}

.field-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: #111;
}

/* Billing same checkbox */
.billing-same-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #444;
  cursor: pointer;
  margin-bottom: 1rem;
}

.billing-same-label input[type="checkbox"] {
  accent-color: #111;
  width: 15px;
  height: 15px;
}

/* Errors */
.checkout-errors {
  background: #fff5f5;
  border: 1px solid #fcc;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #c00;
}

.checkout-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Submit */
.checkout-submit {
  margin-top: 1.5rem;
}

.btn-place-order {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-place-order:hover {
  background: #333;
}

/* Order summary sidebar */
.checkout-summary {
  flex-shrink: 0;
  width: 280px;
  border: 1px solid #ebebeb;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.checkout-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-summary-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 60px;
}

.checkout-summary-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
}

.checkout-summary-details {
  flex: 1;
  min-width: 0;
}

.checkout-summary-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #111;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-summary-meta {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

.checkout-summary-price {
  font-size: 0.85rem;
  color: #111;
  flex-shrink: 0;
  font-weight: 500;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

/* Cart checkout button (overrides disabled style) */
.btn-checkout {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 0.75rem;
}

.btn-checkout:hover {
  background: #333;
  color: #fff;
}

/* ── Success page ─────────────────────────────────────────────────── */

.checkout-success {
  padding-top: 4rem;
  padding-bottom: 5rem;
  text-align: center;
}

.success-inner {
  max-width: 480px;
  margin: 0 auto;
}

.success-icon {
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 1.25rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.75rem;
}

.success-order-number {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.success-note {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 2rem;
}

.btn-pay-now {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 1.25rem;
}

.btn-pay-now:hover {
  background: #333;
  color: #fff;
}

.btn-continue-text {
  display: block;
  font-size: 0.82rem;
  color: #aaa;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn-continue-text:hover {
  color: #555;
}

/* ── Payment page ─────────────────────────────────────────────────── */

.payment-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.payment-inner {
  max-width: 480px;
}

.payment-order-ref {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.payment-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1.75rem;
}

.payment-summary {
  border: 1px solid #ebebeb;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: #555;
  padding: 0.35rem 0;
}

.payment-total {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
}

.payment-placeholder {
  background: #fafafa;
  border: 1px dashed #ddd;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.payment-placeholder-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.4rem;
}

.payment-placeholder-note {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
}

.payment-actions {
  margin-bottom: 1.5rem;
}

.btn-pay {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

.payment-actions-note {
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
  margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .checkout-layout {
    flex-direction: column;
  }

  .checkout-summary {
    width: 100%;
    position: static;
    order: -1;
  }
}

/* ── Phase 5 — checkout reassurance microcopy near submit ── */
.checkout-trust-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #555;
}
.checkout-trust-list li {
  padding-left: 1.1rem;
  position: relative;
  margin: 0.25rem 0;
  line-height: 1.45;
}
.checkout-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: 700;
}
