.donation-option.is-selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.02);
}

.pix-modal[hidden] {
  display: none;
}

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pix-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(5px);
}

.pix-modal__panel {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
}

.pix-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pix-value {
  margin-top: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 22%, transparent);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--primary) 9%, transparent);
  padding: 1rem;
  text-align: center;
}

.pix-value span {
  display: block;
  color: var(--muted-foreground);
  font-size: .8rem;
  font-weight: 800;
}

.pix-value strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.pix-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: .9rem;
  font-weight: 800;
}

.pix-loading span {
  width: 1rem;
  height: 1rem;
  border: 3px solid color-mix(in oklab, var(--primary) 20%, transparent);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: pix-spin .8s linear infinite;
}

.pix-result {
  margin-top: 1rem;
}

.pix-qr {
  width: 210px;
  height: 210px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: #fff;
  padding: .65rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.pix-code {
  width: 100%;
  resize: none;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: var(--surface);
  padding: .8rem;
  color: var(--muted-foreground);
  font-size: .8rem;
  outline: none;
}

.pix-message {
  min-height: 1.4rem;
  margin-top: .75rem;
  color: var(--muted-foreground);
  font-size: .85rem;
  font-weight: 800;
  text-align: center;
}

@keyframes pix-spin {
  to {
    transform: rotate(360deg);
  }
}
