:root {
  --correios-blue: #004a8f;
  --correios-blue-dark: #003869;
  --correios-blue-light: #0071ad;
  --correios-yellow: #ffcd00;
  --correios-yellow-dark: #e6b800;
  --correios-blue-muted: #e8f0fa;
  --correios-gray: #6c757d;
  --correios-gray-light: #f4f5f7;
  --correios-dark: #1a1a1a;
  --correios-white: #ffffff;
  --correios-radius: 6px;
  --correios-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --correios-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --correios-font: 'Montserrat', 'Segoe UI', sans-serif;
  --correios-max: 420px;
  --correios-content: 560px;
  --correios-gutter: 20px;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 74, 143, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(0, 74, 143, 0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--correios-font);
  color: var(--correios-dark);
  background: var(--correios-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.5s ease both;
  transition: opacity 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

input, select, textarea, button {
  font-family: var(--correios-font);
  font-size: 16px;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/* ── Layout helpers ── */
.cr-container {
  width: 100%;
  max-width: var(--correios-content);
  margin: 0 auto;
  padding-left: var(--correios-gutter);
  padding-right: var(--correios-gutter);
}

body.cr-landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f4f5f7;
}

.cr-main {
  flex: 1;
}

.cr-landing-body {
  padding-top: 20px;
  padding-bottom: 28px;
}

/* ── Header ── */
.cr-header {
  background: var(--correios-white);
  border-bottom: 3px solid var(--correios-yellow);
  box-shadow: var(--correios-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cr-header__bar {
  background: var(--correios-gray-light);
  padding: 5px var(--correios-gutter);
  font-size: 11px;
  color: var(--correios-blue);
  font-weight: 500;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cr-header__nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px var(--correios-gutter);
  min-height: 52px;
}

.cr-header__logo {
  justify-self: center;
  display: flex;
  align-items: center;
}

.cr-header__logo img {
  height: 30px;
  object-fit: contain;
}

.cr-header__menu {
  width: 36px;
  height: 36px;
  border: 1.5px solid #d0d0d0;
  border-radius: var(--correios-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}

.cr-header__menu span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--correios-blue);
  border-radius: 1px;
}

.cr-header__login {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--correios-blue-dark);
}

.cr-header__login span {
  display: none;
}

@media (min-width: 768px) {
  .cr-header__nav {
    grid-template-columns: 48px 1fr 120px;
    min-height: 56px;
  }

  .cr-header__logo img {
    height: 36px;
  }

  .cr-header__login span {
    display: inline;
  }

  .cr-header__login {
    font-size: 13px;
    gap: 6px;
    border-left: 1px solid #ddd;
    padding-left: 14px;
  }
}

/* ── Messages ── */
#message {
  display: none;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border-radius: var(--correios-radius);
  padding: 10px 14px;
}

#message.error,
#message.success {
  display: block;
}

#message.error {
  color: #c0392b;
  background: #fdecea;
}

#message.success {
  color: var(--correios-blue-dark);
  background: var(--correios-blue-muted);
}

/* ── Landing: Rastreio section ── */
.cr-rastreio {
  background: linear-gradient(160deg, var(--correios-blue) 0%, var(--correios-blue-dark) 100%);
  padding: 32px 0 36px;
}

.cr-rastreio__inner {
  text-align: center;
}

.cr-rastreio__title {
  color: var(--correios-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cr-rastreio__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.cr-form-card {
  background: var(--correios-white);
  border-radius: 10px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr-form__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--correios-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.cr-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--correios-radius);
  outline: none;
  color: var(--correios-dark);
  transition: border-color 0.2s;
}

.cr-form input:focus {
  border-color: var(--correios-blue);
}

.cr-form input::placeholder {
  color: #bbb;
}

.cr-form button {
  width: 100%;
  height: 48px;
  background: var(--correios-blue);
  color: var(--correios-white);
  border: none;
  border-radius: var(--correios-radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}

.cr-form button:hover {
  background: var(--correios-blue-dark);
}

/* ── Banner ── */
.cr-banner {
  margin-bottom: 20px;
}

.cr-banner img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--correios-shadow);
}

