/* ==== CSS PIX Revisado ==== */
.muyto-pix-card {
  /* Variáveis responsivas para tamanho do QR Code */
  --pix-qr-size: 306px; /* tamanho base desktop */
  --pix-bg: #ffffff;            /* fundo branco */
  --pix-fg: #111827;            /* texto escuro */
  --pix-muted: #6b7280;         /* subtítulo */
  --pix-accent: #2563eb;        /* botão */

  background: var(--pix-bg);
  color: var(--pix-fg);
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0 8px 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(17,24,39,.06);
  text-align: center; /* centraliza tudo dentro */
  width: 100%;
  box-sizing: border-box;
}

/* Contêiner geral da seção QR + textarea */
.muyto-pix-narrow {
  width: 100%;
  max-width: calc(var(--pix-qr-size) + 60px);
  margin-inline: auto;
  text-align: center;
}

/* Título e subtítulo */
.muyto-pix-title {
  margin: 0 0 6px 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
}

.muyto-pix-sub {
  margin: 0 0 14px 0;
  color: var(--pix-muted);
  font-size: clamp(13px, 1.8vw, 14px);
}

/* QR Wrap */
.muyto-pix-qr-wrap {
  width: var(--pix-qr-size) !important;
  height: var(--pix-qr-size) !important;
  margin: 0 auto 14px auto;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Imagem do QR Code */
.muyto-pix-qr-img {
  width: 100% !important;
  height: 100% !important;
  max-width: unset !important;
  max-height: unset !important;
  aspect-ratio: auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 8px;
  image-rendering: pixelated;
  background: #fff;
}

/* Copia e Cola */
.muyto-pix-copy-wrap {
  margin-top: 4px;
}

.muyto-pix-copy-label {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--pix-muted);
}

/* Textarea e botão copiar */
.muyto-pix-input-row {
  position: relative;
  width: var(--pix-qr-size);
  margin: 0 auto;
  max-width: 94vw;
}

.muyto-pix-textarea {
  width: 100%;
  min-height: 92px;
  max-height: 200px;
  padding: 12px 100px 12px 12px; /* espaço para o botão */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6; /* cinza claro */
  color: #111827;
  resize: vertical;
  line-height: 1.35;
  box-sizing: border-box;
  font-size: 14px;
}

.muyto-pix-btn-copy {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--pix-accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}
.muyto-pix-btn-copy:hover {
  background: #1d4ed8; /* tom mais escuro */
}
.muyto-pix-btn-copy i {
  font-size: 14px;
}

/* Mensagem de status */
.muyto-pix-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--pix-muted);
  word-break: break-word;
}

/* === Responsivo Extra === */
@media (max-width: 1024px) {
  /* Tablets / iPads */
  .muyto-pix-card {
    padding: 18px;
    --pix-qr-size: clamp(250px, 55vw, 306px);
  }
  .muyto-pix-input-row {
    width: min(94vw, var(--pix-qr-size));
  }
  .muyto-pix-textarea {
    font-size: 13.5px;
  }
}

@media (max-width: 768px) {
  /* Smartphones grandes */
  .muyto-pix-card {
    padding: 16px;
    --pix-qr-size: clamp(220px, 70vw, 300px);
  }
  .muyto-pix-input-row {
    width: min(94vw, var(--pix-qr-size));
  }
  .muyto-pix-textarea {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  /* Smartphones pequenos */
  .muyto-pix-card {
    --pix-qr-size: clamp(180px, 80vw, 280px);
  }
  .muyto-pix-input-row {
    width: min(90vw, var(--pix-qr-size));
  }
  .muyto-pix-textarea {
    font-size: 12.5px;
  }
}
