.dmd-donation {
    --paper: #fff8ed;
    --ink: #482820;
    --muted: #6b4b40;
    --border: #dec198;
    --gold: #945c16;
    --gold-ink: #633a0a;
    --gold-soft: #fff3cd;
    --gold-border: #d4a74d;
    --dark: #722b24;
    --coral: #b83f36;
    --coral-deep: #852e29;
    --accent: var(--coral);
    --accent-strong: var(--coral-deep);
    --accent-soft: #fde9e1;
    --accent-border: #e0a497;
    --banner-art: url("../images/vips/premium-points-banner.webp");
    --mp: #009ee3;
    --mp-deep: #007eb5;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.45;
    padding-block: 5px;
}
.dmd-donation *, .dmd-donation *::before, .dmd-donation *::after { box-sizing: border-box; }
.dmd-donation [hidden] { display: none !important; }
.dmd-donation h1, .dmd-donation h2, .dmd-donation h3 { color: var(--dark); margin: 0 0 10px; line-height: 1.2; }
.dmd-donation h1 { font: 700 clamp(25px, 4.5vw, 38px)/1.08 Georgia, "Times New Roman", serif; }
.donation-banner {
    display: flex; align-items: center; min-height: 190px; margin: 0 0 14px;
    padding: clamp(17px, 4vw, 31px); border: 1px solid var(--gold-border); border-radius: 14px;
    background-color: var(--gold-soft);
    background-image: linear-gradient(90deg, #fff3deee 0%, #fff3deaa 45%, transparent 70%),
        var(--banner-art);
    background-size: cover; background-position: center;
    box-shadow: 0 3px 10px #8f5a2d22;
}
.donation-banner[data-donation-banner] { --banner-art: url("../images/vips/premium-points-banner.webp"); }
.donation-banner > div { max-width: 58%; }
.donation-banner p { margin: 0; color: var(--muted); }
.donation-banner h1 { margin-bottom: 9px; }
.donation-payment-banner, .donation-gateway-banner { min-height: 175px; }
.dmd-donation h2 { font-size: 18px; }
.dmd-donation h3 { font-size: 15px; }
.dmd-donation p { margin: 0 0 10px; }
.donation-steps {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px;
}
.donation-steps > * {
    display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px;
    color: var(--muted); font-weight: 700; border: 1px solid var(--border); border-radius: 9px;
    background: #fffaf0;
}
.dmd-donation .donation-steps > a {
    color: var(--dark); text-decoration: none; background: #fff8eb; border-color: var(--border);
}
.dmd-donation .donation-steps > a:hover { background: var(--accent-soft); border-color: var(--accent); }
.donation-steps [aria-current] {
    background: linear-gradient(110deg, var(--coral), var(--coral-deep));
    border-color: var(--coral-deep); color: #fffdf1;
}
.donation-steps i {
    display: inline-grid; place-items: center; flex: 0 0 24px; height: 24px;
    border: 1px solid var(--border); border-radius: 50%; font-style: normal;
}
.donation-steps [aria-current] i { background: #ffe7a6; border-color: #f6cf72; color: var(--gold-ink); }
.donation-panel {
    margin-bottom: 14px; padding: clamp(14px, 3vw, 23px); border: 1px solid var(--border); border-radius: 10px;
    background: var(--paper); box-shadow: 0 2px 7px #3e241a13;
}
.donation-intro { border-inline-start: 4px solid var(--coral); background: linear-gradient(105deg, #fff8ed, #fff0dd); }
.donation-panel > label { display: block; margin-bottom: 6px; font-weight: 700; }
.donation-input {
    display: flex; align-items: center; gap: 11px; width: min(100%, 360px);
    padding: 3px 12px; border: 1px solid #b28c54; border-radius: 8px;
    background: #fffcf7; font-size: 21px; font-weight: 700;
}
.donation-input > span { color: var(--coral-deep); }
.donation-input:focus-within { border-color: transparent; outline: 2px solid var(--gold); outline-offset: -2px; }
.dmd-donation .donation-input > input { flex: 1; min-width: 0; padding: 8px 0; border: 0; font: inherit; color: var(--ink); outline: 0; background: transparent; }
.dmd-donation .donation-muted { color: var(--muted); margin: 6px 0 12px; font-size: 12px; }
.donation-error { color: #9d2118; font-weight: 700; }
#donation-result { border-block-start: 3px solid var(--gold-border); }
#donation-result h2, #donation-result h3 { color: var(--gold-ink); }
.donation-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.donation-metrics > div {
    display: flex; flex-direction: column; min-width: 0; padding: 10px;
    background: linear-gradient(140deg, #fff4c8, #ffdf87); border: 1px solid var(--gold-border); border-radius: 9px;
}
.donation-metrics span { font-weight: 700; }
.donation-metrics strong { font-size: clamp(18px, 3vw, 24px); color: var(--gold-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.donation-metrics small { color: var(--muted); }
.donation-metrics + h3 { margin: 16px 0 8px; }
.donation-suggestion {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
    margin: 12px 0; padding: 12px; background: #ffe8a7; border: 1px solid var(--gold-border); border-radius: 7px;
}
.donation-suggestion > div { flex: 1 1 260px; }
.donation-suggestion h2 { margin: 0 0 4px; font-size: 15px; }
.donation-suggestion p { margin: 0; }
.donation-actions { display: flex; justify-content: flex-end; margin: 12px 0 5px; }
.donation-access { display: flex; flex-wrap: wrap; gap: 8px; }
.donation-primary, .donation-secondary {
    display: inline-block; font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 8px;
    border: 1px solid var(--gold-border); text-decoration: none; cursor: pointer;
}
.dmd-donation .donation-primary {
    color: #fffdf1; border-color: var(--coral-deep);
    background: linear-gradient(var(--coral), #a5322c);
    box-shadow: 0 2px 0 var(--coral-deep), 0 4px 9px #722b2433;
    text-decoration: none;
}
.dmd-donation .donation-primary:not(:disabled):hover { background: var(--coral-deep); }
.dmd-donation .donation-primary:disabled {
    background: #f9ded4; border-color: #e4ad9f; color: #7b4339; cursor: default; box-shadow: none;
}
.dmd-donation .donation-secondary { color: var(--gold-ink); background: var(--gold-soft); text-decoration: none; }
.dmd-donation :is(a, button, summary, input):focus-visible:not(:where(.donation-input > input)) { outline: 2px solid var(--gold); outline-offset: 2px; }
.dmd-donation [data-provider="mercadopago"], .dmd-donation[data-provider="mercadopago"] {
    --accent: var(--mp); --accent-strong: var(--mp-deep); --accent-soft: #e6f6fc; --accent-border: #8ed0ef;
}
.donation-methods { min-width: 0; padding: 0; margin: 0; border: 0; }
.donation-methods legend { margin-bottom: 12px; color: var(--dark); font-size: 18px; font-weight: 700; }
.donation-method {
    display: grid; grid-template-columns: 16px min(168px, 27%) minmax(0, 1fr) auto;
    align-items: center; gap: 12px; margin-bottom: 9px; padding: 10px 12px;
    border: 1px solid var(--accent-border); border-inline-start: 4px solid var(--accent);
    border-radius: 11px; cursor: pointer; background: var(--accent-soft);
}
.donation-method:hover, .donation-method:has(:checked) { border-color: var(--accent); }
.donation-method:has(:checked) { box-shadow: inset 0 0 0 1px var(--accent); }
.donation-method input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.donation-method-brand {
    display: grid; place-items: center; padding: 6px 8px; min-height: 49px;
    border: 1px solid var(--accent-border); border-radius: 8px; background: #fffefa;
    font-weight: 800; color: var(--mp); letter-spacing: .02em;
}
.donation-method-copy { min-width: 0; overflow-wrap: anywhere; }
.donation-method-copy strong, .donation-method-copy small { display: block; }
.donation-method-copy strong { color: var(--accent-strong); font-size: 15px; }
.donation-method-copy small { color: var(--muted); }
.donation-method-delivery {
    color: var(--accent-strong); background: #fffefa; border: 1px solid var(--accent-border);
    border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700;
}
.donation-terms { display: flex; gap: 8px; align-items: baseline; margin-top: 13px; }
.donation-terms input { accent-color: var(--coral); }
.dmd-donation .donation-terms a { color: var(--coral-deep); text-decoration: underline; }
.donation-payment-total { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.donation-payment-total strong { font-size: 25px; color: var(--dark); }
.donation-payment-total a, .dmd-donation .donation-back-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
    border: 1px solid var(--gold-border); border-radius: 7px; color: var(--gold-ink); background: #fff9e8;
    font-size: 12px; font-weight: 700; text-decoration: none;
}
.donation-banner .donation-payment-total a { color: var(--gold-ink); text-decoration: none; }
.dmd-donation .donation-back-link { margin-bottom: 10px; padding: 8px 12px; }
.donation-alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; }
.donation-alert.ok { background: #e8f7ec; border: 1px solid #b7e0c2; }
.donation-alert.bad { background: #fdecea; border: 1px solid #f0c2bd; }
@media (max-width: 640px) {
    .donation-method {
        grid-template-columns: 16px clamp(84px, 25vw, 132px) minmax(0, 1fr);
        gap: 4px 9px; padding: 9px 8px;
    }
    .donation-method input, .donation-method-brand { grid-row: span 2; }
    .donation-method-delivery { grid-column: 3; justify-self: start; }
}
@media (max-width: 520px) {
    .donation-steps > * { padding: 6px 7px; font-size: 12px; }
    .donation-banner {
        min-height: 0; padding-bottom: 140px;
        background-color: #fff3de; background-image: var(--banner-art);
        background-size: auto 126px; background-repeat: no-repeat; background-position: right bottom;
    }
    .donation-banner > div { max-width: 100%; }
    .donation-actions .donation-primary { width: 100%; }
}
