:root {
  --epmc-bg: #0d0d0f;
  --epmc-bg-2: #141416;
  --epmc-header: #141416;
  --epmc-bg-3: #1a1a1e;
  --epmc-bg-4: #25252b;
  --epmc-border: rgba(255,255,255,.075);
  --epmc-border-strong: rgba(255,255,255,.14);
  --epmc-gold: #c9a84c;
  --epmc-gold-light: #e8c96a;
  --epmc-gold-glow: rgba(201,168,76,.14);
  --epmc-gold-border: rgba(201,168,76,.3);
  --epmc-green-soft: rgba(85,185,139,.11);
  --epmc-blue-soft: rgba(108,156,240,.1);
  --epmc-amber-soft: rgba(232,169,76,.1);
  --epmc-red-soft: rgba(224,101,101,.11);
  --epmc-button-text: #17150f;
  --epmc-text: #f5f3ee;
  --epmc-muted: #9b9891;
  --epmc-dim: #625f5b;
  --epmc-green: #55b98b;
  --epmc-blue: #6c9cf0;
  --epmc-amber: #e8a94c;
  --epmc-red: #e06565;
  --epmc-radius: 14px;
  --epmc-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --epmc-display: 'DM Serif Display', Georgia, serif;
}

.epmc-body {
  margin: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--epmc-bg) !important;
  color: var(--epmc-text);
  font: 400 14px/1.55 var(--epmc-font);
}

.epmc-body *, .epmc-body *::before, .epmc-body *::after { box-sizing: border-box; }
.epmc-body a { color: inherit; text-decoration: none; }
.epmc-body img, .epmc-body svg { max-width: 100%; }
.epmc-body button, .epmc-body input { font: inherit; }
.epmc-body .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.epmc-app { min-width: 0; min-height: 100vh; overflow-x: clip; background: var(--epmc-bg); }

.epmc-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  display: flex; flex-direction: column;
  width: 264px; height: 100vh;
  background: var(--epmc-bg-2); border-right: 1px solid var(--epmc-border);
}

.epmc-profile { padding: 30px 24px 23px; border-bottom: 1px solid var(--epmc-border); }
.epmc-avatar {
  display: grid; place-items: center; position: relative;
  width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--epmc-gold-light), var(--epmc-gold)); color: var(--epmc-button-text);
  font: 22px/1 var(--epmc-display);
}
.epmc-avatar::after { content: ''; position: absolute; inset: -3px; border: 1px solid var(--epmc-gold-border); border-radius: inherit; }
.epmc-user-name { color: var(--epmc-text); font-weight: 600; }
.epmc-user-email { overflow: hidden; margin-top: 2px; color: var(--epmc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.epmc-cashback-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; padding: 4px 10px; border: 1px solid var(--epmc-gold-border); border-radius: 20px; background: var(--epmc-gold-glow); color: var(--epmc-gold-light); font-size: 11px; font-weight: 600; }
.epmc-cashback-chip .woocommerce-Price-amount { color: inherit; }

.epmc-nav { flex: 1; padding: 17px 12px; overflow: auto; }
.epmc-nav-label { display: block; padding: 7px 12px 5px; color: var(--epmc-dim); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.epmc-nav-account { margin-top: 12px; }
.epmc-nav-item { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 2px 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--epmc-muted); transition: .18s ease; }
.epmc-nav-item:hover { background: var(--epmc-bg-3); color: var(--epmc-text); }
.epmc-nav-item.is-active { border-color: var(--epmc-gold-border); background: var(--epmc-gold-glow); color: var(--epmc-gold-light); font-weight: 600; }
.epmc-nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: 0 0 18px; line-height: 1; }
.epmc-nav-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--epmc-icon); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; transition: stroke .18s ease; }
.epmc-nav-item:hover .epmc-nav-icon svg { stroke: var(--epmc-text); }
.epmc-nav-item.is-active .epmc-nav-icon svg { stroke: var(--epmc-gold-light); }
.epmc-nav-item b { min-width: 20px; margin-left: auto; padding: 1px 6px; border-radius: 10px; background: var(--epmc-red); color: white; font-size: 10px; line-height: 17px; text-align: center; }
.epmc-sidebar-footer { padding: 14px 12px; border-top: 1px solid var(--epmc-border); }
.epmc-logout { display: flex; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 9px; color: var(--epmc-dim); font-size: 13px; }
.epmc-logout:hover { background: var(--epmc-red-soft); color: var(--epmc-red); }
.epmc-logout .epmc-nav-icon svg { stroke: var(--epmc-icon); }
.epmc-logout:hover .epmc-nav-icon svg { stroke: var(--epmc-red); }

