.pushinpay-pix-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 16px auto;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  width: 100%;
}

.pushinpay-pix-wrapper,
.pushinpay-pix-wrapper * {
  box-sizing: border-box;
}

.pushinpay-pix-wrapper h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.pushinpay-pix-transaction {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #4b5563;
}

.pushinpay-pix-transaction__label {
  font-weight: 600;
  margin-right: 6px;
}

.pushinpay-pix-transaction__value {
  word-break: break-all;
}

.pushinpay-pix-steps {
  margin: 0 0 10px 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
  color: #374151;
}

.pushinpay-pix-step + .pushinpay-pix-step {
  margin-top: 6px;
}

.pushinpay-pix-label {
  margin: 0 0 6px 0;
}

.pushinpay-pix-grid {
  display: grid;
  grid-template-columns: minmax(0, 256px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pushinpay-pix-qr {
  display: flex;
  justify-content: center;
}

.pushinpay-pix-grid img {
  max-width: 256px;
  width: 100%;
  height: auto;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  background: #ffffff;
}

.pushinpay-pix-code {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  resize: none;
  overflow: hidden;
  background: #ffffff;
  color: #111827;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pushinpay-pix-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pushinpay-pix-actions .pushinpay-btn {
  padding: 12px 14px;
  font-weight: 600;
  border-radius: 8px;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pushinpay-pix-actions .pushinpay-copy-pix {
  grid-column: 1 / -1;
}

.pushinpay-pix-actions .pushinpay-reload-page {
  grid-column: 1 / -1;
}

.pushinpay-pix-wrapper .pushinpay-btn--primary {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
}

.pushinpay-pix-wrapper .pushinpay-btn--primary:hover {
  background: #0b1220 !important;
  border-color: #0b1220 !important;
  color: #ffffff !important;
}

.pushinpay-pix-wrapper .pushinpay-btn--secondary {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}

.pushinpay-pix-wrapper .pushinpay-btn--secondary:hover {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

.pushinpay-pix-hint {
  margin: 8px 0 0 0;
  font-size: 13px;
}

.pushinpay-pix-disclaimer {
  margin-top: 12px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.pushinpay-pix-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out;
  max-width: calc(100% - 24px);
  text-align: center;
}

.pushinpay-pix-toast.is-visible {
  opacity: 1;
}

@media (max-width: 640px) {
  .pushinpay-pix-wrapper {
    padding: 12px;
    max-width: 100%;
  }

  .pushinpay-pix-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pushinpay-pix-grid img {
    max-width: 360px;
  }

  .pushinpay-pix-code {
    font-size: 13px;
    min-height: 160px;
  }

  .pushinpay-pix-actions {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .pushinpay-pix-actions .pushinpay-btn {
    width: 100%;
  }
}