/* ── Info section ── */
.cr-info {
  margin: 0;
}

.cr-info-card {
  background: var(--correios-white);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: var(--correios-shadow);
  border: 1px solid #e8ecf0;
}

.cr-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--correios-blue-dark);
  margin-bottom: 16px;
  text-align: left;
}

.cr-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.cr-info-list li i {
  color: var(--correios-blue);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Footer ── */
.cr-footer {
  padding: 28px 0 16px;
  margin-top: auto;
}

.cr-footer--dark {
  background: var(--correios-blue-dark);
  color: rgba(255, 255, 255, 0.85);
}

.cr-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cr-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .cr-footer__col--hide-mobile {
    display: block;
  }
}

.cr-footer__col--hide-mobile {
  display: none;
}

.cr-footer h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--correios-white);
}

.cr-footer--dark a {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.2s;
}

.cr-footer--dark a:hover {
  color: var(--correios-white);
}

.cr-footer__copy {
  text-align: center;
  font-size: 11px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Verificar page ── */
.cr-verify {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 20px;
  max-width: var(--correios-max);
  margin: 0 auto;
  width: 100%;
  min-height: calc(100vh - 60px);
}

.cr-verify__logo {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeDown 0.5s ease both;
}

.cr-verify__logo img {
  height: 40px;
  margin: 0 auto 8px;
}

.cr-verify__logo .company {
  font-size: 14px;
  font-weight: 700;
  color: var(--correios-dark);
}

.cr-verify__logo .sub {
  font-size: 10px;
  color: #999;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.cr-status-text {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
  min-height: 16px;
  transition: opacity 0.4s ease;
}

.cr-doc-card {
  background: var(--correios-white);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: var(--correios-shadow);
  animation: fadeUp 0.4s ease 0.2s both;
}

.cr-doc-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #b0b0b0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cr-doc-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--correios-dark);
  letter-spacing: 1px;
}

.cr-steps-card {
  background: var(--correios-white);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: var(--correios-shadow);
  animation: fadeUp 0.4s ease 0.3s both;
}

.cr-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  opacity: 0.12;
  transition: opacity 0.6s ease;
}

.cr-step.active { opacity: 1; }
.cr-step.completed { opacity: 0.45; }

.cr-step + .cr-step {
  border-top: 1px solid #f5f5f5;
}

.cr-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
}

.cr-step-icon.done {
  background: var(--correios-blue-muted);
  color: var(--correios-blue);
}

.cr-step-icon.loading {
  border: 2px solid #eee;
  border-top-color: var(--correios-blue);
  animation: spin 0.7s linear infinite;
}

.cr-step-icon.waiting {
  background: #f5f5f5;
  color: #d5d5d5;
}

.cr-step-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #333;
}

.cr-progress-area {
  width: 100%;
  margin-bottom: 24px;
  animation: fadeUp 0.4s ease 0.4s both;
}

.cr-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: 600;
}

.cr-progress-track {
  width: 100%;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.cr-progress-fill {
  height: 100%;
  background: var(--correios-blue);
  border-radius: 2px;
  width: 0%;
  transition: width 1s ease;
}

.cr-meta {
  text-align: center;
  animation: fadeUp 0.4s ease 0.5s both;
}

.cr-proto {
  font-size: 10px;
  color: #c0c0c0;
  font-weight: 500;
}

.cr-proto span {
  color: #888;
}

.cr-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9px;
  color: #aaa;
  font-weight: 600;
  margin-top: 5px;
}

.cr-page-foot {
  text-align: center;
  padding: 16px;
  font-size: 9px;
  color: #ccc;
}

.cr-top-bar {
  background: var(--correios-yellow);
  height: 3px;
  width: 100%;
}

/* ── Consulta / App page ── */
body.cr-app {
  background: #f0f2f5;
}

.cr-app-top {
  background: #f0f2f5;
  padding: 12px 0 16px;
  border-bottom: 1px solid #e2e6ea;
}