.epmc-main { min-width: 0; min-height: 100vh; margin-left: 264px; }
.epmc-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 42px; border-bottom: 1px solid var(--epmc-border); background: var(--epmc-header); }
.epmc-topbar > div { color: var(--epmc-dim); font-size: 12px; }
.epmc-topbar i { margin: 0 9px; color: #4b4947; font-style: normal; }
.epmc-topbar strong { color: var(--epmc-muted); font-weight: 500; }
.epmc-store-link { display: inline-flex; align-items: center; gap: 8px; color: var(--epmc-gold-light); font-size: 12px; font-weight: 600; }
.epmc-store-link span { font-size: 17px; transition: transform .18s ease; }
.epmc-store-link:hover span { transform: translateX(3px); }
.epmc-content { width: min(1280px, 100%); min-width: 0; margin: 0 auto; padding: 40px 42px 54px; }
.epmc-full-width-content { width: 100%; max-width: none; }
.epmc-dashboard-content {
  min-height: calc(100vh - 73px);
  display: flex; flex-direction: column;
}
.epmc-dashboard-content .epmc-two-columns { flex: 1; min-height: 0; }
.epmc-dashboard-content .epmc-two-columns > .epmc-card { min-height: 100%; }

.epmc-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.epmc-eyebrow { margin: 0 0 4px; color: var(--epmc-gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.epmc-page-heading h1, .epmc-login-card h1 { margin: 0; color: var(--epmc-text); font: 34px/1.15 var(--epmc-display); }
.epmc-page-heading > div > p:last-child { margin: 7px 0 0; color: var(--epmc-muted); font-size: 13px; }

.epmc-primary-button, .epmc-outline-button, .epmc-small-button, .epmc-text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 39px; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; font-size: 12px; font-weight: 600; transition: .18s ease;
}
.epmc-primary-button { padding: 0 15px; background: linear-gradient(135deg, var(--epmc-gold-light), var(--epmc-gold)); box-shadow: 0 4px 14px var(--epmc-gold-glow); color: var(--epmc-button-text); }
.epmc-primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.epmc-outline-button { padding: 0 13px; border-color: var(--epmc-border-strong); background: transparent; color: var(--epmc-muted); }
.epmc-outline-button:hover, .epmc-small-button:hover { border-color: var(--epmc-gold-border); background: var(--epmc-bg-3); color: var(--epmc-text); }
.epmc-small-button { min-height: 31px; padding: 0 10px; border-color: var(--epmc-border-strong); background: transparent; color: var(--epmc-muted); font-size: 11px; }
.epmc-text-button { min-height: 31px; padding: 0; border: 0; background: transparent; color: var(--epmc-gold-light); }
.epmc-text-button:hover { color: var(--epmc-text); }
.epmc-danger-button { border-color: rgba(239,68,68,.34); color: var(--epmc-red); }
.epmc-danger-button:hover { border-color: var(--epmc-red); background: var(--epmc-red-soft); color: var(--epmc-red); }
.epmc-nav-item:focus-visible, .epmc-logout:focus-visible, .epmc-store-link:focus-visible, .epmc-activity:focus-visible, .epmc-card-heading a:focus-visible, .epmc-back-row a:focus-visible, .epmc-tracking-list a:focus-visible, .epmc-primary-button:focus-visible, .epmc-outline-button:focus-visible, .epmc-small-button:focus-visible, .epmc-text-button:focus-visible, .epmc-icon-button:focus-visible, .epmc-twofa-cancel:focus-visible {
  outline: 2px solid var(--epmc-gold-light);
  outline-offset: 3px;
}
.epmc-order-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.epmc-small-button.epmc-pay-button { border-color: var(--epmc-gold-border); background: var(--epmc-gold); color: var(--epmc-button-text); box-shadow: 0 4px 12px var(--epmc-gold-glow); }
.epmc-small-button.epmc-pay-button:hover { background: var(--epmc-gold-light); color: var(--epmc-button-text); }
.epmc-theme-v2 .epmc-small-button.epmc-pay-button,
.epmc-theme-v3 .epmc-small-button.epmc-pay-button,
.epmc-theme-v4 .epmc-small-button.epmc-pay-button,
.epmc-theme-v5 .epmc-small-button.epmc-pay-button {
  border-color: var(--epmc-gold-border);
  background: var(--epmc-gold);
  color: var(--epmc-button-text);
  box-shadow: 0 4px 12px var(--epmc-gold-glow);
}
.epmc-theme-v2 .epmc-small-button.epmc-pay-button:hover,
.epmc-theme-v3 .epmc-small-button.epmc-pay-button:hover,
.epmc-theme-v4 .epmc-small-button.epmc-pay-button:hover,
.epmc-theme-v5 .epmc-small-button.epmc-pay-button:hover {
  background: var(--epmc-gold-light);
  color: var(--epmc-button-text);
}

.epmc-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.epmc-stat-card { position: relative; overflow: hidden; min-height: 132px; padding: 19px; border: 1px solid var(--epmc-border); border-radius: var(--epmc-radius); background: var(--epmc-bg-2); transition: border-color .18s, transform .18s; }
.epmc-stat-card:hover { border-color: var(--epmc-border-strong); transform: translateY(-2px); }
.epmc-stat-card::before { position: absolute; right: -12px; bottom: -24px; opacity: .08; font: 80px/1 var(--epmc-display); }
.epmc-stat-card.is-gold::before { content: '◈'; color: var(--epmc-gold); }
.epmc-stat-card.is-green::before { content: '✦'; color: var(--epmc-green); }
.epmc-stat-card.is-blue::before { content: '◌'; color: var(--epmc-blue); }
.epmc-stat-card.is-amber::before { content: '⌖'; color: var(--epmc-amber); }
.epmc-stat-card > span { display: block; color: var(--epmc-muted); font-size: 11px; }
.epmc-stat-card > strong { display: block; position: relative; margin: 7px 0 3px; color: var(--epmc-text); font-size: 24px; line-height: 1.2; font-weight: 600; }
.epmc-stat-card small { color: var(--epmc-dim); font-size: 11px; }
.epmc-stat-card.is-gold > strong { color: var(--epmc-gold-light); }
.epmc-stat-card.is-green > strong { color: var(--epmc-green); }
.epmc-stat-card.is-blue > strong { color: var(--epmc-blue); }
.epmc-stat-card.is-amber > strong { color: var(--epmc-amber); }

.epmc-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.epmc-card { min-width: 0; border: 1px solid var(--epmc-border); border-radius: var(--epmc-radius); background: var(--epmc-bg-2); padding: 23px; }
.epmc-card h2 { margin: 0; color: var(--epmc-text); font-size: 14px; font-weight: 600; }
.epmc-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--epmc-border); }
.epmc-card-heading a { color: var(--epmc-gold-light); font-size: 11px; font-weight: 600; }
.epmc-activity { display: flex; align-items: center; gap: 11px; min-height: 66px; border-bottom: 1px solid var(--epmc-border); }
.epmc-activity:last-child { border: 0; }
.epmc-activity:hover strong { color: var(--epmc-gold-light); }
.epmc-activity > span:nth-child(2) { min-width: 0; flex: 1; }
.epmc-activity strong, .epmc-activity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epmc-activity strong { color: var(--epmc-text); font-size: 12px; font-weight: 500; transition: color .18s; }
.epmc-activity small { margin-top: 2px; color: var(--epmc-dim); font-size: 10px; }
.epmc-activity b { color: var(--epmc-text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.epmc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--epmc-blue); box-shadow: 0 0 0 4px var(--epmc-blue-soft); }
.epmc-dot.is-delivered { background: var(--epmc-green); box-shadow: 0 0 0 4px var(--epmc-green-soft); }
.epmc-dot.is-processing { background: var(--epmc-amber); box-shadow: 0 0 0 4px var(--epmc-amber-soft); }
.epmc-dot.is-cancelled { background: var(--epmc-red); box-shadow: 0 0 0 4px var(--epmc-red-soft); }
.epmc-dot.is-pending { background: var(--epmc-amber); box-shadow: 0 0 0 4px var(--epmc-amber-soft); }

