/* ============================================================
   TELA CÓDIGO PIX & PAGAMENTO CONFIRMADO (PADRÃO LIQUIDIFICADOR / STORE-ENGINE)
   ============================================================ */
#pix-page.pix-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 98 !important;
  max-width: 440px !important;
  width: 100% !important;
  height: 100vh;
  height: 100dvh !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  color: #161823 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#pix-page.pix-page[hidden],
#success-page.success-page[hidden] {
  display: none !important;
}

@media (hover: none), (pointer: coarse), (max-width: 520px) {
  #pix-page.pix-page,
  #success-page.success-page {
    max-width: none !important;
    width: 100% !important;
    box-shadow: none !important;
  }
}

#pix-page .pix-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at -8% -5%, rgba(37, 244, 238, 0.55) 0%, rgba(37, 244, 238, 0.18) 35%, transparent 62%),
    radial-gradient(ellipse 110% 65% at 108% -8%, rgba(254, 44, 85, 0.48) 0%, rgba(254, 44, 85, 0.16) 38%, transparent 64%);
}

#pix-page .pix-header,
#pix-page .pix-body,
#pix-page .pix-footer,
#pix-page .pix-loading {
  position: relative;
  z-index: 1;
}

#pix-page .pix-header {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 6px 0;
  background: transparent;
  flex-shrink: 0;
}

#pix-page .pix-header .icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #161823;
  cursor: pointer;
  border-radius: 999px;
  flex-shrink: 0;
}

#pix-page .co-header-spacer {
  width: 40px;
  height: 1px;
  flex-shrink: 0;
}

#pix-page .pix-header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #161823;
  line-height: 1.25;
}

#pix-page .pix-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 24px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

#pix-page .pix-body[hidden] {
  display: none !important;
}

#pix-page .pix-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #8a8a8e;
  font-size: 14px;
}

#pix-page .pix-loading[hidden] {
  display: none !important;
}

#pix-page .pix-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #ececec;
  border-top-color: #fe2c55;
  animation: lq2-pix-spin 0.75s linear infinite;
}

@keyframes lq2-pix-spin {
  to { transform: rotate(360deg); }
}

#pix-page .pix-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

#pix-page .pix-status-text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

#pix-page .pix-status-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #161823;
  line-height: 1.2;
  letter-spacing: -0.25px;
}

#pix-page .pix-amount {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #161823;
  letter-spacing: -0.35px;
}

#pix-page .pix-clock-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff7a00;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

#pix-page .pix-expire {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

#pix-page .pix-expire-label {
  font-size: 14px;
  color: #8a8a8e;
}

#pix-page .pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #e21836;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(226, 24, 54, 0.25);
}

#pix-page .pix-timer b {
  font-weight: 700;
  letter-spacing: 0.35px;
  font-variant-numeric: tabular-nums;
}

#pix-page .pix-deadline {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #8a8a8e;
}

#pix-page .pix-code-box {
  margin-top: 24px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: rgba(245, 245, 246, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
}

#pix-page .pix-code-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

#pix-page .pix-code-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

#pix-page .pix-code-brand span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #161823;
}

#pix-page .pix-code {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15.5px;
  font-weight: 700;
  color: #161823;
  word-break: break-all;
  line-height: 1.38;
  min-height: 2.7em;
  cursor: pointer;
}

#pix-page .pix-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: #fe2c55;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

#pix-page .pix-copy-btn.is-copied {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 18px rgba(22, 163, 74, 0.36) !important;
}

#pix-page .pix-copy-btn:active {
  transform: scale(0.985);
}

#pix-page .pix-copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#pix-page .pix-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
  padding: 0;
}

#pix-page .pix-hint {
  margin: 18px 2px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8a8a8e;
}

#pix-page .pix-hint b {
  color: #55575f;
  font-weight: 600;
}

#pix-page .pix-bank-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 4px;
  padding: 14px 14px 14px 12px;
  background: #fff9ed;
  border-left: 4px solid #f5a623;
  border-radius: 10px;
}

#pix-page .pix-bank-alert-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5a623;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

#pix-page .pix-bank-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3a3a3e;
}

#pix-page .pix-bank-alert b {
  font-weight: 800;
  color: #161823;
}

#pix-page .pix-how-title {
  margin: 26px 2px 10px;
  font-size: 17.5px;
  font-weight: 700;
  color: #161823;
}

#pix-page .pix-how-text {
  margin: 0 2px;
  font-size: 14px;
  line-height: 1.55;
  color: #8a8a8e;
}

#pix-page .pix-footer {
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #f0f0f3;
  flex-shrink: 0;
}

#pix-page .pix-footer[hidden] {
  display: none !important;
}

#pix-page .pix-receipt-box {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 13px;
  text-align: center;
}

#pix-page .pix-receipt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 9px;
}

#pix-page .pix-receipt-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #161823;
  text-transform: uppercase;
}

#pix-page .pix-receipt-sub {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
  margin: 0;
}

#pix-page .pix-receipt-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid #1f2937;
  border-radius: 10px;
  background: #1f2937;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

#pix-page .pix-receipt-btn:active {
  transform: scale(0.988);
}

#pix-page .pix-receipt-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

#pix-page .pix-receipt-btn.is-sent {
  background: #16a34a;
  border-color: #15803d;
  color: #ffffff;
}

#pix-page .pix-receipt-status {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #15803d;
}

#pix-page .pix-receipt-status.is-err {
  color: #dc2626;
}

/* ============================================================
   TELA PAGAMENTO CONFIRMADO (#success-page)
   ============================================================ */
#success-page.success-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99 !important;
  max-width: 440px !important;
  width: 100% !important;
  height: 100vh;
  height: 100dvh !important;
  margin: 0 auto !important;
  background: #f2f2f4 !important;
  color: #161823 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.16);
}

#success-page .suc-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 14px calc(30px + env(safe-area-inset-bottom, 0px));
}

#success-page .suc-head {
  text-align: center;
  margin-bottom: 18px;
}

#success-page .suc-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #00a085;
  box-shadow: 0 8px 24px rgba(0, 160, 133, 0.35);
}

#success-page .suc-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}

#success-page .suc-when {
  color: #8a8b91;
  font-size: 13px;
  margin-top: 4px;
}

#success-page .suc-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#success-page .suc-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8a8b91;
  margin: 0 0 10px;
}

#success-page .suc-track-code {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-align: center;
  margin: 4px 0 14px;
  word-break: break-all;
}

#success-page .suc-btn-main {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: #fe2c55;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}

#success-page .suc-btn-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  border: 1.5px solid #161823;
  background: #ffffff;
  color: #161823;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

#success-page .suc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f5;
}

#success-page .suc-item img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f0f2;
  flex-shrink: 0;
}

#success-page .suc-item-info {
  flex: 1;
  min-width: 0;
}

#success-page .suc-item-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

#success-page .suc-item-info span {
  font-size: 12px;
  color: #8a8b91;
}

#success-page .suc-item-price {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

#success-page .suc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  font-size: 14px;
}

#success-page .suc-total-row b {
  font-size: 18px;
  color: #fe2c55;
}

#success-page .suc-addr-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
}

#success-page .suc-addr-lines {
  margin: 0;
  font-size: 13.5px;
  color: #8a8b91;
  line-height: 1.45;
}

#success-page .suc-back {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #8a8b91;
  text-decoration: underline;
  cursor: pointer;
}