.cr-hero {
  background: var(--correios-blue-dark);
  padding: 18px 20px 0;
  text-align: center;
}

.cr-hero::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--correios-yellow);
  margin-top: 20px;
}

.cr-hero h1 {
  color: var(--correios-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 4px;
}

.cr-hero .hero-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

.cr-body {
  max-width: var(--correios-content);
  padding: 14px 0 28px;
}

.cr-rastreio-card {
  background: var(--correios-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--correios-shadow);
  border: 1px solid #e4e8ec;
}

.cr-rastreio-card__head {
  background: var(--correios-blue-dark);
  color: var(--correios-white);
  padding: 10px 14px;
}

.cr-rastreio-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-items: end;
}

.cr-rastreio-card__status-label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2px;
}

.cr-rastreio-card__status-val {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cr-rastreio-card__status strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cr-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--correios-yellow);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.cr-rastreio-card__code strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  color: var(--correios-yellow);
  word-break: break-all;
}

.cr-rastreio-card__info {
  padding: 8px 14px;
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: #6b7280;
  border-bottom: 1px solid #eef0f2;
  background: var(--correios-white);
}

.cr-lead-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--correios-blue-dark);
  margin-bottom: 1px;
}

.cr-lead-cpf {
  font-size: 10px;
  color: #8b939e;
  font-weight: 500;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f2;
}

.cr-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.cr-lead-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cr-lead-field__label {
  color: var(--correios-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.4px;
  opacity: 0.65;
}

.cr-lead-field__value {
  color: #374151;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.35;
  word-break: break-word;
}

.cr-package {
  margin: 10px 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--correios-shadow);
  border: 1px solid #e4e8ec;
}

.cr-package__frame {
  position: relative;
}

.cr-package img {
  width: 100%;
  display: block;
}

/* Overlay na etiqueta — mesmo padrão JAD PRONTO VPS (Arial 600, sem fundo) */
.cr-package__destinatario {
  position: absolute;
  left: 20.8%;
  top: 36.2%;
  width: 62%;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.45vw;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.1px;
  line-height: 1.25;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  text-transform: uppercase;
}

@media (min-width: 420px) {
  .cr-package__destinatario {
    font-size: 6.5px;
  }
}

.cr-timeline-section {
  margin-top: 20px;
  background: var(--correios-white);
  border-radius: 10px;
  padding: 18px 18px 8px;
  box-shadow: var(--correios-shadow);
  border: 1px solid #e4e8ec;
}

.cr-timeline-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ccc;
  margin: 0 0 10px;
  padding-left: 2px;
}

.cr-timeline {
  padding: 0;
}

.cr-tl-item {
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
  position: relative;
}

.cr-tl-item:last-child {
  padding-bottom: 0;
}

.cr-tl-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #eee;
}

.cr-tl-item:last-child::before {
  display: none;
}

.cr-tl-item.done::before {
  background: var(--correios-blue);
}

.cr-tl-item.pending::before {
  background: #eee;
  overflow: hidden;
}

.cr-tl-item.pending::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 2px;
  height: 0;
  background: var(--correios-blue);
  z-index: 0;
  transition: height 1.8s ease-out;
}

.cr-tl-item.pending.animate-line::after {
  height: 50%;
}

.cr-tl-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--correios-blue);
  color: var(--correios-white);
  font-size: 16px;
  line-height: 1;
}

.cr-tl-dot.pending {
  animation: cr-pulse-alert 2s ease-in-out infinite;
}

@keyframes cr-pulse-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 74, 143, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(0, 74, 143, 0); }
}

.cr-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.cr-tl-body h4 {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin: 0 0 1px;
  line-height: 1.4;
}

.cr-tl-item:first-child .cr-tl-body h4 {
  color: var(--correios-blue);
}

.cr-tl-body p {
  font-size: 10px;
  color: #aaa;
  margin: 0 0 1px;
  line-height: 1.4;
}

.cr-tl-date {
  font-size: 9px;
  color: #ccc;
  font-weight: 500;
}

