.checkout-page {
  padding: 40px 16px 80px;
}

.checkout-container {
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.checkout-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed #d9d9d9;
  border-radius: 12px;
}

.checkout-empty .btn-continue,
.checkout-result .btn-continue {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.checkout-info .section-title:not(:first-child) {
  margin-top: 26px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.payment-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.payment-option input {
  margin-top: 3px;
}

.payment-option strong {
  display: block;
}

.payment-option small {
  display: block;
  color: #777;
  font-size: 13px;
  margin-top: 2px;
}

.checkout-summary {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  background: #fafafa;
  position: sticky;
  top: 20px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  font-size: 14px;
  align-items: center;
}

.checkout-item-qty {
  color: #777;
}

.checkout-item-line {
  font-weight: 600;
  text-align: right;
  min-width: 90px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  font-size: 18px;
}

.checkout-total-row strong {
  font-size: 22px;
}

.checkout-error {
  color: #c0392b;
  font-size: 14px;
  margin: 12px 0 0;
}

.btn-place-order {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.btn-place-order:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Kết quả */
.checkout-result {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-code {
  margin-bottom: 20px;
}

.result-bank {
  text-align: left;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  background: #fafafa;
  margin-bottom: 20px;
}

.result-bank-hint {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

.result-bank-body {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.result-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.result-bank-info {
  flex: 1;
  min-width: 220px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 14px;
}

.bank-row span {
  color: #777;
}

.result-status {
  margin: 16px 0 0;
  font-weight: 600;
  color: #b45309;
}

.result-status.is-paid {
  color: #16a34a;
}

@media (max-width: 800px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}
