#pix-por-piggly {
  display: table;
  margin: 24px auto;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  color: #fff;
  line-height: 1;
}

#pix-por-piggly * {
  box-sizing: border-box;
}

/* Estrutura de Linha e Coluna */
#pix-por-piggly .pix-por-piggly--row {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0;
}

#pix-por-piggly .pix-por-piggly--row .pix-por-piggly--column {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 1;
  padding: 6px;
}

#pix-por-piggly .pix-por-piggly--row .pix-por-piggly--column .pix-por-piggly--col-2 {
  max-width: 50%;
}

/* Elementos de Entrada */
#pix-por-piggly input {
  width: 100%;
}

#pix-por-piggly button {
  margin: 12px 0;
}

/* Logo e Títulos */
#pix-por-piggly .pix-por-piggly-logo {
  display: table;
  max-width: 32px;
  margin: 12px auto;
}

#pix-por-piggly .pix-por-piggly-title {
  text-align: center;
}

/* Centralização e Espaçamento */
#pix-por-piggly .pix-por-piggly--centered {
  text-align: center;
}

#pix-por-piggly .pix-por-piggly--space {
  margin-bottom: 24px;
}

/* Botões */
#pix-por-piggly .pix-por-piggly--button {
  margin: 5px;
  position: relative;
  vertical-align: middle;
  display: inline-table;
  background-color: #61ffa7;
  font-weight: 700;
  color: #fff !important;
  padding: 12px 24px;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  border-radius: 48px;
}

#pix-por-piggly .pix-por-piggly--button:hover {
  color: #fff !important;
  background-color: #fff !important;
  transition: background-color 0.2s, color 0.2s;
}

#pix-por-piggly .pix-por-piggly--button:hover svg {
  fill: #FFF;
}

#pix-por-piggly .pix-por-piggly--button svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  transition: fill 0.2s;
}

/* Notificação de Cópia */
#pix-por-piggly .pix-por-piggly--copied {
  position: fixed;
  padding: 12px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
}

#pix-por-piggly .pix-por-piggly--copied.hidden {
  display: none;
}

/* Copiar Botão */
#pix-por-piggly .pix-por-piggly--copy {
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  background-color: #61ffa7;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#pix-por-piggly .pix-por-piggly--copy:hover {
  color: #fff;
  background-color: #fff;
}

/* QR Code */
#pix-por-piggly .pix-por-piggly--qrcode {
  text-align: center;
}

#pix-por-piggly .pix-por-piggly--qrcode img {
  display: table;
  max-width: 420px;
  margin: 12px auto;
  width: 100%;
  height: auto;
}

/* Separador "Ou" */
#pix-por-piggly .pix-por-piggly--or {
  position: relative;
  display: table;
  padding: 24px 0;
}

#pix-por-piggly .pix-por-piggly--or span {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  background-color: #61ffa7;
  line-height: 26px;
  height: 26px;
  width: 26px;
  top: 50%;
  margin-top: -13px;
  left: 50%;
  margin-left: -13px;
  text-align: center;
  display: table;
  border-radius: 100%;
}

#pix-por-piggly .pix-por-piggly--or::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.12);
  top: 50%;
  margin-top: -1px;
}

/* Itens e Informações */
#pix-por-piggly .pix-por-piggly--item {
  margin: 12px 0;
}

#pix-por-piggly .pix-por-piggly--info {
  font-size: 13px;
  text-align: center;
}

#pix-por-piggly .pix-por-piggly--data {
  position: relative;
  height: 54px;
  display: table;
  font-size: 18px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  padding: 16px;
  margin: 6px 0;
  background-color: rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  word-wrap: break-word;
}

#pix-por-piggly .pix-por-piggly--data span {
  display: block;
  word-break: break-all;
  left: 0;
  top: 0;
}

/* Rótulos */
#pix-por-piggly .pix-por-piggly--label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Wrapper */
#pix-por-piggly .pix-por-piggly--wrapper {
  display: table;
  margin: 0 auto;
  text-align: center;
}

/* Passos */
#pix-por-piggly .pix-por-piggly--step {
  display: inline-table;
  position: relative;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  max-width: 200px;
  margin-bottom: 24px;
}

#pix-por-piggly .pix-por-piggly--step:last-child {
  margin-bottom: 0;
}

#pix-por-piggly .pix-por-piggly--step::before {
  content: attr(data-step);
  position: absolute;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
  background-color: #3cf18d;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  border-radius: 100%;
}

/* Imagem */
#pix-por-piggly .pix-por-piggly--img {
  height: auto !important;
  width: 80% !important;
  max-height: inherit !important;
  margin: 24px auto 36px !important;
  float: none !important;
}

/* Descrição */
#pix-por-piggly .pix-por-piggly--description {
  font-size: 14px;
  text-align: center;
  font-style: italic;
  margin: 6px auto;
}

/* Destaque */
.pix-por-piggly--featured {
  margin-left: 5px;
  font-weight: 700;
  color: #fff;
  background-color: #3cf18d;
}

/* Detectando Pagamento */
#pgly-payment-detection {
  display: table;
  width: 100%;
}

#pgly-payment-detection #pgly-payment-detect {
  display: table;
  margin: 0 auto;
}

#pgly-payment-detection #pgly-payment-loader {
  display: none;
}

#pgly-payment-detection.loading #pgly-payment-detect {
  display: none;
}

#pgly-payment-detection.loading #pgly-payment-loader {
  display: table;
}

#pgly-payment-detection #pgly-payment-loader {
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

#pgly-payment-detection #pgly-payment-loader .path {
  stroke: #fff;
  stroke-linecap: round;
  animation: dash-spinner 1.5s ease-in-out infinite;
}

#pgly-payment-detection #pgly-payment-loader.light .path {
  stroke: #FFF;
}

/* Animação */
@keyframes dash-spinner {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Responsividade */
@media screen and (max-width: 768px) {
  #pix-por-piggly .pix-por-piggly--row .pix-por-piggly--column {
    min-width: 100%;
    width: 100%;
    padding: 5px;
  }
}