.cr-tl-delivery {
  margin-top: 4px;
  font-size: 10px;
  color: #777;
  background: #f9fafb;
  padding: 5px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--correios-yellow);
  line-height: 1.4;
}

.cr-tl-delivery strong {
  color: #333;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Modal / Overlay ── */
.cr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cr-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.cr-modal-wrap.active {
  pointer-events: auto;
}

.cr-modal {
  background: var(--correios-white);
  border-radius: 14px 14px 0 0;
  width: 100%;
  max-width: var(--correios-max);
  margin: 0 auto;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .cr-modal-wrap {
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  .cr-modal {
    border-radius: 14px;
    max-width: 440px;
  }
}

.cr-modal-strip {
  background: var(--correios-blue-dark);
  padding: 14px 18px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-modal-strip__icon {
  width: 32px;
  height: 32px;
  background: var(--correios-yellow);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--correios-blue-dark);
  font-size: 14px;
  flex-shrink: 0;
}

.cr-modal-strip__title {
  color: var(--correios-white);
  font-size: 12px;
  font-weight: 700;
}

.cr-modal-strip__sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  margin-top: 1px;
}

.cr-modal-body {
  padding: 18px;
}

.cr-modal-loader {
  text-align: center;
  padding: 24px 18px;
}

.cr-modal-loader h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--correios-blue);
  margin-bottom: 6px;
}

.cr-modal-loader p {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}

.cr-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 3px solid #eee;
  border-top-color: var(--correios-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.cr-modal-status {
  font-size: 11px;
  color: var(--correios-blue);
  font-weight: 500;
  min-height: 16px;
}

.cr-modal-progress {
  height: 3px;
  background: #eee;
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.cr-modal-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--correios-blue), var(--correios-yellow));
  width: 0%;
  transition: width 0.8s ease;
}

.cr-tracking-card {
  text-align: center;
}

.cr-tracking-card__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 4px;
}

.cr-tracking-card__code {
  font-size: 15px;
  font-weight: 700;
  color: var(--correios-blue);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cr-tracking-card img {
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto 12px;
  border-radius: 8px;
  box-shadow: var(--correios-shadow);
  object-fit: contain;
}

.cr-tracking-card__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--correios-blue-dark);
  margin-bottom: 16px;
}

.cr-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--correios-blue);
  color: var(--correios-white);
  border: none;
  border-radius: var(--correios-radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--correios-font);
}

.cr-btn:hover {
  background: var(--correios-blue-dark);
}

.cr-btn--blue {
  background: var(--correios-blue);
  color: var(--correios-white);
}

.cr-btn--blue:hover {
  background: var(--correios-blue-dark);
}

.cr-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  font-size: 10px;
  color: var(--correios-blue);
  font-weight: 500;
  opacity: 0.85;
}

.cr-breadcrumb i {
  font-size: 10px;
  opacity: 0.5;
}

/* ── ICMS box + countdown strip (padrão JAD, tema Correios) ── */
.cr-icms-box {
  display: flex;
  gap: 12px;
  background: #fff9f0;
  border: 1px solid #f0e0c8;
  border-left: 3px solid var(--correios-yellow);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 8px 0;
}

.cr-icms-box__icon {
  color: #e8a430;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cr-icms-box__text > strong {
  font-size: 12px;
  color: var(--correios-dark);
  display: block;
  margin-bottom: 6px;
}

.cr-icms-box__text p {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cr-countdown-strip {
  background: linear-gradient(135deg, var(--correios-blue), var(--correios-blue-dark));
  margin: -12px 8px 0;
  border-radius: 0 0 8px 8px;
  padding: 10px 14px;
  text-align: center;
  color: var(--correios-white);
  box-shadow: 0 3px 12px rgba(0, 74, 143, 0.25);
  position: relative;
  z-index: 2;
}

.cr-countdown-strip__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}

