.ta-donate-trigger {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid #c9a24b;
  border-radius: 6px;
  color: #17221b;
  background: #e6c76a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}
.ta-donate-trigger::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 35%, #fff8 50%, transparent 65%);
  transform: translateX(-130%);
  animation: ta-donation-shine 5s ease-in-out 3;
  pointer-events: none;
}
.ta-donate-trigger:hover { background: #f3dd98; box-shadow: 0 4px 14px #c9a24b30; }
.ta-donate-trigger svg { width: 20px; height: 20px; flex: none; }
.ta-donate-trigger:focus-visible { outline: 3px solid #1b3a2b; outline-offset: 3px; }
.ta-donation-dialog {
  --ta-donation-gold: #e6c76a;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c9a24b;
  border-radius: 8px;
  color: #f3eedd;
  background: #101a14;
  box-shadow: 0 24px 90px #0007;
  font-family: inherit;
}
.ta-donation-dialog[open] { animation: ta-donation-enter .24s ease-out; }
.ta-donation-dialog::backdrop { background: #07110bcc; backdrop-filter: blur(5px); }
.ta-donation-dialog [hidden] { display: none !important; }
.ta-donation-dialog :focus-visible { outline: 3px solid #f3eedd; outline-offset: 3px; }
.ta-donation-close {
  position: sticky;
  z-index: 1;
  top: 12px;
  float: right;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 12px 12px -60px 0;
  border: 1px solid #829481;
  border-radius: 6px;
  color: #f3eedd;
  background: #101a14;
}
.ta-donation-close:hover { background: #1b3a2b; }
.ta-donation-close svg { width: 22px; height: 22px; }
.ta-donation-cover {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 18px 76px 18px 28px;
  border-bottom: 1px solid #344638;
  background: #1b3a2b;
}
.ta-donation-logo { display: block; flex: none; width: 76px; height: 76px; object-fit: contain; }
.ta-donation-eyebrow { color: var(--ta-donation-gold); font-size: 12px; font-weight: 800; line-height: 1.6; }
.ta-donation-body { padding: 26px 28px 22px; }
.ta-donation-body h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; font-weight: 800; }
.ta-donation-intro { margin: 0 0 22px; color: #c4d0c7; font-size: 15px; line-height: 1.6; }
.ta-donation-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; padding: 5px; border: 1px solid #435d49; border-radius: 6px; background: #17261c; }
.ta-donation-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px solid transparent; border-radius: 4px; color: #c4d0c7; background: transparent; font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.ta-donation-tab > span { white-space: nowrap; }
.ta-donation-tab[aria-selected="true"] { color: #17221b; background: var(--ta-donation-gold); }
.ta-donation-tab:hover:not([aria-selected="true"]) { color: #f3eedd; background: #294733; }
.ta-donation-tab svg { width: 20px; height: 20px; }
.ta-donation-panel { min-height: 222px; padding-top: 22px; }
.ta-donation-panel h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.ta-donation-instructions { margin: 0 0 16px; color: #c4d0c7; font-size: 14px; line-height: 1.55; }
.ta-donation-pending { padding: 18px 0; border-top: 1px solid #344638; }
.ta-donation-pending svg { width: 24px; height: 24px; margin-bottom: 10px; color: var(--ta-donation-gold); }
.ta-donation-pending strong { display: block; font-size: 15px; }
.ta-donation-pending p { margin: 8px 0 0; color: #c4d0c7; font-size: 14px; line-height: 1.55; }
.ta-donation-recipient { display: grid; gap: 4px; margin: 0 0 16px; overflow-wrap: anywhere; }
.ta-donation-recipient span, .ta-donation-recipient small { color: #c4d0c7; font-size: 12px; }
.ta-donation-recipient strong { font-size: 16px; }
.ta-donation-value { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.ta-donation-value input { width: 100%; min-width: 0; height: 48px; padding: 10px 12px; border: 1px solid #829481; border-radius: 4px; color: #f3eedd; background: #1b2c20; font-size: 16px; }
.ta-donation-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--ta-donation-gold); border-radius: 6px; color: #17221b; background: var(--ta-donation-gold); font-weight: 800; }
.ta-donation-copy:hover { background: #f3dd98; }
.ta-donation-copy:disabled { opacity: .7; cursor: wait; }
.ta-donation-copy svg { width: 18px; height: 18px; }
.ta-donation-qr { display: grid; justify-items: center; gap: 10px; margin: 22px 0 0; }
.ta-donation-qr img { display: block; max-width: 100%; width: 269px; height: 269px; padding: 16px; object-fit: contain; background: #fff; image-rendering: pixelated; }
.ta-donation-download { display: inline-flex; align-items: center; min-height: 48px; color: var(--ta-donation-gold); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.ta-donation-status { margin: 8px 0; color: var(--ta-donation-gold); font-size: 14px; line-height: 1.55; }
.ta-donation-status:empty { display: none; }
.ta-donation-thanks { margin: 18px 0 10px; padding-top: 18px; border-top: 1px solid #344638; color: var(--ta-donation-gold); font-size: 15px; line-height: 1.5; font-weight: 700; }
.ta-donation-note { margin: 0; color: #bbcbbf; font-size: 12px; line-height: 1.6; }
@keyframes ta-donation-shine { 0%, 50% { transform: translateX(-130%); } 75%, 100% { transform: translateX(130%); } }
@keyframes ta-donation-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .ta-has-donations { gap: 16px; }
  .ta-has-donations .altivo-header-actions { max-width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .ta-has-donations nav a { white-space: nowrap; }
  .ta-donate-trigger { padding: 10px; }
  .ta-donate-trigger > span, .ta-has-donations .altivo-transport-top > span, .ta-has-donations #altivoAccountLabel { display: none; }
  .ta-has-donations .altivo-transport-top { min-width: 48px; padding: 10px; }
}
@media (max-width: 760px) {
  .ta-has-donations .altivo-header-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  body:not(.altivo-subpage-body) .ta-has-donations { display: grid !important; grid-template-columns: auto minmax(0,1fr) !important; grid-template-rows: auto auto; height: auto; gap: 6px 8px; padding: 9px 12px 0; }
  body:not(.altivo-subpage-body) .ta-has-donations nav { grid-column: 1 / -1 !important; grid-row: 2 !important; margin: 0; }
  body:not(.altivo-subpage-body) .ta-has-donations .altivo-header-actions { grid-column: 2; grid-row: 1; margin: 0; }
  .altivo-subpage-body .ta-has-donations { grid-template-columns: auto minmax(0,1fr) 96px !important; }
  .altivo-subpage-body .ta-has-donations .altivo-header-actions { width: 96px !important; gap: 6px; }
}
@media (max-width: 480px) {
  .ta-donation-body { padding: 22px 20px; }
  .ta-donation-body h2 { font-size: 25px; }
  .ta-donation-cover { padding-left: 20px; gap: 10px; }
  .ta-donation-logo { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-donate-trigger::before, .ta-donation-dialog[open] { animation: none; }
  .ta-donate-trigger, .ta-donation-tab { transition: none; }
}
