/* ============================================================
   TRIVEN AYURVEDA — CART STYLES
   Uses existing CSS variables from Triven.css
   ============================================================ */

/* ----------------------------------------------------------
   QUANTITY SELECTOR (replaces Add to Cart button)
   ---------------------------------------------------------- */
.qty-selector {
  display: inline-flex;
  align-items: center;
  background: var(--forest);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 34px;
  animation: qtySlideIn 0.25s var(--ease-spring) both;
}

@keyframes qtySlideIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 32px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.qty-btn:hover { background: rgba(255,255,255,0.15); }

.qty-value {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
  user-select: none;
}

/* Wrapper that holds either the Add button or qty selector */
.cart-control {
  display: flex;
  align-items: center;
}


/* ----------------------------------------------------------
   NAVBAR BADGE ANIMATION
   ---------------------------------------------------------- */
.cart-count {
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}
.cart-count.badge-bump {
  animation: badgeBump 0.35s var(--ease-spring);
}
@keyframes badgeBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}


/* ----------------------------------------------------------
   TOAST NOTIFICATION
   ---------------------------------------------------------- */
.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--forest);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(13,40,24,0.35);
  z-index: 999999;
  opacity: 0;
  transition: transform 0.35s var(--ease-spring), opacity 0.35s var(--ease);
  white-space: nowrap;
  pointer-events: none;
}
.cart-toast i {
  color: var(--sage-light);
  font-size: 1.1rem;
}
.cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Shift toast up when call-float-bar is present */
.call-float-bar ~ .cart-toast,
body:has(.call-float-bar) .cart-toast {
  bottom: 80px;
}


/* ----------------------------------------------------------
   CART DRAWER (slide-out from right)
   ---------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,40,24,0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -8px 0 40px rgba(13,40,24,0.15);
  position: fixed; /* keep fixed, detail panel uses absolute inside */
}
.cart-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(13,40,24,0.08);
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-drawer-header h3 i { color: var(--sage); font-size: 1.1rem; }

#cartDrawerClose {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
#cartDrawerClose:hover { background: var(--cream); color: var(--forest); }

/* Drawer item list */
#cartDrawerList {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid rgba(13,40,24,0.06);
}
.drawer-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.drawer-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-item-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.drawer-item-qty {
  display: flex;
  align-items: center;
  background: var(--forest);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}
.drawer-item-qty span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.drawer-item-qty .qty-btn {
  width: 28px;
  height: 30px;
  font-size: 1rem;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: var(--text-muted);
}
.cart-empty i { font-size: 3rem; opacity: 0.3; }
.cart-empty p { font-size: 1rem; }

/* Drawer footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(13,40,24,0.08);
  flex-shrink: 0;
}
.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
}
.cart-drawer-total span:last-child {
  font-size: 1.2rem;
  color: var(--forest);
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--grad-forest);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.cart-checkout-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.cart-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .cart-toast { font-size: 0.82rem; padding: 12px 18px; }
  .cart-drawer { width: 100vw; }
  .cancel-modal { width: calc(100vw - 32px); padding: 24px 18px; }
}

/* ----------------------------------------------------------
   CANCEL ORDER MODAL
   ---------------------------------------------------------- */
.cancel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,40,24,0.45);
  backdrop-filter: blur(6px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cancel-modal-overlay--show { opacity: 1; }

.cancel-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 64px rgba(13,40,24,0.2), 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
  border: 1px solid rgba(13,40,24,0.07);
}
.cancel-modal-overlay--show .cancel-modal {
  transform: translateY(0) scale(1);
}

