/* =============================================
   PIX NATIVO - Tela de Pagamento (page3)
   Design Original do corress_api_pix
   ============================================= */

#page3 .breadcrumb {
  display: none;
}

body.page3-active {
  background: #eef0f3 !important;
  overflow-x: hidden;
}

body.page3-active .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.pix-fullscreen {
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 640px;
  padding: 16px 0 40px;
  margin: 16px auto 0;
  background: #eef0f3;
  overflow: visible;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  .pix-fullscreen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    align-items: start;
  }
}

.pix-left-panel,
.pix-right-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 35, 90, 0.07);
  padding: 24px 28px;
  box-sizing: border-box;
}

.pix-left-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pix-brand-image-wrap,
.pix-main-subtitle {
  display: none;
}

.pix-main-title {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  text-align: left;
  color: #1d70b8;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.pix-client-box,
.pix-cpf-box,
.pix-status-box,
.pix-price-box {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: left;
}

.pix-client-box span,
.pix-cpf-box span,
.pix-status-box span,
.pix-price-box span,
.pix-fees-card span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pix-client-box strong,
.pix-cpf-box strong {
  color: #1e293b;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.pix-status-box {
  display: inline-block;
  margin-top: 4px;
  background: transparent;
  border: none;
  padding: 0;
}

.pix-status-box strong {
  color: #92400e;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #fef3c7;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid #fcd34d;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.12);
}

.pix-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  display: inline-block;
  animation: pixStatusPulse 1.2s ease-in-out infinite;
}

.pix-status-box.is-paid {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pix-status-box.is-paid span {
  color: #166534 !important;
}

.pix-status-box.is-paid strong {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}

.pix-status-box.is-paid .pix-status-dot {
  background: #16a34a;
  animation: none;
}

.pix-status-box.is-expired {
  background: #fef2f2;
  border-color: #fecaca;
}

.pix-status-box.is-expired span {
  color: #991b1b !important;
}

.pix-status-box.is-expired strong {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
}

.pix-status-box.is-expired .pix-status-dot {
  background: #d92d20;
  animation: none;
}

@keyframes pixStatusPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.pix-price-box strong {
  color: #16a34a;
  font-size: 18px;
  font-weight: 700;
}

.pix-fees-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 2px dashed #cbd5e1;
  padding-top: 14px;
  margin-top: 10px;
}

.pix-fees-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.pix-fees-card strong {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pix-fees-total {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 4px;
}

.pix-fees-total span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.pix-fees-total strong {
  color: #15803d;
  font-size: 19px;
  font-weight: 800;
}

.pix-how-box {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #f1c232;
  border-radius: 7px;
  background: #fffbe6;
}

.pix-how-box h3 {
  margin: 0 0 10px;
  color: #9a6800;
  font-size: 14px;
}

.pix-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.pix-step-circle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 999px;
  background: #f0a400;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.pix-step-row p {
  margin: 0;
  color: #8a5b00;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.pix-right-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 12px;
}

.pix-qr-copia-wrapper {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 580px) {
  .pix-qr-copia-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .pix-copia-box {
    width: 100%;
  }
}

.pix-expire-pill {
  min-height: 0;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f7faff;
  border: 1.5px solid #d9e4ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #004aad;
  justify-content: center;
}

.pix-expire-pill svg {
  width: 16px;
  height: 16px;
  stroke: #004aad;
  fill: none;
  stroke-width: 2;
}

.pix-expire-pill span {
  font-size: 12px;
  color: #496173;
  font-weight: 500;
}

.pix-expire-pill strong {
  font-size: 14px;
  color: #004aad;
  font-weight: 700;
}

.pix-scan-text {
  margin: 0;
  color: #506178;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

.pix-qr-box {
  width: 100%;
  max-width: 170px;
  flex-shrink: 0;
}

.pix-qr-frame {
  width: 100%;
  max-width: 170px;
  height: 170px;
  margin: 0 auto;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  padding: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.pix-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.pix-qr-placeholder {
  color: #8a96a6;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
}
  padding: 12px;
}

.pix-copy-block {
  width: 100%;
  max-width: none;
  margin-top: 0;
  text-align: left;
}

.pix-copy-block label {
  display: block;
  text-align: left;
  color: #566579;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.pix-copy-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.pix-copy-row input {
  width: 100%;
  height: 42px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
}

.pix-copy-row button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: #FFCB05;
  color: #002266;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 203, 5, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.pix-copy-row button:hover {
  background: #f0be00;
  transform: translateY(-1px);
}

