#popup-unico {
  margin: 0;
  background-color: #0b1326;
  color: white;
  font-family: "Poppins", sans-serif;
}
#popup-unico .container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  text-align: center;
}
#popup-unico .banner {
  width: 100vw;
  max-width: 100%;
  display: block;
}
#popup-unico .top-controls {
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 0;
  align-items: center;
}
#popup-unico .back-btn,
.close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
#popup-unico .back-btn {
  font-size: 1rem;
}
#popup-unico .close-btn {
  font-size: 1.6rem;
}
#popup-unico .instruction {
  margin: 16px 0 4px;
  font-size: 1rem;
  line-height: 1.4;
  color: white;
}
#popup-unico .alert-box {
  background-color: #1a2539;
  color: #f6a700;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#popup-unico .alert-box::before {
  content: "⚠️";
  font-size: 1rem;
}
#popup-unico .pix-box {
  border: 1px dashed #2e3b55;
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  background-color: #0f1b2a;
}
#popup-unico .valor {
  font-size: 2rem;
  font-weight: bold;
  color: #00bfff;
  margin-bottom: 12px;
}
#popup-unico .pix-code-box {
  background-color: #1a2539;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ccc;
  word-break: break-all;
  margin-bottom: 12px;
}
#popup-unico .copy-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #0e324f;
  color: #00bfff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
#popup-unico .countdown-label {
  margin-top: 24px;
  color: #ffa500;
  font-size: 0.9rem;
}
#popup-unico .countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}
#popup-unico .progress-bar {
  height: 6px;
  width: 100%;
  background: #1a2539;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
#popup-unico .progress-fill {
  height: 100%;
  width: 100%;
  background: #00bfff;
  animation: countdown 300s linear forwards;
}
@keyframes countdown {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
#popup-unico .status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  background-color: #112b1f;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}
#popup-unico .status::before {
  content: "";
  border: 3px solid #00ff88;
  border-top: 3px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#popup-unico .qr-btn {
  display: block;
  margin: 16px auto 0;
  font-size: 0.95rem;
  background: none;
  border: 1px solid #2e3b55;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ccc;
  cursor: pointer;
}
#popup-unico .qr-code {
  display: none;
  margin-top: 24px;
}
#popup-unico .qr-code.visible {
  display: block;
}

/* ====== Estilos do Comprovante de Processamento ====== */
#popup-unico .comprovante {
  background: #fff;
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto 16px;
}

#popup-unico .comprovante-header {
  padding: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  background: #f0f2f5;
}
#popup-unico .comprovante-header + hr {
  margin: 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}
#popup-unico .comprovante-body {
  padding: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #333;
}
#popup-unico .detail {
  width: 48%;
}
#popup-unico .detail-label {
  font-weight: 500;
  display: block;
}
#popup-unico .detail-value {
  font-weight: 600;
}
#popup-unico .progress-section {
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#popup-unico .progress-section .progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
#popup-unico .progress-section .progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: rgba(0, 123, 255, 0.5);
  animation: shimmer 1s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}
#popup-unico .loader-text {
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
}