.cr-countdown-strip__timer {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.cr-lead-card {
  background: var(--correios-white);
  border-radius: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.cr-lead-info {
  font-size: 10px;
  color: #bbb;
  margin-top: 6px;
  line-height: 1.45;
  word-break: break-word;
}

.cr-tracking-ref {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--correios-white);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cr-tracking-ref__label {
  font-size: 10px;
  color: #999;
  font-weight: 500;
}

.cr-tracking-ref__code {
  font-size: 11px;
  color: var(--correios-dark);
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.cr-package__label {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 10px 12px 0;
  background: var(--correios-white);
}

/* ── Botão regularizar (compacto, centralizado — igual JAD) ── */
.cr-action-btn {
  display: block;
  width: auto;
  margin: 14px auto 0;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  background: var(--correios-blue);
  color: var(--correios-white);
  font-family: var(--correios-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.cr-action-btn:hover {
  background: var(--correios-blue-dark);
}

.cr-action-btn:active {
  background: #002a52;
}

.cr-action-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}

.cr-loader-button {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--correios-white);
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

/* ── Modal regularização (bottom sheet — padrão JAD) ── */
.cr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cr-modal-overlay.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.cr-modal-content {
  background: var(--correios-white);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-radius: 14px 14px 0 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@media (min-width: 768px) {
  .cr-modal-overlay.active {
    justify-content: center;
  }
  .cr-modal-content {
    border-radius: 14px;
    max-width: 420px;
  }
}

.cr-modal-header {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 8px 10px;
}

.cr-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--correios-white);
  line-height: 1;
  padding: 4px 8px;
}

.cr-modal-body {
  position: relative;
}

.cr-spinner-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cr-loader-modal {
  border: 14px solid #f3f3f3;
  border-radius: 50%;
  border-top: 14px solid var(--correios-blue);
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

.cr-fields-container {
  text-align: left;
}

.cr-modal-header-strip {
  background: #1a1a1a;
  padding: 14px 14px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-modal-strip-icon {
  width: 32px;
  height: 32px;
  background: var(--correios-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--correios-white);
  font-size: 14px;
  flex-shrink: 0;
}

.cr-modal-strip-title {
  color: var(--correios-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cr-modal-strip-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 400;
  margin-top: 1px;
}

.cr-modal-body-inner {
  padding: 12px 14px 18px;
}

.cr-modal-body-inner > * {
  width: 100%;
  box-sizing: border-box;
}

.cr-protocolo-box {
  font-size: 10px;
  color: #aaa;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.cr-protocolo-box span {
  font-weight: 700;
  color: #555;
}

.cr-produto-card {
  background: #f9fafb;
  border: 1px solid #eee;
  border-left: 3px solid var(--correios-blue);
  padding: 8px 10px;
  margin: 0 0 10px;
  border-radius: 0 4px 4px 0;
}

.cr-prod-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  font-weight: 600;
  margin-bottom: 2px;
}

.cr-prod-nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--correios-blue-dark);
}

.cr-dado-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #f7f7f7;
  font-size: 11px;
  width: 100%;
}

.cr-dado-label {
  color: #bbb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.cr-dado-valor {
  color: #444;
  font-weight: 600;
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-size: 11px;
}

.cr-taxa-card {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 14px 10px;
  border-radius: 8px;
  margin: 12px 0 10px;
  text-align: center;
  width: 100%;
}

.cr-taxa-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  font-weight: 600;
}

.cr-taxa-montante {
  font-size: 24px;
  font-weight: 900;
  color: var(--correios-dark);
  margin: 4px 0 2px;
}

.cr-taxa-sub {
  font-size: 9px;
  color: #bbb;
  line-height: 1.5;
}

.cr-prazo-modal {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
}

.cr-prazo-modal span {
  font-weight: 800;
  color: var(--correios-blue);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cr-confirm-btn {
  display: block;
  width: auto;
  margin: 0 auto;
  background: var(--correios-blue);
  color: var(--correios-white);
  border: none;
  padding: 12px 32px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
  font-family: var(--correios-font);
}

.cr-confirm-btn:hover {
  background: var(--correios-blue-dark);
}
