/* IV Doações — frontend (escopado em .iv-doacoes p/ não vazar no tema) */
.iv-doacoes {
  --ivd-primary: #0693FF;
  --ivd-primary-dark: #0277CC;
  --ivd-accent: #FF5A00;
  --ivd-ink: #16263B;
  --ivd-muted: #5A6B7E;
  --ivd-border: #E2E8F0;
  --ivd-bg: #F7FAFD;
  --ivd-radius: 16px;
  max-width: 560px;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
}
.iv-doacoes *, .iv-doacoes *::before, .iv-doacoes *::after { box-sizing: border-box; }

.iv-doacoes .ivd-card {
  background: #fff;
  border: 1px solid var(--ivd-border);
  border-radius: var(--ivd-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 28, 45, .10), 0 2px 8px rgba(15, 28, 45, .05);
}

.iv-doacoes .ivd-title {
  margin: 0 0 .5rem;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ivd-ink);
  letter-spacing: -.02em;
}
.iv-doacoes .ivd-desc {
  margin: 0 0 1.5rem;
  color: var(--ivd-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.iv-doacoes .ivd-desc p { margin: 0 0 .5rem; }

/* chips de valores */
.iv-doacoes .ivd-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.iv-doacoes .ivd-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .9rem 1rem;
  border: 2px solid var(--ivd-border);
  border-radius: 12px;
  background: var(--ivd-bg);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
  text-align: left;
}
.iv-doacoes .ivd-chip:hover { border-color: #BBD9F5; transform: translateY(-1px); }
.iv-doacoes .ivd-chip.is-active {
  border-color: var(--ivd-primary);
  background: #EAF5FF;
  box-shadow: 0 0 0 3px rgba(6, 147, 255, .14);
}
.iv-doacoes .ivd-chip-val   { font-size: 1.2rem; font-weight: 800; color: var(--ivd-ink); }
.iv-doacoes .ivd-chip-label { font-size: .8rem; color: var(--ivd-muted); line-height: 1.2; }

/* outro valor */
.iv-doacoes .ivd-custom { margin-bottom: 1.5rem; }
.iv-doacoes .ivd-custom-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ivd-muted);
  margin-bottom: .4rem;
}
.iv-doacoes .ivd-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--ivd-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.iv-doacoes .ivd-input-wrap:focus-within {
  border-color: var(--ivd-primary);
  box-shadow: 0 0 0 3px rgba(6, 147, 255, .14);
}
.iv-doacoes .ivd-prefix {
  padding: 0 .25rem 0 1rem;
  font-weight: 700;
  color: var(--ivd-muted);
}
.iv-doacoes .ivd-input {
  flex: 1;
  border: none;
  outline: none;
  padding: .85rem 1rem .85rem .5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivd-ink);
  background: transparent;
}

/* botão */
.iv-doacoes .ivd-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ivd-primary), var(--ivd-primary-dark));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 18px rgba(6, 147, 255, .35);
}
.iv-doacoes .ivd-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 147, 255, .42); }
.iv-doacoes .ivd-btn:active { transform: translateY(0); }

/* resultado / pix */
.iv-doacoes .ivd-result:empty { display: none; }
.iv-doacoes .ivd-pix {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--ivd-border);
  text-align: center;
  animation: ivdFade .25s ease;
}
@keyframes ivdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.iv-doacoes .ivd-pix-amount { font-size: 1.05rem; color: var(--ivd-muted); margin-bottom: 1rem; }
.iv-doacoes .ivd-pix-amount strong { color: var(--ivd-accent); font-size: 1.25rem; }

.iv-doacoes .ivd-qr {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ivd-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 28, 45, .08);
}
.iv-doacoes .ivd-qr img, .iv-doacoes .ivd-qr canvas { display: block; }

.iv-doacoes .ivd-pix-hint {
  margin: 1rem auto .75rem;
  max-width: 380px;
  font-size: .9rem;
  color: var(--ivd-muted);
  line-height: 1.45;
}

.iv-doacoes .ivd-code-row {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin: 0 auto;
}
.iv-doacoes .ivd-code {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ivd-border);
  border-radius: 10px;
  padding: .7rem .85rem;
  font-size: .8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ivd-muted);
  background: var(--ivd-bg);
}
.iv-doacoes .ivd-copy {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 0 1.1rem;
  background: var(--ivd-accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: filter .15s, background .15s;
}
.iv-doacoes .ivd-copy:hover { filter: brightness(1.05); }
.iv-doacoes .ivd-copy.is-done { background: #1FA463; }

.iv-doacoes .ivd-note {
  margin: 1.25rem auto 0;
  max-width: 420px;
  font-size: .85rem;
  color: var(--ivd-muted);
  line-height: 1.5;
}

.iv-doacoes .ivd-warn {
  padding: 1rem;
  border-radius: 10px;
  background: #FFF4E5;
  border: 1px solid #FFD9A8;
  color: #8A4B00;
  font-size: .9rem;
  text-align: center;
}

@media (max-width: 600px) {
  .iv-doacoes .ivd-card { padding: 1.5rem 1.15rem; }
  .iv-doacoes .ivd-title { font-size: 1.35rem; }
}