.pix-copy-row button svg {
  width: 18px;
  height: 18px;
  stroke: #002266;
  fill: none;
  stroke-width: 2.5;
}

.pix-order-box {
  margin-top: 0;
  text-align: center;
  color: #7b8797;
}

.pix-order-box p {
  margin: 4px 0;
  font-size: 12px;
}

.pix-order-box strong {
  color: #1b2c43;
  font-weight: 700;
}

.pix-success-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1ca34c !important;
  font-weight: 700;
}

.pix-success-line svg {
  width: 14px;
  height: 14px;
  stroke: #1ca34c;
  fill: none;
  stroke-width: 3;
}

.pix-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2px;
}

.pix-verify-btn,
.pix-copy-main-btn {
  height: 38px;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pix-verify-btn {
  background: #f0f2f5;
  color: #344054;
}

.pix-copy-main-btn {
  background: #ffc400;
  color: #111827;
}

.pix-check-status {
  margin: -2px 0 0;
  color: #2f6bed;
  font-size: 12px;
  text-align: center;
}

.pix-hidden-meta {
  display: none !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: #003399;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 600;
  max-width: 90%;
  width: 420px;
  text-align: center;
  border-left: 5px solid #FFCB05;
  animation: toastFadeIn 0.3s ease;
}



/* =============================================
   MOBILE HEADER STYLING (Idêntico à imagem de referência)
   ============================================= */
@media (max-width: 768px) {
  /* Topo Acessibilidade */
  header .cabecalho {
    background: #f2f2f2 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 3px 12px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
  }

  header .acessibilidade {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
  }

  header .bt-acessibilidade {
    color: #0066cc !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    cursor: pointer !important;
  }

  header .bt-acessibilidade span {
    color: #0066cc !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }

  header .bt-acessibilidade::after {
    content: " ▾";
    color: #0066cc;
    font-size: 10px;
  }

  header .bt-acessibilidade i {
    display: none !important;
  }

  /* Barra Principal Amarela */
  header .menu {
    background-color: #f8f9fa !important;
    border-bottom: 3px solid #ffcc00 !important;
    box-shadow: none !important;
    padding: 6px 14px !important;
    height: auto !important;
  }

  header .menu .largura-maxima,
  header .menu .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Esquerda: Hambúrguer ≡ + Logo */
  header .bt-menu-hamburguer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.5px !important;
    background: transparent !important;
    border: none !important;
    padding: 2px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
  }

  header .bt-menu-hamburguer i {
    display: none !important;
  }

  header .bt-menu-hamburguer::before,
  header .bt-menu-hamburguer::after {
    content: "" !important;
    display: block !important;
    width: 14px !important;
    height: 2.5px !important;
    background-color: #0066cc !important;
    border-radius: 1.5px !important;
  }

  header .logo-correios {
    display: flex !important;
    align-items: center !important;
  }

  header .logo-correios img {
    height: 26px !important;
    max-height: 26px !important;
    width: auto !important;
    display: block !important;
  }

  /* Direita: Porta Login + Lupa Busca */
  header .links-menu-meu-correios,
  header .lista-menu-meu-correios,
  header #busca-portal,
  header #busca-portal button {
    display: flex !important;
    align-items: center !important;
  }

  header .links-menu-meu-correios img {
    height: 25px !important;
    max-height: 25px !important;
    width: auto !important;
    display: block !important;
  }

  header #busca-portal img {
    height: 22px !important;
    max-height: 22px !important;
    width: auto !important;
    display: block !important;
    margin-left: 10px !important;
  }

  /* Ocultar elementos de texto e menu estendido no mobile */
  header .links-menu-superior,
  header .login-meu-correios,
  header .login-txt,
  header .busca-txt,
  header .divisor {
    display: none !important;
  }


  /* Subir Acesso Rápido para perto */
  .portlet_acesso_rapido,
  #portletwrapper-706c6f6e652e666f6f746572706f72746c6574730a636f6e746578740a2f506c6f6e652f686f6d65706167650a61636573736f2d72617069646f {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }
}