.epmc-cashback-overview { display: flex; align-items: center; gap: 25px; padding-top: 18px; }
.epmc-ring { display: grid; place-content: center; width: 116px; height: 116px; flex: 0 0 116px; border-radius: 50%; text-align: center; background: radial-gradient(closest-side, var(--epmc-bg-2) 77%, transparent 78% 100%), conic-gradient(var(--epmc-gold) calc(var(--epmc-progress) * 1%), var(--epmc-bg-4) 0); }
.epmc-ring span { color: var(--epmc-gold-light); font: 24px/1 var(--epmc-display); }
.epmc-ring small { color: var(--epmc-dim); font-size: 9px; }
.epmc-cashback-summary { width: 100%; }
.epmc-cashback-summary p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--epmc-border); color: var(--epmc-muted); font-size: 11px; }
.epmc-cashback-summary p:last-child { border: 0; }
.epmc-cashback-summary b { color: var(--epmc-gold-light); font-size: 12px; font-weight: 500; white-space: nowrap; }
.epmc-muted-notice { margin: 17px 0 0; color: var(--epmc-amber); font-size: 11px; }

.epmc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 207px; padding: 22px; color: var(--epmc-muted); text-align: center; }
.epmc-empty > span { margin-bottom: 9px; color: var(--epmc-gold); font-size: 28px; }
.epmc-empty p { max-width: 300px; margin: 0 0 15px; font-size: 12px; }

.epmc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.epmc-filters button { min-height: 32px; padding: 0 12px; border: 1px solid var(--epmc-border); border-radius: 18px; background: transparent; color: var(--epmc-muted); cursor: pointer; font-size: 11px; }
.epmc-filters button:hover { border-color: var(--epmc-border-strong); color: var(--epmc-text); }
.epmc-filters button.is-active { border-color: var(--epmc-gold-border); background: var(--epmc-gold-glow); color: var(--epmc-gold-light); }
.epmc-table-card { padding: 0; overflow: hidden; }
.epmc-table-wrap { overflow-x: auto; }
.epmc-orders-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.epmc-orders-table th { padding: 13px 21px; border-bottom: 1px solid var(--epmc-border); color: var(--epmc-dim); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.epmc-orders-table td { padding: 15px 21px; border-bottom: 1px solid var(--epmc-border); color: var(--epmc-muted); font-size: 12px; }
.epmc-orders-table tr:last-child td { border: 0; }
.epmc-orders-table tbody tr:hover td { background: rgba(255,255,255,.018); }
.epmc-order-number { color: var(--epmc-gold-light); font-weight: 600; }
.epmc-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 15px; background: var(--epmc-blue-soft); color: var(--epmc-blue); font-size: 10px; font-weight: 600; white-space: nowrap; }
.epmc-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.epmc-status.is-delivered { background: var(--epmc-green-soft); color: var(--epmc-green); }
.epmc-status.is-processing { background: var(--epmc-amber-soft); color: var(--epmc-amber); }
.epmc-status.is-cancelled { background: var(--epmc-red-soft); color: var(--epmc-red); }
.epmc-status.is-pending { background: var(--epmc-amber-soft); color: var(--epmc-amber); }
.epmc-orders-table tr[hidden] { display: none; }
.epmc-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 21px; border-top: 1px solid var(--epmc-border); }
.epmc-pagination span { color: var(--epmc-muted); font-size: 12px; }
.epmc-pagination .is-disabled { pointer-events: none; opacity: .45; }

/* On narrow desktops, tablets and phones a table becomes an unreadable strip.
   Each order therefore becomes a compact card, with no horizontal scrolling. */