.cancel-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.cancel-modal__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cancel-modal__icon i { color: #dc2626; font-size: 1.1rem; }

.cancel-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest, #1e4d2b);
  margin: 0 0 3px;
  font-family: 'DM Sans', sans-serif;
}
.cancel-modal__sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.cancel-modal__textarea {
  width: 100%;
  border: 1.5px solid rgba(13,40,24,0.15);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--forest, #1e4d2b);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fafafa;
}
.cancel-modal__textarea:focus { border-color: var(--forest, #1e4d2b); background: #fff; }

.cancel-modal__hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 6px 0 20px;
  transition: color 0.2s;
}

.cancel-modal__actions {
  display: flex;
  gap: 10px;
}
.cancel-modal__btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cancel-modal__btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.cancel-modal__btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.cancel-modal__btn--ghost {
  background: var(--cream, #f5f0e8);
  color: var(--forest, #1e4d2b);
  border: 1.5px solid rgba(13,40,24,0.12);
}
.cancel-modal__btn--danger {
  background: #dc2626;
  color: #fff;
}

/* ----------------------------------------------------------
   PAYMENT METHOD SELECTOR
   ---------------------------------------------------------- */
.pay-method-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}
.pay-method-options {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-method-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(13,40,24,0.15);
  background: var(--cream);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.pay-method-btn:hover { border-color: var(--forest); }
.pay-method-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.cod-charge-note {
  font-size: 0.75rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.cod-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  color: #166534;
  font-weight: 600;
}
.cod-breakdown i { margin-right: 4px; font-size: 0.7rem; }

/* ----------------------------------------------------------
   ORDER SUCCESS / ERROR TOAST
   ---------------------------------------------------------- */
.order-toast {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(13,40,24,0.18), 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 22px;
  z-index: 999999;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.38s cubic-bezier(.22,1,.36,1), transform 0.38s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(13,40,24,0.07);
}
.order-toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Left accent bar */
.order-toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--forest, #1e4d2b);
  border-radius: 16px 0 0 16px;
}
.order-toast--error::before { background: #dc2626; }

/* Icon circle */
.order-toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: iconPop 0.45s cubic-bezier(.22,1,.36,1) 0.1s both;
}
.order-toast__icon i {
  color: var(--forest, #1e4d2b);
  font-size: 1rem;
  font-weight: 900;
}
.order-toast--error .order-toast__icon {
  background: #fef2f2;
  border-color: #fecaca;
}
.order-toast--error .order-toast__icon i { color: #dc2626; }

@keyframes iconPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Text */
.order-toast__body { flex: 1; min-width: 0; padding-top: 2px; }
.order-toast__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest, #1e4d2b);
  margin: 0 0 4px;
  font-family: 'DM Sans', sans-serif;
}
.order-toast--error .order-toast__title { color: #dc2626; }
.order-toast__sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button */
.order-toast__close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.order-toast__close:hover { color: #475569; }

/* Progress bar */
.order-toast__bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--forest, #1e4d2b);
  opacity: 0.18;
  border-radius: 0 0 16px 16px;
  transform-origin: left;
  animation: toastProgress 5s linear forwards;
}
.order-toast--error .order-toast__bar { background: #dc2626; }

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Shift up when call-float-bar is present */
body:has(.call-float-bar) .order-toast { bottom: 88px; }

@media (max-width: 480px) {
  .order-toast { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

/* ----------------------------------------------------------
   MODAL STYLES (Order History)
   ---------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white, #fff);
    border-radius: var(--radius-lg, 12px);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.data-table th {
    background: rgba(0,0,0,0.02);
}

/* ----------------------------------------------------------
   ORDER HISTORY PANEL HEADER
   ---------------------------------------------------------- */
#cartDrawerHistory {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.history-panel-header {
    background: linear-gradient(135deg, var(--forest, #1e4d2b) 0%, #2d6a40 100%);
    padding: 20px 20px 16px;
    flex-shrink: 0;
}
.history-panel-header h4 {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-panel-header h4 i { font-size: 1rem; opacity: 0.85; }
.history-panel-header p {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.history-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
    text-decoration: none;
}
.history-back-btn:hover { background: rgba(255,255,255,0.22); }

.history-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#user-history-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ----------------------------------------------------------
   RECEIPT-STYLE ORDER HISTORY CARDS
   ---------------------------------------------------------- */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.order-history-card {
    background: #fffef9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    animation: cardSlideIn 0.32s cubic-bezier(.22,1,.36,1) both;
    /* Receipt shadow */
    box-shadow:
        0 1px 2px rgba(0,0,0,0.06),
        0 4px 16px rgba(13,40,24,0.08),
        0 0 0 1px rgba(13,40,24,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}
.order-history-card:hover {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.08),
        0 10px 28px rgba(13,40,24,0.13),
        0 0 0 1px rgba(13,40,24,0.1);
    transform: translateY(-2px);
}

/* Coloured top bar — rendered as first child div in JS */
.order-card-topbar {
    height: 4px;
    background: linear-gradient(90deg, var(--forest,#1e4d2b) 0%, #5a9e6f 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

/* ---- Receipt header (store name row) ---- */
.order-receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
    background: var(--forest, #1e4d2b);
}
.order-receipt-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.order-receipt-type {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

/* ---- Inner content ---- */
.order-card-inner {
    padding: 12px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-id {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.order-card-id i { color: #c9a84c; font-size: 0.75rem; }

.order-card-date {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

/* Dotted receipt divider */
.order-card-divider {
    border: none;
    border-top: 1.5px dashed rgba(13,40,24,0.15);
    margin: 2px 0;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
}

.order-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.5px;
}

/* Status Badges */
.status-badge {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
}
.status-badge i { font-size: 7px; }
.status-badge.status-pending,
.status-badge.status-processing,
.status-badge.status-confirmed {
    background: #fffbeb; color: #b45309; border: 1px solid #fde68a;
}
.status-badge.status-delivered,
.status-badge.status-shipped {
    background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.status-badge.status-cancelled,
.status-badge.status-failed {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}

/* Tear-line separator before cancel button */
.order-tear-line {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 6px 0 0;
    position: relative;
    overflow: hidden;
}
.order-tear-line::before,
.order-tear-line::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f1f5f9;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(13,40,24,0.1);
    margin: 0 -1px;
    z-index: 1;
}
.order-tear-line span {
    flex: 1;
    border-top: 1.5px dashed rgba(13,40,24,0.18);
}

/* Cancel Button */
.btn-cancel-order {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    background: #fff5f5;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    padding: 9px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    letter-spacing: 0.2px;
}
.btn-cancel-order:hover {
    background: #fef2f2;
    border-color: #dc2626;
}
.btn-cancel-order:active { transform: scale(0.98); }

#history-loading-msg, #history-empty-msg {
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    padding: 32px 16px;
    width: 100%;
}
