/* ============ CHECKOUT / ORDER PAGE ============ */
.checkout-wrap { max-width: 1100px; margin: 0 auto; }

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.checkout-head h3 {
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.checkout-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
  height: 100%;
}
.card-title {
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 18px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Items list */
.item-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.item-thumb, .item-thumb-placeholder {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef0f4;
}
.item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
}
.item-info strong { color: #1a1a1a; font-size: .95rem; }
.item-price { color: #1f6feb; font-weight: 700; }

/* Summary */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #475569;
}
.summary-row strong { color: #1a1a1a; }
.summary-total {
  border-top: 1px dashed #cbd5e1;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
}
.summary-total strong { color: #1f6feb; font-weight: 800; }

/* QR card */
.checkout-qr-card .card-title { color: #1f6feb; }

.qr-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.qr-img {
  max-width: 260px;
  width: 100%;
  border: 2px solid #eef0f4;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}

/* Bank info rows */
.bank-info {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 16px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f4;
  font-size: .92rem;
}
.bank-row:last-child { border-bottom: 0; }
.bank-row .label { color: #64748b; }
.bank-row strong { color: #1a1a1a; font-weight: 700; }
.bank-row.highlight { background: #fffbeb; margin: 4px -10px; padding: 12px 12px; border-radius: 8px; border-bottom: 0; }
.bank-row.highlight strong { color: #ea580c; font-size: 1rem; font-family: monospace; letter-spacing: .5px; }
.bank-row .amount { color: #1f6feb !important; font-size: 1.05rem; }

.copy-text { transition: background .15s; }
.copy-text i { opacity: .5; margin-left: 4px; font-size: .85rem; }
.copy-text:hover { opacity: .85; }
.copy-text:hover i { opacity: 1; }

.status-poll {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #eef4ff;
  border-radius: 8px;
  color: #1e40af;
  font-size: .9rem;
}

/* ============ ADMIN SETTINGS PAYMENT (SePay block) ============ */
.sepay-block { border: 2px dashed #1f6feb; border-radius: 12px; padding: 18px; background: #f8faff; margin-top: 18px; }
.sepay-block h6 { color: #1f6feb; font-weight: 800; margin-bottom: 12px; }
.sepay-webhook-url {
  background: #1a1a1a;
  color: #4ade80;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: .88rem;
  word-break: break-all;
  position: relative;
}
.sepay-webhook-url button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #16a34a;
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .8rem;
}

.sepay-log-table { font-size: .85rem; }
.sepay-log-table td, .sepay-log-table th { padding: 8px 10px; vertical-align: middle; }
.sepay-log-table .badge { font-size: .72rem; padding: 4px 8px; }

@media (max-width: 768px) {
  .qr-img { max-width: 220px; }
  .checkout-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .checkout-head h3 { font-size: 1.15rem; }
}

/* ============ V110: GIỎ HÀNG + CHECKOUT KHÁCH ============ */
.cart-page,
.checkout-entry-page {
  background: #f7f9fc;
  min-height: calc(100vh - 72px);
}
.cart-page .container,
.checkout-entry-page .container { max-width: 1120px; }

.cart-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.cart-page-head h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}
.cart-page-head p { margin: 5px 0 0; color: #6b7280; }
.cart-clear-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
}
.cart-clear-btn:hover { color: #dc2626; }

.cart-items-card,
.cart-summary-card,
.checkout-entry-card,
.checkout-order-card,
.checkout-suggest-card,
.cart-empty-card {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  box-shadow: 0 5px 22px rgba(15,23,42,.055);
}
.cart-items-card { overflow: hidden; }
.cart-course-row {
  display: grid;
  grid-template-columns: 126px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #edf0f5;
}
.cart-course-row:last-child { border-bottom: 0; }
.cart-course-thumb {
  width: 126px;
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
}
.cart-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-course-thumb > span { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; font-size: 28px; }
.cart-course-info { min-width: 0; }
.cart-course-title {
  display: block;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 5px;
}
.cart-course-title:hover { color: #2563eb; }
.cart-course-meta { color: #7c8594; font-size: 12px; margin-bottom: 8px; }
.cart-course-price { display: flex; align-items: center; gap: 10px; }
.cart-course-price strong { color: #2563eb; font-size: 16px; }
.cart-course-price del { color: #a0a7b2; font-size: 12px; }
.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #8a94a3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  font-size: 13px;
}
.cart-remove-btn:hover { color: #dc2626; }

.cart-summary-card {
  padding: 22px;
  position: sticky;
  top: 94px;
}
.cart-summary-card h3,
.checkout-order-card h2,
.checkout-entry-card h2,
.checkout-suggest-card h3 {
  color: #111827;
  font-weight: 800;
}
.cart-summary-card h3 { font-size: 17px; margin: 0 0 18px; }
.cart-summary-line,
.cart-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  color: #5f6877;
}
.cart-summary-line strong { color: #111827; }
.cart-summary-total {
  border-top: 1px solid #e8ebf0;
  margin-top: 10px;
  padding-top: 16px;
  font-weight: 700;
}
.cart-summary-total strong { color: #2563eb; font-size: 24px; font-weight: 900; }
.cart-checkout-btn,
.checkout-submit-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg,#2f80ed,#2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.cart-checkout-btn:hover,
.checkout-submit-btn:hover { color: #fff; transform: translateY(-1px); }
.cart-continue-link { display: block; text-align: center; margin-top: 13px; color: #2563eb; font-size: 13px; text-decoration: none; }
.cart-empty-card { text-align: center; padding: 70px 24px; }
.cart-empty-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #eef4ff; color: #2563eb; font-size: 34px; margin: 0 auto 18px; }
.cart-empty-card h3 { font-weight: 800; color: #111827; }
.cart-empty-card p { color: #7b8492; }

.checkout-entry-card { padding: 22px; }
.checkout-entry-card h2 { font-size: 17px; margin: 0 0 18px; }
.checkout-entry-card .form-label { font-size: 13px; font-weight: 700; color: #4b5563; }
.checkout-entry-card .form-control { border-color: #dce2eb; min-height: 46px; font-size: 14px; }
.checkout-entry-card .form-control:focus { border-color: #3b82f6; box-shadow: 0 0 0 .18rem rgba(59,130,246,.13); }
.checkout-guest-note { display: flex; gap: 9px; align-items: flex-start; background: #eff6ff; border: 1px solid #dbeafe; color: #35506f; padding: 11px 13px; border-radius: 8px; font-size: 13px; }

.payment-method-row {
  border: 1.5px solid #cbdaf8;
  background: #f7faff;
  border-radius: 9px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.payment-method-row input { display: none; }
.payment-radio-dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #3b82f6; position: relative; flex: 0 0 17px; }
.payment-radio-dot:after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; position: absolute; inset: 3px; }
.payment-method-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.payment-method-copy strong { color: #1f2937; font-size: 14px; }
.payment-method-copy small { color: #7a8493; font-size: 12px; margin-top: 2px; }
.payment-method-row > i { color: #2563eb; font-size: 22px; }

.checkout-order-card { padding: 20px; position: sticky; top: 94px; }
.checkout-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.checkout-order-head h2 { font-size: 16px; margin: 0; }
.checkout-order-head h2 small { color: #7b8492; font-weight: 500; font-size: 12px; }
.checkout-order-head a { color: #6b7280; font-size: 12px; text-decoration: none; }
.checkout-order-head a:hover { color: #2563eb; }
.checkout-mini-list { border-bottom: 1px solid #edf0f4; padding-bottom: 6px; }
.checkout-mini-item { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px 0; }
.checkout-mini-item img,
.checkout-mini-placeholder { width: 62px; height: 42px; border-radius: 6px; object-fit: cover; background: #edf1f6; }
.checkout-mini-placeholder { display: grid; place-items: center; color: #94a3b8; }
.checkout-mini-item div { min-width: 0; }
.checkout-mini-item strong { display: block; color: #273142; font-size: 12px; line-height: 1.35; margin-bottom: 3px; }
.checkout-mini-item span { color: #2563eb; font-size: 12px; font-weight: 700; }
.checkout-total-block { padding-top: 10px; }
.checkout-total-block > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: #626c7b; font-size: 13px; }
.checkout-total-block > div strong { color: #111827; }
.checkout-total-block .checkout-pay-total { border-top: 1px solid #e8ebf0; margin-top: 8px; padding-top: 13px; font-weight: 800; color: #111827; }
.checkout-total-block .checkout-pay-total strong { color: #dc2626; font-size: 20px; font-weight: 900; }
.checkout-policy-note { color: #8b94a2; font-size: 11px; line-height: 1.45; text-align: center; margin: 10px 0 0; }

.checkout-suggest-card { padding: 18px; }
.checkout-suggest-card h3 { font-size: 14px; margin: 0 0 12px; }
.checkout-suggest-item { display: grid; grid-template-columns: 72px minmax(0,1fr) 34px; gap: 10px; align-items: center; }
.checkout-suggest-item img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; }
.checkout-suggest-item a { display: block; color: #283445; font-size: 12px; line-height: 1.35; font-weight: 700; text-decoration: none; margin-bottom: 3px; }
.checkout-suggest-item strong { color: #2563eb; font-size: 12px; }
.checkout-suggest-add { width: 32px; height: 32px; border-radius: 7px; border: 1px solid #bfdbfe; color: #2563eb; background: #eff6ff; display: grid; place-items: center; }
.checkout-suggest-add:hover { background: #2563eb; color: #fff; }

@media (max-width: 991.98px) {
  .cart-summary-card,
  .checkout-order-card { position: static; }
}
@media (max-width: 575.98px) {
  .cart-page-head { align-items: center; }
  .cart-page-head h1 { font-size: 24px; }
  .cart-course-row { grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 12px; }
  .cart-course-thumb { width: 96px; }
  .cart-remove-btn { grid-column: 2; justify-self: start; padding: 0; }
  .cart-course-title { font-size: 13px; }
  .cart-course-meta { font-size: 11px; }
  .cart-course-price strong { font-size: 14px; }
  .checkout-entry-card,
  .checkout-order-card { padding: 16px; }
}