@media (max-width: 1000px) {
  .epmc-table-wrap { overflow: visible; }
  .epmc-orders-table, .epmc-orders-table tbody { display: block; width: 100%; min-width: 0; }
  .epmc-orders-table thead { display: none; }
  .epmc-orders-table tbody { display: grid; gap: 10px; padding: 10px; }
  .epmc-orders-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "order total" "date status" "action action";
    gap: 4px 14px; padding: 15px; border: 1px solid var(--epmc-border);
    border-radius: 10px; background: var(--epmc-bg-2);
  }
  .epmc-orders-table tbody tr:hover td { background: transparent; }
  .epmc-orders-table td { min-width: 0; padding: 0; border: 0; color: var(--epmc-muted); }
  .epmc-orders-table td:nth-child(1) { grid-area: order; align-self: end; }
  .epmc-orders-table td:nth-child(2) { grid-area: date; display: flex; flex-direction: column; gap: 1px; font-size: 11px; }
  .epmc-orders-table td:nth-child(2)::before { content: 'Data do pedido'; color: var(--epmc-dim); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .epmc-orders-table td:nth-child(3) { grid-area: total; align-self: end; color: var(--epmc-text); font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
  .epmc-orders-table td:nth-child(3)::before { content: 'Total'; display: block; margin-bottom: 1px; color: var(--epmc-dim); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .epmc-orders-table td:nth-child(4) { grid-area: status; align-self: start; text-align: right; }
  .epmc-orders-table td:nth-child(5) { grid-area: action; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--epmc-border); }
  .epmc-order-actions { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
  .epmc-orders-table td:nth-child(5) .epmc-small-button { display: flex; width: 100%; min-height: 35px; }
  .epmc-order-number { font-size: 14px; }
  .epmc-orders-table tr[hidden] { display: none !important; }
}

.epmc-back-row { margin-bottom: 17px; }
.epmc-back-row a { color: var(--epmc-muted); font-size: 12px; }
.epmc-back-row a:hover { color: var(--epmc-gold-light); }
.epmc-order-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding: 24px; border: 1px solid var(--epmc-border); border-radius: var(--epmc-radius); background: var(--epmc-bg-2); }
.epmc-order-hero-side { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.epmc-order-hero p { margin: 0; color: var(--epmc-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.epmc-order-hero h1 { margin: 2px 0; color: var(--epmc-gold-light); font: 30px/1.1 var(--epmc-display); }
.epmc-order-hero > div:first-child > span { color: var(--epmc-muted); font-size: 12px; }
.epmc-timeline-card { margin-bottom: 20px; }
.epmc-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 22px; }
.epmc-timeline > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--epmc-dim); font-size: 10px; text-align: center; }
.epmc-timeline > div:not(:last-child)::after { content: ''; position: absolute; z-index: 0; top: 14px; left: 55%; width: 90%; height: 1px; background: var(--epmc-border-strong); }
.epmc-timeline i { z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--epmc-border-strong); border-radius: 50%; background: var(--epmc-bg-2); color: var(--epmc-dim); font-size: 10px; font-style: normal; }
.epmc-timeline .is-done { color: var(--epmc-text); }
.epmc-timeline .is-done i { border-color: var(--epmc-gold); background: var(--epmc-gold); color: var(--epmc-button-text); }
.epmc-timeline .is-done:not(:last-child)::after { background: var(--epmc-gold); }
.epmc-timeline .is-current { color: var(--epmc-text); }
.epmc-timeline .is-current i { border-color: var(--epmc-gold); color: var(--epmc-gold-light); box-shadow: 0 0 0 4px var(--epmc-gold-glow); }
.epmc-timeline-note { margin: 16px 0 0; color: var(--epmc-amber); font-size: 11px; }
.epmc-order-grid { margin-bottom: 20px; align-items: start; }
.epmc-order-grid .epmc-card h2 { margin-bottom: 14px; }
.epmc-order-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--epmc-border); }
.epmc-order-item:last-child { border: 0; }
.epmc-product-image { display: grid; place-items: center; width: 47px; height: 47px; overflow: hidden; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-dim); }
.epmc-product-image img { width: 100%; height: 100%; object-fit: cover; }
.epmc-order-item strong, .epmc-order-item small { display: block; }
.epmc-order-item strong { color: var(--epmc-text); font-size: 12px; font-weight: 500; }
.epmc-order-item small { margin-top: 2px; color: var(--epmc-dim); font-size: 10px; }
.epmc-order-item b { color: var(--epmc-text); font-size: 12px; white-space: nowrap; }
.epmc-totals p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--epmc-border); color: var(--epmc-muted); font-size: 12px; }
.epmc-totals p b { color: var(--epmc-text); font-weight: 500; }
.epmc-totals .epmc-grand-total { margin-top: 5px; padding-top: 13px; border-bottom: 0; border-top: 1px solid var(--epmc-border-strong); color: var(--epmc-text); font-size: 13px; font-weight: 600; }
.epmc-totals .epmc-grand-total b { color: var(--epmc-gold-light); font-size: 16px; }
.epmc-totals .epmc-gold { color: var(--epmc-gold-light); }
.epmc-totals .epmc-red { color: var(--epmc-red); }
.epmc-totals .epmc-shipping-method b { max-width: 58%; color: var(--epmc-muted); font-size: 11px; font-weight: 500; text-align: right; }
.epmc-address-read { color: var(--epmc-muted); font-size: 12px; line-height: 1.8; }
.epmc-address-read p { margin: 0; }
.epmc-delivery-card h2 { margin-bottom: 15px; }
.epmc-delivery-method, .epmc-payment-info { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--epmc-border); }
.epmc-delivery-method > span, .epmc-tracking-list > span, .epmc-payment-info > span { color: var(--epmc-dim); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.epmc-delivery-method strong, .epmc-payment-info strong { color: var(--epmc-text); font-size: 12px; font-weight: 500; }
.epmc-payment-info { padding-bottom: 0; border-bottom: 0; }
.epmc-payment-info small { color: var(--epmc-dim); font-size: 10px; }
.epmc-tracking-list { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--epmc-border); }
.epmc-tracking-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--epmc-gold-border); border-radius: 7px; background: var(--epmc-gold-glow); color: var(--epmc-gold-light); transition: .18s ease; }
.epmc-tracking-list a:hover { border-color: var(--epmc-gold); transform: translateY(-1px); }
.epmc-tracking-list a strong { font-size: 12px; letter-spacing: .03em; }
.epmc-tracking-list a small { color: var(--epmc-muted); font-size: 10px; white-space: nowrap; }
.epmc-tracking-empty { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--epmc-border); color: var(--epmc-dim); font-size: 11px; }

.epmc-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.epmc-address-card { position: relative; min-height: 240px; padding: 22px; border: 1px solid var(--epmc-border); border-radius: var(--epmc-radius); background: var(--epmc-bg-2); }
.epmc-address-card.is-default { border-color: var(--epmc-gold-border); }
.epmc-address-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--epmc-dim); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.epmc-address-card-top em { padding: 3px 8px; border-radius: 10px; background: var(--epmc-gold-glow); color: var(--epmc-gold-light); font-size: 9px; font-style: normal; letter-spacing: 0; text-transform: none; }
.epmc-address-card h2 { margin: 0 0 5px; color: var(--epmc-text); font-size: 15px; }
.epmc-address-card p { margin: 0; color: var(--epmc-muted); font-size: 12px; line-height: 1.8; }
.epmc-address-card .epmc-small-button { position: absolute; left: 22px; bottom: 20px; }
.epmc-empty-address { display: flex; align-items: center; gap: 8px; color: var(--epmc-dim); font-size: 12px; }
.epmc-empty-address span { color: var(--epmc-gold); font-size: 19px; }

