/* ===== PIX MODAL - Vakinha Style ===== */

.pix-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.pix-dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  border: 1px solid #d4fac3;
  border-radius: 16px;
  background: #fff;
  color: #282828;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  font-family: 'Lato', Arial, sans-serif;
  text-align: center;
  padding: 28px 24px 24px;
}

.pix-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  background: #fff;
  color: #8a8a8a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pix-close:hover {
  background: #f0fff5;
  color: #282828;
}

.pix-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 4px;
  display: block;
}

.pix-title {
  margin: 10px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #24ca68;
  line-height: 1.35;
}

.pix-value-label {
  margin: 16px 0 2px;
  font-size: 13px;
  color: #8a8a8a;
  letter-spacing: 0.01em;
}

.pix-amount-display {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 800;
  color: #24ca68;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.pix-wait-text {
  margin: 10px auto 0;
  font-size: 14px;
  color: #5a5a5a;
  max-width: 280px;
  line-height: 1.55;
}

.pix-spinner-wrap {
  display: flex;
  justify-content: center;
  margin: 20px auto 8px;
}
.pix-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d4fac3;
  border-top-color: #24ca68;
  border-radius: 50%;
  animation: pix-spin 0.75s linear infinite;
}
@keyframes pix-spin {
  to { transform: rotate(360deg); }
}

.pix-qr-wrap {
  margin: 16px auto 14px;
  display: flex;
  justify-content: center;
}
.pix-qr-box {
  display: inline-block;
  padding: 14px;
  border: 1.5px solid #d4fac3;
  border-radius: 12px;
  background: #fff;
}
.pix-qr-box img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.pix-code-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 10px;
  border: 1.5px solid #24ca68;
  border-radius: 8px;
  background: #fff;
  color: #3a3a3a;
  font-size: 12px;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  outline: none;
}

.pix-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: #24ca68;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pix-copy-btn:hover {
  background: #009d4e;
}
.pix-copy-btn:active {
  transform: scale(0.98);
}

.pix-instructions {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.55;
}
.pix-instructions strong,
.pix-instructions b {
  color: #282828;
}

.pix-error {
  margin: 12px 0 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff0f0;
  border: 1px solid #f5b8b8;
  color: #8b1a1a;
  font-size: 13px;
  text-align: center;
}

.pix-retry-btn {
  display: inline-block;
  margin: 8px auto 0;
  padding: 10px 24px;
  border: 1.5px solid #24ca68;
  border-radius: 8px;
  background: transparent;
  color: #24ca68;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.pix-retry-btn:hover {
  background: #f0fff5;
}

.pix-confirmed-text {
  margin: 16px 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #24ca68;
}
.pix-confirmed-sub {
  font-size: 14px;
  color: #5a5a5a;
  margin: 0;
}

.pix-checkout-link {
  display: block;
  margin: 12px auto;
  padding: 14px 20px;
  background: #24ca68;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.pix-checkout-link:hover {
  background: #009d4e;
}
