/**
 * Max Trade Fast Checkout - cart screens (side cart, "added to cart" window, cart page, order
 * confirmation). Same look as the checkout (front.css): navy #003b56, red #c80436, slate greys,
 * 8 px cards, 6 px controls. Everything is under .mtc-* so the theme is not touched.
 */
:root {
  --mtc-navy: #003b56;
  --mtc-navy-d: #042a38;
  --mtc-red: #c80436;
  --mtc-text: #0f172a;
  --mtc-text-2: #334155;
  --mtc-muted: #64748b;
  --mtc-faint: #94a3b8;
  --mtc-line: #e2e8f0;
  --mtc-line-2: #f1f5f9;
  --mtc-soft: #f8fafc;
  --mtc-tint: #f0f7fa;
  --mtc-green: #059669;
  --mtc-green-bg: #ecfdf5;
  --mtc-danger: #dc2626;
  --mtc-ease: cubic-bezier(.16, 1, .3, 1);
  --mtc-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

html.mtc-lock, html.mtc-lock body { overflow: hidden !important; }

/* The theme's own side cart and "added" window are replaced while this file is loaded. */
html.mtc-on .ttvcmscart-show-dropdown-right,
html.mtc-on body > .ttvcmscart-show-dropdown-right { display: none !important; }
html.mtc-on #blockcart-modal, html.mtc-on #blockcart-modal + .modal-backdrop { display: none !important; }

.mtc-root, .mtc-modal-root, .mtc-page, .mtc-oc, .mtc-toast { font-family: inherit; color: var(--mtc-text); }
.mtc-root *, .mtc-modal-root *, .mtc-page *, .mtc-oc *, .mtc-toast * { box-sizing: border-box; }
.mtc-root .material-icons, .mtc-modal-root .material-icons, .mtc-page .material-icons, .mtc-oc .material-icons { font-size: 20px; line-height: 1; vertical-align: middle; }

/* ---------------------------------------------------------------- buttons */
.mtc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none !important; text-align: center;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.mtc-btn:active { transform: scale(.98); }
.mtc-btn .material-icons { font-size: 18px; }
.mtc-btn-primary { background: var(--mtc-navy); color: #fff !important; box-shadow: 0 4px 12px rgba(0, 59, 86, .18); }
.mtc-btn-primary:hover, .mtc-btn-primary:focus-visible { background: var(--mtc-navy-d); color: #fff !important; }
.mtc-btn-secondary { background: #fff; color: var(--mtc-navy) !important; border-color: #cbd5e1; }
.mtc-btn-secondary:hover, .mtc-btn-secondary:focus-visible { border-color: var(--mtc-navy); background: var(--mtc-tint); }
.mtc-btn-dark { background: #475569; color: #fff !important; min-height: 40px; padding: 0 16px; }
.mtc-btn-dark:hover { background: #1e293b; }
.mtc-btn-block { display: flex; width: 100%; }
.mtc-btn-lg { min-height: 54px; font-size: 15px; letter-spacing: 0; }
.mtc-card-sum .mtc-btn-lg { margin-top: 16px; }
.mtc-btn.is-disabled { opacity: .5; pointer-events: none; }
.mtc-link-btn { background: none; border: 0; padding: 0; color: var(--mtc-navy); font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mtc-link-btn:hover { color: var(--mtc-red); }
.mtc-x {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--mtc-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.mtc-x:hover, .mtc-x:focus-visible { background: var(--mtc-line-2); color: var(--mtc-text); }
.mtc-x .material-icons { font-size: 22px; }

.mtc-count-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 12px; background: var(--mtc-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}

/* ---------------------------------------------------------------- backdrop + side cart */
/* above maxtradetopbar (fixed, z-index 999999), below its own popups */
.mtc-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 1000000;
}
.mtc-root.is-open .mtc-backdrop, .mtc-modal-root.is-open /* above maxtradetopbar (fixed, z-index 999999), below its own popups */
.mtc-backdrop { opacity: 1; pointer-events: auto; }

.mtc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; z-index: 1000001;
  display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(105%); transition: transform .32s var(--mtc-ease); outline: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.mtc-root.is-open .mtc-drawer { transform: translateX(0); }
.mtc-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--mtc-line);
}
.mtc-drawer-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--mtc-text); text-transform: none; }
.mtc-drawer-head h2 .material-icons { color: var(--mtc-navy); font-size: 22px; }
.mtc-drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; }
.mtc-drawer-foot { flex: 0 0 auto; border-top: 1px solid var(--mtc-line); padding: 14px 20px 16px; background: #fff; box-shadow: 0 -6px 18px rgba(15, 23, 42, .05); }
.mtc-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }
.mtc-actions .mtc-btn { padding: 0 12px; white-space: nowrap; letter-spacing: 0; }

/* ---------------------------------------------------------------- product lines */
.mtc-items { display: flex; flex-direction: column; }
.mtc-item { position: relative; overflow: hidden; border-bottom: 1px solid var(--mtc-line-2); transition: opacity .2s ease, max-height .22s ease; max-height: 400px; }
.mtc-item:last-child { border-bottom: 0; }
.mtc-item.is-leaving { opacity: 0; max-height: 0 !important; border-bottom-width: 0; }
.mtc-item.is-busy .mtc-item-total { opacity: .45; }
.mtc-item-inner {
  position: relative; z-index: 1; display: flex; gap: 14px; padding: 14px 0; background: #fff;
  transition: transform .22s var(--mtc-ease); touch-action: pan-y;
}
.mtc-item-swipe {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding-right: 20px; background: #fee2e2; color: var(--mtc-danger); font-size: 13px; font-weight: 600; opacity: 0;
}
.mtc-item.is-swiping .mtc-item-swipe { opacity: 1; }
.mtc-item.is-armed .mtc-item-swipe { background: var(--mtc-danger); color: #fff; }
.mtc-item-img {
  flex: 0 0 76px; width: 76px; height: 76px; border: 1px solid var(--mtc-line); border-radius: 8px; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center; color: #cbd5e1;
}
.mtc-item-img img { width: 100%; height: 100%; object-fit: contain; }
.mtc-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mtc-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mtc-item-name {
  font-size: 14px; font-weight: 500; line-height: 1.35; color: #1e293b !important; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.mtc-item-name:hover { color: var(--mtc-navy) !important; text-decoration: underline !important; }
.mtc-item-del {
  flex: 0 0 auto; width: 32px; height: 32px; margin: -4px 0 0 0; border-radius: 6px; border: 0; background: transparent;
  color: var(--mtc-faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease;
}
.mtc-item-del:hover, .mtc-item-del:focus-visible { color: var(--mtc-danger); background: #fee2e2; }
.mtc-item-meta { font-size: 12px; color: var(--mtc-muted); }
.mtc-item-price { font-size: 12px; color: var(--mtc-muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.mtc-regular { color: var(--mtc-faint); }
.mtc-disc-badge { background: var(--mtc-red); color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 11px; font-weight: 700; }
.mtc-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.mtc-item-total { font-size: 15px; font-weight: 700; color: var(--mtc-text); white-space: nowrap; transition: opacity .15s ease; }
.mtc-item-extra { margin-top: 4px; font-size: 12px; }
.mtc-gift { font-size: 13px; font-weight: 600; color: var(--mtc-green); }

.mtc-stepper { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid #cbd5e1; border-radius: 6px; background: var(--mtc-soft); overflow: hidden; }
.mtc-step {
  width: 36px; border: 0; background: var(--mtc-soft); color: var(--mtc-text-2); font-size: 18px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .12s ease, color .12s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.mtc-step .material-icons { font-size: 18px; }
.mtc-step:hover:not([disabled]) { background: var(--mtc-navy); color: #fff; }
.mtc-step[data-del]:hover { background: var(--mtc-danger); }
.mtc-step[disabled] { opacity: .35; cursor: not-allowed; }
.mtc-qty {
  width: 46px; border: 0 !important; border-left: 1px solid var(--mtc-line) !important; border-right: 1px solid var(--mtc-line) !important;
  background: #fff !important; text-align: center; font-size: 14px; font-weight: 600; color: var(--mtc-text);
  padding: 0 !important; margin: 0; height: auto !important; border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield;
}
.mtc-qty::-webkit-outer-spin-button, .mtc-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mtc-qty:focus { outline: 2px solid var(--mtc-navy); outline-offset: -2px; }

.mtc-hint { margin: 10px 0 0; font-size: 12px; color: var(--mtc-faint); display: flex; align-items: center; gap: 6px; }
.mtc-hint .material-icons { font-size: 16px; }

/* ---------------------------------------------------------------- summary */
.mtc-sum { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mtc-sum-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #475569; }
.mtc-sum-line > span:last-child { color: #1e293b; font-weight: 500; text-align: right; white-space: nowrap; }
.mtc-sum-disc > span:last-child { color: var(--mtc-green); }
.mtc-sum-disc .mtc-link-btn .material-icons { font-size: 16px; }
.mtc-free { color: var(--mtc-green) !important; font-weight: 600 !important; }
.mtc-sum-hook:empty { display: none; }
.mtc-sum-hook { font-size: 13px; color: var(--mtc-muted); }
.mtc-hook-slot { display: flex; flex-direction: column; gap: 6px; }
.mtc-hook-slot[hidden] { display: none !important; }
.mtc-hook-slot .ps-parcel-box { margin: 0 !important; }
/* the cart page shows the full parcels block under the products; the one-line version would repeat it */
#mtc-page .mtc-hook-slot .ps-parcel-box--line { display: none !important; }
.mtc-hook-slot #payu-installment-cart-summary { display: block; }
.mtc-sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--mtc-line); font-size: 16px; font-weight: 600; color: var(--mtc-text);
}
.mtc-sum-total strong { font-size: 20px; font-weight: 700; color: var(--mtc-navy); white-space: nowrap; }
.mtc-sum-tax { display: flex; justify-content: space-between; font-size: 12px; color: var(--mtc-faint); margin-top: -4px; }
.mtc-pending { opacity: .55; }
.mtc-alert { margin-top: 6px; padding: 10px 12px; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: 13px; border: 1px solid #fed7aa; }

.mtc-skel {
  display: inline-block; height: 14px; border-radius: 4px; vertical-align: middle;
  background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 37%, #eef2f6 63%); background-size: 400% 100%;
  animation: mtcShimmer 1.2s ease infinite;
}
.mtc-skel-sm { width: 72px; }
@keyframes mtcShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------- empty cart */
.mtc-empty { text-align: center; padding: 40px 16px 24px; color: var(--mtc-muted); }
.mtc-empty .material-icons { font-size: 52px !important; color: #cbd5e1; }
.mtc-empty-title { margin: 12px 0 4px; font-size: 17px; font-weight: 600; color: var(--mtc-text); }
.mtc-empty-text { margin: 0; font-size: 14px; }
.mtc-empty-cta { text-align: center; padding: 0 0 28px; }

/* ---------------------------------------------------------------- "fits in the same parcel" */
.mtc-fits { margin-top: 12px; padding: 12px; border: 1px dashed #bfdbfe; background: #f8fbff; border-radius: 8px; }
.mtc-fits-title { margin: 0 0 10px; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--mtc-navy); }
.mtc-fits-title .material-icons { font-size: 18px; }
.mtc-fits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mtc-fit { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--mtc-line); border-radius: 6px; text-decoration: none !important; color: var(--mtc-text) !important; transition: border-color .15s ease; }
.mtc-fit:hover { border-color: var(--mtc-navy); }
.mtc-fit img { width: 100%; height: 72px; object-fit: contain; }
.mtc-fit-noimg { height: 72px; background: var(--mtc-soft); border-radius: 4px; }
.mtc-fit-name { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mtc-fit-price { font-size: 13px; font-weight: 700; color: var(--mtc-red); }

/* ---------------------------------------------------------------- "added to cart" window */
.mtc-modal-root /* above maxtradetopbar (fixed, z-index 999999), below its own popups */
.mtc-backdrop { backdrop-filter: blur(3px); }
.mtc-modal {
  position: fixed; left: 50%; top: 50%; z-index: 1000002; width: 580px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; outline: none;
  transition: transform .26s var(--mtc-ease), opacity .2s ease;
}
.mtc-modal-root.is-open .mtc-modal { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.mtc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--mtc-line); background: var(--mtc-soft); border-radius: 12px 12px 0 0; }
.mtc-modal-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--mtc-navy); text-transform: none; }
.mtc-ok { width: 28px; height: 28px; border-radius: 50%; background: var(--mtc-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: mtcPop .35s var(--mtc-ease); }
.mtc-ok .material-icons { font-size: 18px !important; }
@keyframes mtcPop { from { transform: scale(.4); } to { transform: scale(1); } }
.mtc-modal-body { overflow-y: auto; padding: 6px 20px 16px; }
.mtc-items-single .mtc-item { border-bottom: 1px solid var(--mtc-line); }
.mtc-items-single .mtc-item-img { flex-basis: 88px; width: 88px; height: 88px; }
.mtc-modal-cart { margin-top: 12px; padding: 14px; background: var(--mtc-soft); border-radius: 8px; border: 1px solid var(--mtc-line-2); }
.mtc-modal-incart { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mtc-text-2); }
.mtc-modal-incart .material-icons { font-size: 18px; color: var(--mtc-navy); }
.mtc-modal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px 16px; border-top: 1px solid var(--mtc-line); }
.mtc-modal-foot .mtc-btn-primary { flex: 1 1 260px; }
.mtc-modal-foot .mtc-btn-secondary { flex: 0 1 auto; }
.mtc-modal-link { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--mtc-navy) !important; text-decoration: underline !important; }
.mtc-modal-link:hover { color: var(--mtc-red) !important; }

/* ---------------------------------------------------------------- toast */
.mtc-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000010; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 12px 14px 12px 18px;
  background: #0f172a; color: #fff; border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); font-size: 14px;
  transition: transform .3s var(--mtc-ease); pointer-events: none;
}
.mtc-toast.is-on { transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 767px) {
  /* swipe down on the sheet: the browser must not scroll the page or pull to refresh meanwhile */
  .mtc-modal { touch-action: pan-x; }
  .mtc-modal-body { touch-action: pan-y; overscroll-behavior: contain; }
  .mtc-modal-head { touch-action: none; }
  /* above the total bar of the cart page */
  html.mtc-has-bar .mtc-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
.mtc-toast-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtc-toast-btn { flex: 0 0 auto; border: 0; background: transparent; color: #7dd3fc; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; cursor: pointer; padding: 6px 4px; }

/* ---------------------------------------------------------------- cart page */
.mtc-page { padding: 6px 0 30px; }
.mtc-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--mtc-line); }
.mtc-page-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; color: var(--mtc-navy); text-transform: none; }
.mtc-page-title .material-icons { font-size: 28px !important; }
.mtc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--mtc-muted) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.mtc-back:hover { color: var(--mtc-navy) !important; text-decoration: underline !important; }
.mtc-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.mtc-page.is-empty .mtc-page-grid { grid-template-columns: minmax(0, 1fr); }
.mtc-page.is-empty .mtc-page-side, .mtc-page.is-empty .mtc-page-bar, .mtc-page.is-empty .mtc-page-hook { display: none !important; }
.mtc-card { background: #fff; border: 1px solid var(--mtc-line); border-radius: 8px; box-shadow: var(--mtc-shadow); margin-bottom: 20px; }
.mtc-card-items { padding: 4px 20px; }
.mtc-items-page .mtc-item-img { flex-basis: 104px; width: 104px; height: 104px; }
.mtc-items-page .mtc-item-inner { padding: 18px 0; gap: 18px; }
.mtc-items-page .mtc-item-name { font-size: 15px; }
.mtc-items-page .mtc-item-total { font-size: 17px; }
.mtc-card-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--mtc-text); text-transform: none; }
.mtc-card-sum { padding: 18px 20px 20px; }
.mtc-side-sticky { position: sticky; top: calc(var(--mtb-height, 0px) + 16px); }
.mtc-voucher { margin: 14px 0 16px; padding-top: 12px; border-top: 1px dashed var(--mtc-line); }
.mtc-voucher-form { display: flex; gap: 8px; margin-top: 10px; }
.mtc-voucher-form[hidden] { display: none; }
.mtc-voucher-form input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background: #fff; }
.mtc-voucher-form input:focus { outline: none; border-color: var(--mtc-navy); box-shadow: 0 0 0 3px rgba(0, 59, 86, .12); }
.mtc-voucher-msg { margin: 6px 0 0; font-size: 12px; min-height: 0; }
.mtc-voucher-msg.is-ok { color: var(--mtc-green); }
.mtc-voucher-msg.is-err { color: var(--mtc-danger); }
.mtc-express:empty { display: none; }
.mtc-express { margin-top: 10px; }
.mtc-secure { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--mtc-muted); }
.mtc-secure .material-icons { font-size: 16px !important; color: var(--mtc-green); }
.mtc-trust { background: #fff; border: 1px solid var(--mtc-line); border-radius: 8px; padding: 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.mtc-trust-row { display: flex; gap: 12px; align-items: flex-start; }
.mtc-trust-row strong { display: block; font-size: 13px; color: var(--mtc-text); font-weight: 600; }
.mtc-trust-row p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--mtc-muted); }
.mtc-trust-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mtc-ico-green { background: var(--mtc-green-bg); color: var(--mtc-green); }
.mtc-ico-red { background: #fef2f2; color: var(--mtc-red); }
.mtc-ico-navy { background: var(--mtc-tint); color: var(--mtc-navy); }
.mtc-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 8px; background: var(--mtc-tint); font-size: 13px; color: var(--mtc-text-2); }
.mtc-help .material-icons { color: var(--mtc-navy); }
.mtc-help a { color: var(--mtc-navy) !important; }
.mtc-page-hook:empty { display: none; }
.mtc-page-bar { display: none; }

/* ---------------------------------------------------------------- order confirmation */
.mtc-oc { padding: 6px 0 30px; max-width: 1080px; margin: 0 auto; }
.mtc-oc-hero { padding: 32px 24px 26px; text-align: center; }
.mtc-oc-check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--mtc-green-bg); color: var(--mtc-green); display: flex; align-items: center; justify-content: center; animation: mtcPop .45s var(--mtc-ease); }
.mtc-oc-check .material-icons { font-size: 38px !important; }
.mtc-oc-title { margin: 0 0 8px; font-size: 24px; font-weight: 600; color: var(--mtc-navy); text-transform: none; }
.mtc-oc-mail { margin: 0 0 14px; font-size: 14px; color: var(--mtc-muted); }
.mtc-oc-ref { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 6px; background: var(--mtc-soft); border: 1px solid var(--mtc-line); font-size: 13px; color: var(--mtc-muted); }
.mtc-oc-ref strong { font-size: 15px; color: var(--mtc-text); letter-spacing: .5px; }
.mtc-oc-invoice { margin: 14px auto 0; display: flex; width: max-content; }
.mtc-oc-hook:empty { display: none; }
.mtc-oc-hook { margin-bottom: 20px; }
.mtc-oc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mtc-oc-grid > .mtc-card, .mtc-oc-payment, .mtc-oc-register { padding: 18px 20px; }
.mtc-oc-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mtc-oc-line { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--mtc-line-2); }
.mtc-oc-img { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--mtc-line); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.mtc-oc-img img { width: 100%; height: 100%; object-fit: contain; }
.mtc-oc-name { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #1e293b; overflow-wrap: anywhere; }
.mtc-oc-name small { display: block; font-size: 12px; color: var(--mtc-muted); margin-top: 2px; }
.mtc-oc-total { font-weight: 700; white-space: nowrap; }
.mtc-oc-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; font-size: 14px; }
.mtc-oc-dl dt { color: var(--mtc-muted); font-weight: 400; }
.mtc-oc-dl dd { margin: 0; color: var(--mtc-text); font-weight: 600; overflow-wrap: anywhere; }
.mtc-oc-dl dd small { display: block; font-weight: 400; color: var(--mtc-muted); font-size: 12px; margin-top: 2px; }
.mtc-oc-next { padding: 12px 14px; border-radius: 8px; background: var(--mtc-tint); }
.mtc-oc-next-title { margin: 0 0 6px; font-weight: 600; font-size: 13px; color: var(--mtc-navy); }
.mtc-oc-next ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--mtc-text-2); line-height: 1.5; }
.mtc-oc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
/* the split orders block of this module, in the same look */
.mtc-oc .mtfc-split { margin: 0; }
.mtc-oc .mtfc-split-title { font-size: 18px; font-weight: 600; color: var(--mtc-text); text-align: center; margin-bottom: 14px; }
.mtc-oc .mtfc-split-reference { text-align: center; color: var(--mtc-muted); }
.mtc-oc .mtfc-split-order { border: 1px solid var(--mtc-line); border-radius: 8px; padding: 16px 18px; box-shadow: var(--mtc-shadow); background: #fff; }
.mtc-oc .mtfc-split-order-title { color: var(--mtc-navy); font-size: 15px; }
.mtc-oc .mtfc-split-summary { border: 1px solid var(--mtc-line); border-radius: 8px; background: var(--mtc-soft); padding: 14px 18px; }
.mtc-oc .mtfc-split-summary .mtfc-split-row-total .mtfc-split-row-value { color: var(--mtc-navy); font-size: 18px; }
.mtc-oc .mtfc-split-cod { color: var(--mtc-red); }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 991px) {
  .mtc-page-grid { grid-template-columns: minmax(0, 1fr); }
  .mtc-side-sticky { position: static; }
  .mtc-oc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 767px) {
  .mtc-drawer { width: 100vw; }
  .mtc-drawer-body { padding: 0 16px 10px; }
  .mtc-drawer-foot { padding: 12px 16px 14px; }
  .mtc-actions { grid-template-columns: 1fr 1.4fr; }
  .mtc-btn { min-height: 48px; }

  /* the "added" window becomes a sheet from the bottom */
  .mtc-modal {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0;
    transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom);
  }
  .mtc-modal-root.is-open .mtc-modal { transform: translateY(0); }
  .mtc-modal-head { border-radius: 16px 16px 0 0; }
  .mtc-modal-head::before { content: ''; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #cbd5e1; }
  .mtc-modal-head { position: relative; }
  .mtc-modal-body { padding: 4px 16px 12px; }
  .mtc-modal-foot { padding: 12px 16px 14px; }
  .mtc-modal-foot .mtc-btn { flex: 1 1 100%; }
  .mtc-modal-foot .mtc-btn-secondary { order: 2; }
  .mtc-modal-link { order: 3; }

  .mtc-page { padding-bottom: 96px; }
  .mtc-page-head { margin-bottom: 8px; }
  .mtc-page-title { font-size: 18px; gap: 6px; }
  .mtc-page-title .material-icons { font-size: 22px !important; }
  .mtc-back { font-size: 12px; }
  .mtc-card-items { padding: 0 14px; }
  .mtc-items-page .mtc-item-img { flex-basis: 76px; width: 76px; height: 76px; }
  .mtc-items-page .mtc-item-inner { padding: 14px 0; gap: 12px; }
  .mtc-items-page .mtc-item-name { font-size: 14px; }
  .mtc-items-page .mtc-item-total { font-size: 15px; }
  .mtc-card-sum { padding: 16px; }
  .mtc-fits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* total and button always at hand */
  .mtc-page-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--mtc-line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .1);
  }
  .mtc-page-bar[hidden] { display: none; }
  .mtc-page-bar-total { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.2; }
  .mtc-page-bar-total span { font-size: 11px; color: var(--mtc-muted); text-transform: uppercase; letter-spacing: .3px; }
  .mtc-page-bar-total strong { font-size: 18px; color: var(--mtc-navy); }
  .mtc-page-bar .mtc-btn { flex: 0 0 auto; }

  .mtc-oc-hero { padding: 24px 16px 20px; }
  .mtc-oc-title { font-size: 19px; }
  .mtc-oc-grid > .mtc-card, .mtc-oc-payment, .mtc-oc-register { padding: 16px; }
  .mtc-oc-actions .mtc-btn { flex: 1 1 100%; }
}

@media (hover: none) {
  .mtc-step:hover:not([disabled]) { background: var(--mtc-soft); color: var(--mtc-text-2); }
  .mtc-step:active:not([disabled]) { background: var(--mtc-navy); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .mtc-drawer, .mtc-modal, .mtc-item-inner, .mtc-toast, .mtc-backdrop, .mtc-item { transition: none !important; }
  .mtc-skel, .mtc-ok, .mtc-oc-check { animation: none !important; }
}
