.summary-prices {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  display: grid;
  gap: 6px;
}

.summary-quote-status {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.4;
}

.checkout-modal-body {
  gap: 18px;
}

.checkout-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.checkout-customer-block,
.checkout-quote-body {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8f9fa;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-customer-line {
  margin: 0 0 4px;
}

.checkout-quote-loading,
.checkout-quote-empty {
  margin: 0;
  color: var(--color-muted);
}

.checkout-quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.checkout-quote-table th,
.checkout-quote-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.checkout-quote-table th {
  font-weight: 600;
  background: #ffffff;
}

.checkout-price {
  white-space: nowrap;
  text-align: right !important;
}

.checkout-quote-ops-title {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.checkout-quote-totals {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.checkout-quote-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-quote-total {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
}

#checkout-submit-btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

#checkout-submit-btn:disabled,
#checkout-modal .apl4-modal__close:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  #checkout-modal .apl4-modal__panel,
  #checkout-modal .checkout-modal-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: 94vh;
  }

  #checkout-modal .checkout-modal-body {
    padding: 16px 18px;
  }

  #checkout-modal .checkout-modal-footer {
    padding: 12px 18px 16px;
  }

  #checkout-modal .apl4-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #checkout-submit-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .checkout-quote-table {
    font-size: 11px;
  }

  .checkout-quote-table th,
  .checkout-quote-table td {
    padding: 4px 6px;
  }
}