.epmc-drawer-backdrop { position: fixed; z-index: 1000000; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(2px); }
.epmc-address-drawer { position: fixed; z-index: 1000001; top: 0; right: 0; display: flex; flex-direction: column; width: min(480px, 100vw); height: 100vh; height: 100dvh; transform: translateX(100%); border-left: 1px solid var(--epmc-border-strong); background: var(--epmc-bg-2); box-shadow: -20px 0 60px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.epmc-address-drawer.is-open { transform: translateX(0); }
.epmc-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px; border-bottom: 1px solid var(--epmc-border); }
.epmc-drawer-head h2 { margin: 0; font: 23px/1.15 var(--epmc-display); }
.epmc-icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--epmc-border-strong); border-radius: 7px; background: transparent; color: var(--epmc-muted); cursor: pointer; font-size: 22px; line-height: 1; }
.epmc-icon-button:hover { color: var(--epmc-text); }
.epmc-address-form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.epmc-drawer-body { flex: 1; padding: 25px; overflow-y: auto; }
.epmc-drawer-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 25px; border-top: 1px solid var(--epmc-border); }

.epmc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.epmc-settings-card label, .epmc-address-form label { display: block; margin-bottom: 15px; }
.epmc-settings-card label > span, .epmc-address-form label > span { display: block; margin-bottom: 6px; color: var(--epmc-muted); font-size: 11px; font-weight: 500; }
.epmc-settings-card input, .epmc-settings-card select, .epmc-address-form input, .epmc-address-form select { display: block; width: 100%; height: 39px; padding: 0 11px; outline: none; border: 1px solid var(--epmc-border-strong); border-radius: 7px; background: var(--epmc-bg-3); color: var(--epmc-text); font-size: 12px; transition: border-color .18s, box-shadow .18s; }
.epmc-settings-card input:focus, .epmc-settings-card select:focus, .epmc-address-form input:focus, .epmc-address-form select:focus { border-color: var(--epmc-gold); box-shadow: 0 0 0 3px var(--epmc-gold-glow); }
.epmc-settings-card input:hover, .epmc-settings-card select:hover, .epmc-address-form input:hover, .epmc-address-form select:hover { border-color: rgba(255,255,255,.22); }

.epmc-cashback-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 178px; margin-bottom: 20px; padding: 28px 30px; border: 1px solid var(--epmc-gold-border); border-radius: var(--epmc-radius); background: radial-gradient(circle at 90% 50%, var(--epmc-gold-glow), transparent 31%), var(--epmc-bg-2); }
.epmc-cashback-hero > div:first-child > span, .epmc-cashback-hero small { display: block; color: var(--epmc-muted); font-size: 12px; }
.epmc-cashback-hero strong { display: block; margin: 3px 0; color: var(--epmc-gold-light); font: 44px/1.15 var(--epmc-display); }
.epmc-cashback-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.epmc-cashback-actions > span { max-width: 175px; color: var(--epmc-dim); font-size: 10px; text-align: right; }
.epmc-cashback-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.epmc-transaction-list { margin-top: 9px; }
.epmc-transaction { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 10px; min-height: 64px; border-bottom: 1px solid var(--epmc-border); }
.epmc-transaction:last-child { border: 0; }
.epmc-transaction-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 17px; font-weight: 300; }
.epmc-transaction-icon.is-positive { background: var(--epmc-green-soft); color: var(--epmc-green); }
.epmc-transaction-icon.is-negative { background: var(--epmc-red-soft); color: var(--epmc-red); }
.epmc-transaction strong, .epmc-transaction small { display: block; }
.epmc-transaction strong { color: var(--epmc-text); font-size: 12px; font-weight: 500; }
.epmc-transaction small { overflow: hidden; margin-top: 2px; color: var(--epmc-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.epmc-transaction > b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.epmc-transaction > b.is-positive { color: var(--epmc-green); }
.epmc-transaction > b.is-negative { color: var(--epmc-red); }
.epmc-info-panel { margin-bottom: 20px; padding: 14px 17px; border: 1px solid var(--epmc-amber); border-radius: 9px; background: var(--epmc-amber-soft); color: var(--epmc-amber); }
.epmc-info-panel strong { font-size: 12px; }
.epmc-info-panel p { margin: 3px 0 0; color: var(--epmc-muted); font-size: 11px; }

.epmc-settings-columns { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr); gap: 20px; align-items: start; }
.epmc-settings-card { margin-bottom: 20px; }
.epmc-settings-card h2 { margin-bottom: 17px; }
.epmc-card-help { margin: -8px 0 18px; color: var(--epmc-dim); font-size: 11px; }
.epmc-settings-card label .epmc-card-help { margin: 5px 0 0; }
.epmc-settings-card [data-epmc-person-fields] { margin-bottom: 15px; }
.epmc-settings-card [data-epmc-person-fields][hidden] { display: none !important; }
.epmc-toggle-row { position: relative; display: flex !important; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; margin: 0 !important; border-bottom: 1px solid var(--epmc-border); cursor: pointer; }
.epmc-toggle-row:last-child { border-bottom: 0; }
.epmc-toggle-row span { margin: 0 !important; }
.epmc-toggle-row strong, .epmc-toggle-row small { display: block; }
.epmc-toggle-row strong { color: var(--epmc-text); font-size: 12px; font-weight: 500; }
.epmc-toggle-row small { margin-top: 2px; color: var(--epmc-dim); font-size: 10px; }
.epmc-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.epmc-toggle-row i { position: relative; width: 37px; height: 20px; flex: 0 0 37px; border: 1px solid var(--epmc-border-strong); border-radius: 12px; background: var(--epmc-bg-3); transition: .18s ease; }
.epmc-toggle-row i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--epmc-dim); transition: .18s ease; }
.epmc-toggle-row input:checked + i { border-color: var(--epmc-gold); background: var(--epmc-gold-glow); }
.epmc-toggle-row input:checked + i::after { transform: translateX(17px); background: var(--epmc-gold-light); }
.epmc-save-button { margin-top: 3px; min-width: 170px; }

