@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-ext-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-ext-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --status-bg: #0b0c0e;
  --status-surface: #121519;
  --status-surface-strong: #181c21;
  --status-border: #2a3037;
  --status-border-strong: #4b535e;
  --status-text: #f4f4f5;
  --status-muted: #a2a8b3;
  --status-contrast: #ffffff;
  --status-focus: #f4f4f5;
}

:root[data-theme="light"] {
  color-scheme: light;
  --status-bg: #f3f4f6;
  --status-surface: #ffffff;
  --status-surface-strong: #f7f7f8;
  --status-border: #d4d6da;
  --status-border-strong: #777e87;
  --status-text: #111214;
  --status-muted: #5c626b;
  --status-contrast: #111214;
  --status-focus: #111214;
}

* { box-sizing: border-box; }

html,
body { min-width: 0; min-height: 100%; }

body.commerce-status-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--status-text);
  background: var(--status-bg);
  font-family: "PlfSans", Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button { font: inherit; }

.order-status-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 78px;
  margin: 18px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--status-border);
  border-radius: 6px;
  background: var(--status-surface);
}

.order-status-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--status-text);
  text-decoration: none;
}

.order-status-brand img { width: 48px; height: 48px; object-fit: contain; }
.order-status-brand span { display: grid; gap: 2px; }
.order-status-brand strong { font-size: 1rem; line-height: 1.2; }
.order-status-brand small { color: var(--status-muted); font-size: .76rem; line-height: 1.25; }

.order-status-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-nav a,
.order-status-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--status-border);
  border-radius: 5px;
  color: var(--status-text);
  background: var(--status-surface-strong);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.order-status-main {
  width: min(820px, calc(100% - 40px));
  margin: clamp(54px, 9vw, 104px) auto 64px;
}

.order-status-intro { margin-bottom: 28px; }
.order-status-intro > p:first-child,
.order-status-eyebrow {
  margin: 0 0 10px;
  color: var(--status-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.order-status-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.order-status-intro > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--status-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.order-status-surface,
.order-status-state,
.order-status-result { min-width: 0; }

.order-status-surface { min-height: 210px; }

.order-status-state,
.order-status-result {
  padding: clamp(24px, 6vw, 46px);
  border: 1px solid var(--status-border);
  border-radius: 8px;
  background: var(--status-surface);
}

.order-status-state h2,
.order-status-result h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.2;
}

.order-status-state > p,
.order-status-result > p:not(.order-status-eyebrow):not(.order-status-code) {
  margin: 13px 0 0;
  color: var(--status-muted);
  line-height: 1.65;
}

.order-status-code {
  margin: 0 0 24px;
  padding-bottom: 22px;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--status-border);
}

.order-status-code span { color: var(--status-muted); font-size: .85rem; }
.order-status-code strong { overflow-wrap: anywhere; font-size: 1.2rem; }
.order-status-copy {
  width: fit-content;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--status-border-strong);
  border-radius: 999px;
  color: var(--status-text);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.order-status-copy:hover { background: var(--status-soft); }
.order-status-copy:disabled { cursor: wait; opacity: .72; }
.order-status-copy-source { position: fixed; left: -9999px; top: 0; }
.order-status-support-copy { margin: 2px 0 0; color: var(--status-muted); font-size: .92rem; line-height: 1.55; }

.order-status-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-status-action { border-color: var(--status-contrast); color: var(--status-bg); background: var(--status-contrast); }
.order-status-action--secondary { color: var(--status-text); background: transparent; border-color: var(--status-border-strong); }
.order-status-action--whatsapp { border-color: #25d366; color: #ffffff; background: #0f773e; }
.order-status-action[hidden] { display: none; }

.order-status-timeline {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.order-status-timeline li {
  min-height: 52px;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--status-muted);
  line-height: 1.45;
}

.order-status-timeline li:not(:last-child)::after {
  width: 2px;
  position: absolute;
  top: 28px;
  bottom: -4px;
  left: 15px;
  content: "";
  background: var(--status-border);
}

.order-status-step-marker {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--status-border-strong);
  border-radius: 50%;
  background: var(--status-surface);
  font-size: .78rem;
  font-weight: 700;
}

.order-status-timeline .is-done,
.order-status-timeline .is-current { color: var(--status-text); font-weight: 700; }
.order-status-timeline .is-done .order-status-step-marker { color: var(--status-bg); background: var(--status-contrast); border-color: var(--status-contrast); }
.order-status-timeline .is-done:not(:last-child)::after { background: var(--status-contrast); }
.order-status-timeline .is-current .order-status-step-marker { border: 3px solid var(--status-contrast); color: var(--status-text); }

.order-status-spinner {
  width: 30px;
  height: 30px;
  margin: 0 0 20px;
  display: block;
  border: 3px solid var(--status-border);
  border-top-color: var(--status-contrast);
  border-radius: 50%;
  animation: order-status-spin .8s linear infinite;
}

@keyframes order-status-spin { to { transform: rotate(360deg); } }

:where(a, button):focus-visible {
  outline: 3px solid var(--status-focus);
  outline-offset: 3px;
}

@media (hover: hover) {
  .order-status-nav a:hover,
  .order-status-action--secondary:hover { border-color: var(--status-contrast); }
  .order-status-action:not(.order-status-action--secondary):not(.order-status-action--whatsapp):hover { opacity: .84; }
  .order-status-action--whatsapp:hover { background: #0d6836; }
}

@media (max-width: 640px) {
  .order-status-header { width: min(100% - 24px, 1120px); min-height: 70px; margin-top: 12px; padding: 10px 12px; }
  .order-status-brand img { width: 44px; height: 44px; }
  .order-status-brand small { display: none; }
  .order-status-nav a:first-child { display: none; }
  .order-status-main { width: min(100% - 24px, 820px); margin-top: 46px; }
  .order-status-state,
  .order-status-result { padding: 24px 20px; }
  .order-status-actions { display: grid; grid-template-columns: 1fr; }
  .order-status-action { width: 100%; }
}

@media (max-width: 350px) {
  .order-status-brand strong { font-size: .9rem; }
  .order-status-nav a { padding-inline: 12px; }
}

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