/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* Generic modal overlay (orders, admin) */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 380px; max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
  color: white;
}
.cart-drawer-header h3 { font-size: 16px; font-weight: 700; }
.cart-close-btn {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-close-btn:hover { background: rgba(255,255,255,0.35); }

.cart-items-list {
  flex: 1; overflow-y: auto; padding: 16px;
}

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 12px;
  color: var(--text-muted); text-align: center;
}
.btn-shop-now {
  background: var(--primary); color: white;
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; margin-top: 8px;
  display: inline-block;
}

.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 6px;
}
.cart-item-qty button {
  width: 28px; height: 28px; border: 1px solid var(--border);
  background: #f5f5f5; border-radius: 6px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:hover { background: var(--border); }
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-del { background: #ffebee !important; border-color: #ffcdd2 !important; color: #c62828; font-size: 13px !important; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 14px;
}
.cart-summary-row span:last-child { font-size: 18px; font-weight: 800; color: var(--primary); }
.btn-checkout {
  width: 100%; padding: 14px;
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover { background: var(--primary-dark); }

/* ===== CHECKOUT PAGE ===== */
.checkout-steps {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 24px; background: white;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #bdbdbd;
  white-space: nowrap;
}
.step span {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e0e0e0; color: #9e9e9e;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.step.active { color: var(--primary); }
.step.active span { background: var(--primary); color: white; }
.step.done span { background: #2e7d32; color: white; }
.step-line { flex: 1; height: 2px; background: #e0e0e0; min-width: 24px; max-width: 60px; }

.checkout-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 24px; padding: 24px 0 48px;
  align-items: start;
}

.checkout-form-area {
  background: white; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}

.step-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; }

.step-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.btn-next {
  background: var(--primary); color: white;
  border: none; padding: 12px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-next:hover { background: var(--primary-dark); }
.btn-back {
  background: none; color: var(--text-muted);
  border: 1px solid var(--border); padding: 12px 20px;
  border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn-back:hover { background: #f5f5f5; }

/* SHIPPING OPTIONS */
.shipping-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.shipping-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: border-color 0.2s;
}
.shipping-option:has(input:checked) { border-color: var(--primary); background: #fff5f5; }
.shipping-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.shipping-info { flex: 1; }
.shipping-name { font-size: 14px; font-weight: 600; }
.shipping-eta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.shipping-cost { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.shipping-cost.free { color: #2e7d32; }

/* PAYMENT OPTIONS */
.payment-group-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.payment-option {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color 0.2s;
}
.payment-option:has(input:checked) { border-color: var(--primary); background: #fff5f5; }
.payment-option input { accent-color: var(--primary); }
.payment-icon { font-size: 18px; }

/* ORDER SUMMARY SIDEBAR */
.order-summary {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  position: sticky; top: 80px;
}
.summary-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.summary-item {
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
}
.summary-item img { width: 52px; height: 44px; object-fit: cover; border-radius: 6px; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 12px; font-weight: 600; line-height: 1.4; }
.summary-item-qty { font-size: 11px; color: var(--text-muted); }
.summary-item-price { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 8px; color: var(--text-muted);
}
.summary-row.total {
  font-size: 16px; font-weight: 800; color: var(--text);
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px;
}
.summary-row.total span:last-child { color: var(--primary); }

.payment-report-card {
  background: white;
  border: 1px solid #e8eaf6;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  font-family: 'Segoe UI', sans-serif;
}
.payment-report-card .receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}
.payment-report-card .receipt-logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: #f5f5ff;
  border: 1px solid #d3d9ff;
}
.payment-report-card .receipt-title {
  flex: 1;
}
.payment-report-card .receipt-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.payment-report-card .receipt-info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: #444;
}
.payment-report-card .receipt-info-block strong {
  margin-top: 2px;
  font-size: 14px;
}
.payment-report-card .receipt-store {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}
.payment-report-card .receipt-subtitle {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}
.payment-report-card .receipt-address {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
.payment-report-card .receipt-divider {
  border: none;
  border-top: 1px dashed #999;
  margin: 12px 0;
}
.payment-report-card .receipt-items-label {
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px;
}
.payment-report-card .report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}
.payment-report-card .report-row.total {
  border-top: 1px dashed #e0e0e0;
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 800;
  color: var(--primary);
}
.payment-report-card .report-items {
  margin-top: 8px;
}
.payment-report-card .report-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.payment-report-card .report-item strong {
  color: var(--text);
}
.payment-report-card .cicilan-info {
  margin-top: 12px;
  font-weight: 700;
}

@media print {
  body * { visibility: hidden !important; }
  .printable-area, .printable-area * { visibility: visible !important; }
  .printable-area { position: absolute; top: 0; left: 0; width: 100%; padding: 0 16px; font-family: 'Courier New', monospace; color: #000; }
  .printable-area .btn-next, .printable-area .btn-back, .printable-area button { display: none !important; }
  .receipt-store { font-size: 22px !important; letter-spacing: 0.5px !important; }
  .receipt-subtitle, .receipt-address { color: #000 !important; }
  .payment-report-card, .order-detail-summary { box-shadow: none !important; background: transparent !important; }
  .payment-report-card { border: none !important; }
}

/* ORDER SUCCESS */
.order-success { text-align: center; padding: 20px 0; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.order-success h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: #2e7d32; }
.order-success p { color: var(--text-muted); margin-bottom: 20px; }
.order-id-box {
  background: #e8f5e9; border-radius: 8px; padding: 12px 20px;
  font-size: 14px; margin-bottom: 20px; display: inline-block;
}
.order-id-box strong { color: #2e7d32; font-size: 16px; }
.order-detail-summary {
  background: #f8f9fa; border-radius: 10px; padding: 16px;
  text-align: left; margin-bottom: 24px;
}
.confirm-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; padding: 8px 0; border-bottom: 1px solid #eee;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row span:first-child { color: var(--text-muted); white-space: nowrap; }
.confirm-row span:last-child { font-weight: 600; text-align: right; }
.confirm-row.total span { font-size: 15px; font-weight: 800; color: var(--primary); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Cart & Checkout Responsive ---- */
@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 100vw; }
  .checkout-steps { gap: 4px; padding: 14px 12px; }
  .step { font-size: 11px; }
  .step-line { min-width: 12px; }
}
@media (max-width: 480px) {
  .cart-drawer { width: 100vw; }
  .checkout-steps { gap: 2px; padding: 10px 8px; }
  .step { font-size: 10px; }
  .step span { width: 24px; height: 24px; font-size: 11px; }
  .payment-options { grid-template-columns: 1fr 1fr; }
  .step-actions { flex-direction: column; gap: 8px; }
  .btn-next, .btn-back { width: 100%; text-align: center; justify-content: center; }
  .order-success h2 { font-size: 18px; }
  .success-actions { flex-direction: column; }
  .success-actions a, .success-actions button { width: 100%; text-align: center; }
}

/* ===== ORDERS PAGE ===== */
.order-search-box {
  max-width: 600px; margin: 0 auto 40px;
  text-align: center; padding: 40px 32px;
  background: white; border-radius: 16px; box-shadow: var(--shadow);
}
.order-search-icon { font-size: 48px; margin-bottom: 12px; }
.order-search-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.order-search-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.order-search-form { display: flex; gap: 8px; }
.order-search-form input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none;
}
.order-search-form input:focus { border-color: var(--primary); }
.order-search-form button {
  padding: 12px 20px; background: var(--primary); color: white;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.order-search-form button:hover { background: var(--primary-dark); }
.order-error {
  margin-top: 12px; color: #c62828; font-size: 13px;
  background: #ffebee; padding: 10px 16px; border-radius: 8px;
}

.order-results-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.order-results-header h3 { font-size: 16px; font-weight: 700; }
.btn-back-search {
  background: none; border: 1px solid var(--border); padding: 8px 16px;
  border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-muted);
}

.my-orders-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.my-orders-title::before {
  content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}

.order-card {
  background: white; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid transparent;
}
.order-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--primary); }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.order-card-id { font-family: monospace; font-size: 15px; font-weight: 700; }
.order-card-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.order-card-items { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.order-card-items img {
  width: 52px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border);
}
.order-more-items {
  width: 44px; height: 44px; background: #f5f5f5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.order-card-summary { margin-left: auto; text-align: right; }
.order-card-summary span { display: block; font-size: 12px; color: var(--text-muted); }
.order-card-total { font-size: 16px !important; font-weight: 800 !important; color: var(--primary) !important; }
.order-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid #f0f0f0; font-size: 13px; color: var(--text-muted);
}
.order-detail-link { color: var(--primary); font-weight: 600; }

.empty-orders {
  text-align: center; padding: 48px; color: var(--text-muted);
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty-orders p { margin: 12px 0 20px; font-size: 15px; }

/* ORDER MODAL */
.order-modal-box {
  background: white; border-radius: 16px;
  width: 600px; max-width: 95vw; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(40px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .order-modal-box {
  transform: translateY(0);
}
.order-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: white; z-index: 1;
}
.order-modal-header h3 { font-size: 16px; font-weight: 700; }
.order-modal-header button {
  background: #f5f5f5; border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
}

.order-detail-id {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 24px; background: #f8f9fa; border-bottom: 1px solid var(--border);
  font-family: monospace; font-size: 15px; font-weight: 700;
}

/* ORDER TIMELINE */
.order-timeline {
  display: flex; align-items: center; padding: 20px 24px;
  overflow-x: auto; gap: 0;
}
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e0e0e0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 2px solid #e0e0e0;
}
.timeline-step.done .timeline-dot { background: #e8f5e9; border-color: #2e7d32; }
.timeline-label { font-size: 10px; text-align: center; color: #9e9e9e; line-height: 1.3; }
.timeline-step.done .timeline-label { color: #2e7d32; font-weight: 600; }
.timeline-line { flex: 1; height: 2px; background: #e0e0e0; min-width: 16px; }

.order-detail-section { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; }
.order-detail-section h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.order-detail-item { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.order-detail-item img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; }
.order-detail-item-info { flex: 1; font-size: 13px; font-weight: 600; }
.order-detail-item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.muted { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.order-info-grid span:first-child { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.order-info-grid span:last-child { font-size: 13px; font-weight: 600; }

.order-price-summary { padding: 16px 24px; }
.order-price-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--text-muted); }
.order-price-row.total { font-size: 16px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.order-price-row.total span:last-child { color: var(--primary); }

/* ===== CICILAN 0% ===== */
.cicilan-section {
  margin-top: 20px;
  border: 2px solid #2e7d32;
  border-radius: 12px;
  overflow: hidden;
}

.cicilan-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-bottom: 1px solid #c8e6c9;
}

.cicilan-badge {
  background: #2e7d32; color: white;
  font-size: 13px; font-weight: 900;
  padding: 4px 10px; border-radius: 6px;
  letter-spacing: 0.5px; white-space: nowrap;
}

.cicilan-title { font-size: 14px; font-weight: 700; color: #1b5e20; }
.cicilan-subtitle { font-size: 12px; color: #388e3c; margin-top: 2px; }

.cicilan-banks {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 14px 16px;
}

.cicilan-bank-opt {
  flex-direction: column; gap: 6px; padding: 10px 8px;
  text-align: center; font-size: 12px;
}
.cicilan-bank-opt:has(input:checked) { border-color: #2e7d32; background: #e8f5e9; }

.bank-logo {
  width: 48px; height: 24px; object-fit: contain;
}

/* TENOR BOX */
.tenor-box {
  padding: 16px;
  background: #f9fbe7;
  border-top: 1px solid #c8e6c9;
}

.tenor-label { font-size: 13px; font-weight: 700; color: #1b5e20; margin-bottom: 10px; }

.tenor-options {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}

.tenor-opt {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 2px solid #c8e6c9; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  background: white; transition: all 0.2s;
}
.tenor-opt:has(input:checked) { border-color: #2e7d32; background: #e8f5e9; color: #1b5e20; }
.tenor-opt input { accent-color: #2e7d32; }

.cicilan-calc {
  background: white; border-radius: 10px;
  padding: 14px 18px; border: 1px solid #c8e6c9;
  margin-bottom: 10px;
}
.cicilan-calc-main { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.cicilan-per-bulan { font-size: 26px; font-weight: 900; color: #2e7d32; }
.cicilan-per-label { font-size: 14px; color: #388e3c; font-weight: 600; }
.cicilan-calc-detail { font-size: 12px; color: #757575; }

.cicilan-note {
  font-size: 11px; color: #388e3c; font-weight: 600;
  padding: 8px 12px; background: #e8f5e9; border-radius: 6px;
}

@media (max-width: 768px) {
  .cicilan-banks { grid-template-columns: repeat(3, 1fr); }
  .tenor-options { gap: 6px; }
}

/* Cicilan info di detail pesanan */
.cicilan-info-box {
  background: #f1f8e9; border-radius: 10px;
  border: 1px solid #c8e6c9; overflow: hidden;
}
.cicilan-info-row {
  display: flex; justify-content: space-between;
  padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid #dcedc8;
}
.cicilan-info-row:last-child { border-bottom: none; }
.cicilan-info-row span:first-child { color: #558b2f; }
.cicilan-info-row span:last-child { font-weight: 600; }
.cicilan-info-row.highlight { background: #e8f5e9; }
.cicilan-info-row.highlight span:last-child { font-size: 16px; font-weight: 800; color: #2e7d32; }

/* ===== PAYMENT INSTRUCTIONS ===== */
.payment-instructions-card {
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 20px;
  background: #fff;
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.payment-method-icon { font-size: 28px; }
.payment-method-name { font-size: 15px; font-weight: 700; }
.payment-method-sub { font-size: 12px; color: #757575; margin-top: 2px; }

.payment-account-box {
  padding: 18px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}
.payment-account-label {
  font-size: 12px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.payment-account-number {
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  color: #1a237e;
  margin-bottom: 8px;
}
.payment-amount-label {
  font-size: 12px;
  color: #757575;
  margin-top: 14px;
  margin-bottom: 4px;
}
.payment-amount {
  font-size: 24px;
  font-weight: 800;
  color: #e53935;
  margin-bottom: 8px;
}
.payment-deadline {
  font-size: 12px;
  color: #ff6f00;
  margin-top: 10px;
  padding: 6px 12px;
  background: #fff8e1;
  border-radius: 8px;
  display: inline-block;
}

.btn-copy {
  background: #1565c0;
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 4px 4px 0;
  transition: background 0.2s;
}
.btn-copy:hover { background: #0d47a1; }

.payment-steps-title {
  padding: 12px 18px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #424242;
}
.payment-steps { padding: 4px 18px 16px; }
.payment-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #424242;
  border-bottom: 1px dashed #f0f0f0;
}
.payment-step:last-child { border-bottom: none; }
.step-num {
  min-width: 22px;
  height: 22px;
  background: var(--primary, #1565c0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* COD box */
.cod-box { padding: 24px 18px; }
.cod-icon { font-size: 40px; margin-bottom: 8px; }

/* QRIS */
.qris-placeholder { margin: 10px 0; }
.qris-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
}

/* Cicilan confirm */
.cicilan-confirm-box { padding: 20px 18px; }
.cicilan-confirm-badge {
  display: inline-block;
  background: #2e7d32;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ===================================================
   SHOPEE-STYLE ORDER STATUS SYSTEM — SHARED
   =================================================== */

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Status banner (di atas modal) */
.order-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0;
}
.osb-icon { font-size: 28px; flex-shrink: 0; }
.osb-label { font-size: 15px; font-weight: 800; }
.osb-desc { font-size: 12px; color: #616161; margin-top: 2px; }

/* ---- FULL TIMELINE (modal detail) ---- */
.order-timeline-full {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.tl-title {
  font-size: 13px;
  font-weight: 700;
  color: #424242;
  margin-bottom: 14px;
}
.tl-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.tl-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.tl-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #9e9e9e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}
.tl-step.done .tl-icon {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #2e7d32;
}
.tl-step.active .tl-icon {
  background: var(--primary, #1565c0);
  border-color: var(--primary, #1565c0);
  color: white;
  box-shadow: 0 0 0 4px rgba(21,101,192,0.15);
  animation: tl-pulse 1.8s infinite;
}
@keyframes tl-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(21,101,192,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(21,101,192,0.08); }
}
.tl-connector {
  width: 2px;
  height: 28px;
  background: #e0e0e0;
  margin: 2px 0;
  transition: background 0.3s;
}
.tl-connector.filled { background: #2e7d32; }

.tl-info {
  padding: 6px 0 20px;
}
.tl-label {
  font-size: 13px;
  font-weight: 700;
  color: #424242;
}
.tl-step.active .tl-label { color: var(--primary, #1565c0); }
.tl-step.done .tl-label { color: #2e7d32; }
.tl-desc {
  font-size: 12px;
  color: #757575;
  margin-top: 3px;
}

/* ---- MINI TIMELINE (di card pesanan) ---- */
.order-mini-timeline {
  display: flex;
  align-items: center;
  padding: 10px 0 6px;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.order-mini-timeline::-webkit-scrollbar { display: none; }
.mini-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mini-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}
.mini-step.done .mini-dot {
  background: #e8f5e9;
  border-color: #2e7d32;
}
.mini-step.active .mini-dot {
  background: var(--primary, #1565c0);
  border-color: var(--primary, #1565c0);
  color: white;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.2);
}
.mini-label {
  font-size: 9px;
  color: #9e9e9e;
  text-align: center;
  max-width: 56px;
  line-height: 1.2;
}
.mini-step.done .mini-label { color: #2e7d32; font-weight: 600; }
.mini-step.active .mini-label { color: var(--primary, #1565c0); font-weight: 700; }
.mini-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  min-width: 12px;
  margin-bottom: 16px;
}

.order-cancelled-bar {
  background: #ffebee;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0;
  text-align: center;
}

/* ---- ORDER TABS (filter di halaman pesanan) ---- */
.order-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.order-tab-btn {
  background: white;
  border: 1.5px solid #e0e0e0;
  color: #616161;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.order-tab-btn:hover { border-color: var(--primary, #1565c0); color: var(--primary, #1565c0); }
.order-tab-btn.active {
  background: var(--primary, #1565c0);
  border-color: var(--primary, #1565c0);
  color: white;
}

/* order-detail-id row */
.order-detail-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* ---- CHECKOUT: SAVED ADDRESS SELECTOR ---- */
.saved-addr-card {
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.saved-addr-card:hover { border-color: #e53935; background: #fff8f8; }
.saved-addr-card.selected { border-color: #e53935; background: #ffebee; }