.epmc-twofa-panel { margin-top: 20px; }
.epmc-twofa-panel .epmc-card-heading { align-items: flex-start; }
.epmc-twofa-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid var(--epmc-border-strong); border-radius: 999px; color: var(--epmc-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.epmc-twofa-badge.is-on { border-color: rgba(34,197,94,.32); background: var(--epmc-green-soft); color: var(--epmc-green); }
.epmc-twofa-badge.is-off { border-color: rgba(245,158,11,.32); background: var(--epmc-amber-soft); color: var(--epmc-amber); }
.epmc-twofa-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 20px; }
.epmc-twofa-summary span { min-width: 0; padding: 13px 14px; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); }
.epmc-twofa-summary strong, .epmc-twofa-summary small { display: block; }
.epmc-twofa-summary strong { color: var(--epmc-text); font-size: 12px; font-weight: 600; }
.epmc-twofa-summary small { margin-top: 3px; color: var(--epmc-dim); font-size: 11px; overflow-wrap: anywhere; }
.epmc-twofa-method-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, auto); gap: 14px; align-items: center; margin-bottom: 20px; padding: 15px; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); }
.epmc-twofa-method-row strong, .epmc-twofa-method-row small { display: block; }
.epmc-twofa-method-row strong { color: var(--epmc-text); font-size: 12px; font-weight: 600; }
.epmc-twofa-method-row small { margin-top: 3px; color: var(--epmc-dim); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.epmc-twofa-email-form { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; }
.epmc-twofa-email-form input { width: 190px; height: 39px; padding: 0 11px; outline: none; border: 1px solid var(--epmc-border-strong); border-radius: 7px; background: var(--epmc-bg-2); color: var(--epmc-text); font-size: 12px; }
.epmc-twofa-email-form input:focus { border-color: var(--epmc-gold); box-shadow: 0 0 0 3px var(--epmc-gold-glow); }
.epmc-twofa-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.epmc-twofa-qr { display: grid; place-items: center; width: 202px; height: 202px; overflow: hidden; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: #fff; color: #111; font-size: 13px; font-weight: 700; }
.epmc-twofa-qr canvas, .epmc-twofa-qr img { display: block; width: 200px; height: 200px; }
.epmc-twofa-qr.is-error { padding: 18px; background: var(--epmc-red-soft); color: var(--epmc-red); text-align: center; line-height: 1.4; }
.epmc-twofa-setup-copy code { display: block; margin: 0 0 14px; padding: 12px 13px; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-text); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.epmc-twofa-enable-form, .epmc-twofa-disable-form { margin: 0; }
.epmc-twofa-reset-form { margin: 8px 0 0; }
.epmc-twofa-enable-form label, .epmc-twofa-disable-form label, .epmc-twofa-login-form label { display: block; margin-bottom: 13px; }
.epmc-twofa-enable-form label > span, .epmc-twofa-disable-form label > span, .epmc-twofa-login-form label > span { display: block; margin-bottom: 6px; color: var(--epmc-muted); font-size: 11px; font-weight: 500; }
.epmc-twofa-enable-form input, .epmc-twofa-disable-form input, .epmc-twofa-login-form input { display: block; width: 100%; height: 39px; padding: 0 11px; outline: none; border: 1px solid var(--epmc-border-strong); border-radius: 7px; background: var(--epmc-bg-3); color: var(--epmc-text); font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.epmc-twofa-enable-form input:focus, .epmc-twofa-disable-form input:focus, .epmc-twofa-login-form input:focus { border-color: var(--epmc-gold); box-shadow: 0 0 0 3px var(--epmc-gold-glow); }
.epmc-twofa-login-form { margin-top: 20px; }
.epmc-twofa-login-copy { margin-bottom: 16px; padding: 14px; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); }
.epmc-twofa-login-copy strong { display: block; color: var(--epmc-text); font-size: 14px; }
.epmc-twofa-login-copy p { margin: 5px 0 0; color: var(--epmc-muted); font-size: 12px; line-height: 1.55; }
.epmc-twofa-method-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.epmc-twofa-method-choice label { position: relative; margin: 0; }
.epmc-twofa-method-choice input { position: absolute; opacity: 0; pointer-events: none; }
.epmc-twofa-method-choice span { display: flex; align-items: center; justify-content: center; min-height: 37px; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: .18s ease; }
.epmc-twofa-method-choice input:focus-visible + span { outline: 2px solid var(--epmc-gold-light); outline-offset: 3px; }
.epmc-twofa-method-choice input:checked + span { border-color: var(--epmc-gold-border); background: var(--epmc-gold-glow); color: var(--epmc-gold-light); }
.epmc-twofa-login-form .epmc-primary-button { width: 100%; }
.epmc-twofa-resend-form { margin: 10px 0 0; text-align: center; }
.epmc-twofa-cancel { display: inline-flex; margin-top: 13px; color: var(--epmc-gold-light); font-size: 12px; font-weight: 600; }
.epmc-twofa-unavailable { margin: 0; }

.epmc-body .woocommerce-message, .epmc-body .woocommerce-error, .epmc-body .woocommerce-info { margin: 0 0 18px; padding: 12px 15px; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-muted); font-size: 12px; }
.epmc-body .woocommerce-error { border-color: var(--epmc-red); color: var(--epmc-red); }
.epmc-body .woocommerce-message { border-color: var(--epmc-green); color: var(--epmc-green); }
.epmc-body .woocommerce-message::before, .epmc-body .woocommerce-error::before, .epmc-body .woocommerce-info::before { display: none; }
.epmc-body .woocommerce-notices-wrapper ul { margin-left: 0; }

.epmc-login-shell { display: grid; min-height: 100vh; padding: 30px; place-items: center; background: radial-gradient(circle at 75% 25%, var(--epmc-gold-glow), transparent 29%), var(--epmc-bg); }
.epmc-login-card { width: min(470px,100%); padding: 35px; border: 1px solid var(--epmc-border-strong); border-radius: 16px; background: var(--epmc-bg-2); }
.epmc-login-card > p:not(.epmc-eyebrow) { margin: 10px 0 25px; color: var(--epmc-muted); }
.epmc-login-card .woocommerce-form { margin: 0; border: 0; padding: 0; }
.epmc-login-card .woocommerce-form-row { margin-bottom: 15px; }
.epmc-login-card label { color: var(--epmc-muted); font-size: 12px; }
.epmc-login-card input.input-text { height: 41px; margin-top: 5px; border: 1px solid var(--epmc-border-strong); border-radius: 7px; background: var(--epmc-bg-3); color: var(--epmc-text); }
.epmc-login-card .woocommerce-button { border: 0; border-radius: 7px; background: var(--epmc-gold); color: #201b10; }
.epmc-login-card a { color: var(--epmc-gold-light); }
.epmc-auth-form { margin: 0; }
.epmc-auth-form .epmc-primary-button { width: 100%; }
.epmc-auth-feedback { margin: 0 0 16px; padding: 12px 13px; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-muted); font-size: 12px; line-height: 1.45; }
.epmc-auth-feedback.is-error { border-color: var(--epmc-red); color: var(--epmc-red); }
.epmc-auth-feedback.is-success { border-color: var(--epmc-green); color: var(--epmc-green); }
.epmc-auth-feedback.is-notice { border-color: var(--epmc-gold-border); color: var(--epmc-gold-light); }
.epmc-auth-field { display: block; margin-bottom: 14px; }
.epmc-auth-field > span { display: block; margin-bottom: 6px; color: var(--epmc-muted); font-size: 12px; font-weight: 600; }
.epmc-auth-field input, .epmc-auth-field select { display: block; width: 100%; height: 41px; padding: 0 12px; outline: none; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-text); font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.epmc-auth-field input:focus, .epmc-auth-field select:focus { border-color: var(--epmc-gold); box-shadow: 0 0 0 3px var(--epmc-gold-glow); }
.epmc-auth-field small { display: none; margin-top: 5px; color: var(--epmc-red); font-size: 11px; }
.epmc-auth-field.has-error small { display: block; }
.epmc-auth-field.has-error input, .epmc-auth-field.has-error select, .epmc-auth-field input.error { border-color: var(--epmc-red); }
.epmc-auth-check { display: flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--epmc-muted); font-size: 12px; }
.epmc-auth-check input { width: 16px; height: 16px; accent-color: var(--epmc-gold); }
.epmc-auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--epmc-muted); font-size: 12px; }
.epmc-auth-links a { color: var(--epmc-gold-light); font-weight: 600; }
.epmc-auth-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.epmc-auth-progress span { height: 5px; border-radius: 999px; background: var(--epmc-bg-3); }
.epmc-auth-progress span.is-active, .epmc-auth-progress span.is-done { background: var(--epmc-gold); box-shadow: 0 0 0 2px var(--epmc-gold-glow); }
.epmc-auth-step { display: none; }
.epmc-auth-step.is-active { display: block; }
.epmc-step-label { margin: 0 0 12px; color: var(--epmc-gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.epmc-auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.epmc-auth-row .epmc-primary-button, .epmc-auth-row .epmc-outline-button { width: 100%; }
.epmc-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.epmc-reset-panel { margin-top: 2px; }
.epmc-reset-note { margin: 0 0 15px; padding: 12px 13px; border: 1px solid var(--epmc-border); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-muted); font-size: 12px; line-height: 1.55; }
.epmc-reset-code-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.epmc-reset-code-grid input { width: 100%; height: 46px; padding: 0; border: 1px solid var(--epmc-border-strong); border-radius: 8px; background: var(--epmc-bg-3); color: var(--epmc-text); font-size: 20px; font-weight: 700; text-align: center; outline: none; transition: border-color .18s, box-shadow .18s; }
.epmc-reset-code-grid input:focus { border-color: var(--epmc-gold); box-shadow: 0 0 0 3px var(--epmc-gold-glow); }
.epmc-reset-code-grid input.is-filled { border-color: var(--epmc-gold-border); }
.epmc-reset-code-grid input.error { border-color: var(--epmc-red); }
.epmc-reset-resend-form { margin: 10px 0 0; text-align: center; }

@media (max-width: 1080px) {
  .epmc-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .epmc-settings-columns { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .epmc-sidebar { width: 62px; }
  .epmc-profile { padding: 21px 5px; text-align: center; }
  .epmc-avatar { width: 38px; height: 38px; margin: 0 auto; font-size: 17px; }
  .epmc-user-name, .epmc-user-email, .epmc-cashback-chip, .epmc-nav-label, .epmc-nav-item > span:not(.epmc-nav-icon), .epmc-nav-item b, .epmc-logout:not(span) { display: none; }
  .epmc-nav { padding: 13px 7px; }
  .epmc-nav-item { justify-content: center; padding: 10px 4px; }
  .epmc-nav-icon { width: auto; }
  .epmc-sidebar-footer { padding: 12px 7px; }
  .epmc-logout { justify-content: center; padding: 9px; }
  .epmc-main { margin-left: 62px; }
  .epmc-topbar { padding: 0 22px; }
  .epmc-content { padding: 29px 22px 42px; }
  .epmc-dashboard-content { min-height: auto; }
  .epmc-two-columns, .epmc-address-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .epmc-topbar { min-height: 60px; padding: 0 16px; }
  .epmc-store-link { font-size: 0; }
  .epmc-store-link span { font-size: 18px; }
  .epmc-content { padding: 25px 15px 35px; }
  .epmc-page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .epmc-page-heading h1 { font-size: 29px; }
  .epmc-stats-grid, .epmc-cashback-stats { grid-template-columns: 1fr 1fr; }
  .epmc-stat-card { min-height: 116px; padding: 15px; }
  .epmc-stat-card > strong { font-size: 20px; }
  .epmc-card { padding: 18px; }
  .epmc-cashback-overview { gap: 15px; }
  .epmc-ring { width: 93px; height: 93px; flex-basis: 93px; }
  .epmc-ring span { font-size: 20px; }
  .epmc-order-hero, .epmc-cashback-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .epmc-cashback-hero strong { font-size: 37px; }
  .epmc-cashback-actions { align-items: flex-start; }
  .epmc-cashback-actions > span { text-align: left; }
  .epmc-timeline { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .epmc-timeline > div { flex-direction: row; justify-content: flex-start; text-align: left; }
  .epmc-timeline > div:not(:last-child)::after { top: 29px; left: 14px; width: 1px; height: 22px; }
  .epmc-form-grid { grid-template-columns: 1fr; gap: 0; }
  .epmc-twofa-panel .epmc-card-heading { flex-direction: column; }
  .epmc-twofa-summary, .epmc-twofa-setup { grid-template-columns: 1fr; }
  .epmc-twofa-method-row { grid-template-columns: 1fr; }
  .epmc-twofa-email-form { align-items: stretch; flex-direction: column; }
  .epmc-twofa-email-form input { width: 100%; }
  .epmc-twofa-qr { width: min(202px, 100%); }
  .epmc-twofa-enable-form .epmc-primary-button, .epmc-twofa-disable-form .epmc-outline-button, .epmc-twofa-email-form .epmc-primary-button, .epmc-twofa-email-form .epmc-outline-button { width: 100%; }
  .epmc-order-item { grid-template-columns: 42px 1fr; }
  .epmc-order-item > b { grid-column: 2; }
  .epmc-login-shell { padding: 16px; }
  .epmc-login-card { padding: 25px; }
  .epmc-auth-links { align-items: flex-start; flex-direction: column; }
  .epmc-auth-row { grid-template-columns: 1fr; }
  .epmc-reset-code-grid { gap: 6px; }
  .epmc-reset-code-grid input { height: 42px; font-size: 18px; }
}

@media (max-width: 640px) {
  .epmc-app { padding-bottom: 72px; }
  .epmc-sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    min-height: 64px;
    border-top: 1px solid var(--epmc-border-strong);
    border-right: 0;
    box-shadow: 0 -12px 34px rgba(0,0,0,.28);
  }
  .epmc-profile, .epmc-sidebar-footer, .epmc-nav-label { display: none; }
  .epmc-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    flex: none;
    width: 100%;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .epmc-nav-item {
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 9px 4px;
    border-radius: 12px;
  }
  .epmc-nav-item > span:not(.epmc-nav-icon), .epmc-nav-item b { display: none; }
  .epmc-nav-icon, .epmc-nav-icon svg { width: 20px; height: 20px; }
  .epmc-main {
    margin-left: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .epmc-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .epmc-topbar > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .epmc-content {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }
  .epmc-card, .epmc-stat-card, .epmc-address-card {
    overflow-wrap: anywhere;
  }
  .epmc-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .epmc-filters button {
    width: 100%;
    padding: 0 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .epmc-orders-table tbody tr {
    grid-template-columns: 1fr;
    grid-template-areas:
      "order"
      "date"
      "total"
      "status"
      "action";
    gap: 6px;
  }
  .epmc-orders-table td:nth-child(3),
  .epmc-orders-table td:nth-child(4) {
    text-align: left;
  }
  .epmc-orders-table td:nth-child(3)::before {
    display: inline;
    margin: 0 6px 0 0;
  }
  .epmc-status {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  .epmc-order-hero-side {
    align-items: flex-start;
    width: 100%;
  }
  .epmc-order-hero-side .epmc-pay-button {
    width: 100%;
  }
  .epmc-cashback-overview {
    align-items: flex-start;
    flex-direction: column;
  }
  .epmc-address-card {
    min-height: 210px;
    padding-bottom: 72px;
  }
  .epmc-address-card .epmc-small-button {
    right: 22px;
    width: calc(100% - 44px);
  }
  .epmc-address-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .epmc-drawer-head, .epmc-drawer-body, .epmc-drawer-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
  .epmc-drawer-footer {
    flex-direction: column-reverse;
    background: var(--epmc-bg-2);
  }
  .epmc-drawer-footer .epmc-primary-button,
  .epmc-drawer-footer .epmc-outline-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .epmc-topbar { padding: 0 12px; }
  .epmc-content { padding: 22px 12px 32px; }
  .epmc-page-heading h1 { font-size: 26px; }
  .epmc-stats-grid, .epmc-cashback-stats { grid-template-columns: 1fr; }
  .epmc-card { padding: 16px; }
  .epmc-filters { grid-template-columns: 1fr; }
  .epmc-order-hero, .epmc-cashback-hero { padding: 17px; }
  .epmc-cashback-hero strong { font-size: 31px; }
  .epmc-tracking-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .epmc-tracking-list a small { white-space: normal; }
}

body.epmc-customer-area-page {
  overflow-x: hidden;
}

.epmc-page-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: auto;
  isolation: auto;
}

body.epmc-with-site-frame .epmc-app:not(.epmc-theme-v2):not(.epmc-theme-v3):not(.epmc-theme-v4):not(.epmc-theme-v5) {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: start;
  min-height: auto;
}

body.epmc-with-site-frame .epmc-theme-v3.epmc-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  min-height: auto;
}

body.epmc-with-site-frame .epmc-sidebar {
  position: sticky;
  inset: auto;
  top: 24px;
  height: auto;
  max-height: calc(100vh - 48px);
}

body.epmc-with-site-frame .epmc-main {
  min-height: auto;
  margin-left: 0;
}

body.epmc-with-site-frame .epmc-login-shell {
  min-height: min(760px, 100vh);
}

@media (max-width: 780px) {
  body.epmc-with-site-frame .epmc-app:not(.epmc-theme-v2):not(.epmc-theme-v3):not(.epmc-theme-v4):not(.epmc-theme-v5) {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  body.epmc-with-site-frame .epmc-theme-v3.epmc-app {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  body.epmc-with-site-frame .epmc-main {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body.epmc-with-site-frame .epmc-app:not(.epmc-theme-v2):not(.epmc-theme-v3):not(.epmc-theme-v4):not(.epmc-theme-v5),
  body.epmc-with-site-frame .epmc-theme-v3.epmc-app {
    display: block;
    padding-bottom: 72px;
  }

  body.epmc-with-site-frame .epmc-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 64px;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epmc-body *, .epmc-body *::before, .epmc-body *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
