.give-form-stats,
.give-form-stats *,
.give-form-stats *::before,
.give-form-stats *::after {
    box-sizing: border-box;
}

.give-form-stats {
    font-family: "Poppins", Arial, sans-serif;
}


/* Template 4 — Truesewa Totaliser Family */
.give-template-4 {
    --gfs4-orange: #F7661C;
    --gfs4-orange-dark: #df5513;
    --gfs4-orange-soft: #fffaf7;
    --gfs4-ink: #191919;
    --gfs4-text: #3d3d3d;
    --gfs4-muted: #727272;
    --gfs4-line: #e6e6e6;
    --gfs4-track: #eeeeee;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--gfs4-text);
}

.give-template-4 .gfs4-card,
.give-template-4 .gfs4-ledger {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--gfs4-line);
    border-radius: 12px;
    box-shadow: none;
}

.give-template-4 .gfs4-card {
    padding: 22px;
}

.give-template-4 .gfs4-ngo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #f0ddd2;
    border-radius: 10px;
    background: var(--gfs4-orange-soft);
}

.give-template-4 .gfs4-ngo-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.give-template-4 .gfs4-ngo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--gfs4-orange);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.give-template-4 .gfs4-ngo-copy {
    min-width: 0;
}

.give-template-4 .gfs4-ngo-copy small {
    display: block;
    margin: 0 0 1px;
    color: var(--gfs4-orange-dark);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.give-template-4 .gfs4-ngo-copy strong {
    display: block;
    overflow: hidden;
    color: var(--gfs4-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.give-template-4 .gfs4-location {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #ead9cf;
    border-radius: 999px;
    background: #ffffff;
    color: #555555;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.give-template-4 .gfs4-location svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--gfs4-orange);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.give-template-4 .gfs4-classic-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin: 4px 0 14px;
}

.give-template-4 .gfs4-primary-stat > span,
.give-template-4 .gfs4-goal-stat > span,
.give-template-4 .gfs4-widebar-amount > span,
.give-template-4 .gfs4-three-stats span,
.give-template-4 .gfs4-three-meta span,
.give-template-4 .gfs4-ledger-stats span {
    display: block;
    margin-bottom: 2px;
    color: var(--gfs4-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.give-template-4 .gfs4-primary-stat > strong {
    display: block;
    color: var(--gfs4-ink);
    font-size: clamp(29px, 3.2vw, 35px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.give-template-4 .gfs4-goal-stat {
    text-align: right;
}

.give-template-4 .gfs4-goal-stat > strong {
    display: block;
    color: var(--gfs4-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.give-template-4 .gfs4-progress-track,
.give-template-4 .gfs4-thin-track,
.give-template-4 .gfs4-marker-track,
.give-template-4 .gfs4-scale-track {
    position: relative;
    width: 100%;
    background: var(--gfs4-track);
}

.give-template-4 .gfs4-progress-track {
    height: 34px;
    overflow: hidden;
    border-radius: 8px;
}

.give-template-4 .gfs4-progress-fill,
.give-template-4 .gfs4-thin-track > span,
.give-template-4 .gfs4-marker-fill,
.give-template-4 .gfs4-scale-track > span,
.give-template-4 .gfs4-ledger-bar > span {
    display: block;
    height: 100%;
    background: var(--gfs4-orange);
    transition: width 0.35s ease;
}

.give-template-4 .gfs4-progress-copy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    pointer-events: none;
    font-size: 12px;
    font-weight: 600;
}

.give-template-4 .gfs4-progress-copy strong {
    color: #ffffff;
    font-weight: 600;
}

.give-template-4 .gfs4-progress-copy span {
    color: #555555;
}

.give-template-4 .gfs4-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    color: var(--gfs4-muted);
    font-size: 12px;
    line-height: 1.45;
}

.give-template-4 .gfs4-footer-meta strong {
    color: var(--gfs4-ink);
    font-weight: 600;
}

/* Variant B */
.give-template-4.gfs4-variant-b .gfs4-split {
    display: grid;
    grid-template-columns: 0.9fr 1.55fr;
    gap: 28px;
    align-items: center;
}

.give-template-4 .gfs4-identity-span {
    grid-column: 1 / -1;
}

.give-template-4 .gfs4-split-amount strong {
    display: block;
    color: var(--gfs4-ink);
    font-size: clamp(29px, 3.2vw, 35px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.give-template-4 .gfs4-split-amount span {
    display: block;
    margin-top: 5px;
    color: var(--gfs4-muted);
    font-size: 12px;
}

.give-template-4 .gfs4-split-rail,
.give-template-4 .gfs4-widebar-main {
    min-width: 0;
}

.give-template-4 .gfs4-rail-labels {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--gfs4-muted);
    font-size: 12px;
}

.give-template-4 .gfs4-rail-labels strong {
    color: var(--gfs4-ink);
    font-weight: 600;
}

.give-template-4.gfs4-variant-b .gfs4-progress-track {
    height: 12px;
    border-radius: 7px;
}

/* Variant C */
.give-template-4 .gfs4-inline-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.give-template-4 .gfs4-inline-raised {
    color: var(--gfs4-ink);
    font-size: clamp(27px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.give-template-4 .gfs4-thin-track {
    height: 9px;
    overflow: hidden;
    border-radius: 6px;
}

.give-template-4 .gfs4-inline-percent {
    color: var(--gfs4-orange);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

/* Variant D */
.give-template-4 .gfs4-marker-track {
    height: 18px;
    margin: 16px 0 10px;
    border-radius: 5px;
}

.give-template-4 .gfs4-marker-track > i {
    position: absolute;
    top: -6px;
    width: 2px;
    height: 30px;
    margin-left: -1px;
    background: var(--gfs4-orange);
    transition: left 0.35s ease;
}

.give-template-4 .gfs4-marker-track > i::before {
    position: absolute;
    top: -2px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gfs4-orange);
    content: "";
}

/* Variant E */
.give-template-4 .gfs4-ledger {
    overflow: hidden;
}

.give-template-4 .gfs4-ledger-identity {
    padding: 16px 18px 0;
}

.give-template-4 .gfs4-ledger-stats {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.7fr;
}

.give-template-4 .gfs4-ledger-stats > div {
    padding: 17px 18px;
    border-right: 1px solid var(--gfs4-line);
}

.give-template-4 .gfs4-ledger-stats > div:last-child {
    border-right: 0;
}

.give-template-4 .gfs4-ledger-stats strong {
    display: block;
    margin-top: 3px;
    color: var(--gfs4-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.give-template-4 .gfs4-ledger-stats > div:first-child strong {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.give-template-4 .gfs4-ledger-bar {
    position: relative;
    height: 38px;
    background: #efefef;
}

.give-template-4 .gfs4-ledger-bar > div {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.give-template-4 .gfs4-ledger-bar strong {
    color: #ffffff;
    font-weight: 600;
}

.give-template-4 .gfs4-ledger-bar em {
    color: #555555;
    font-style: normal;
}

/* Variant F */
.give-template-4 .gfs4-statement-line {
    margin: 3px 0 17px;
    color: var(--gfs4-ink);
    font-size: 20px;
    line-height: 1.5;
}

.give-template-4 .gfs4-statement-line strong {
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.give-template-4 .gfs4-statement-line em {
    color: var(--gfs4-orange);
    font-style: normal;
    font-weight: 700;
}

.give-template-4 .gfs4-statement-line b {
    font-weight: 600;
}

.give-template-4 .gfs4-three-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 13px;
}

.give-template-4 .gfs4-three-meta > div {
    padding-right: 12px;
    border-right: 1px solid var(--gfs4-line);
}

.give-template-4 .gfs4-three-meta > div:last-child {
    border-right: 0;
}

.give-template-4 .gfs4-three-meta strong {
    display: block;
    margin-top: 2px;
    color: var(--gfs4-ink);
    font-size: 14px;
    font-weight: 600;
}

/* Variant G */
.give-template-4.gfs4-variant-g .gfs4-widebar {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.give-template-4 .gfs4-widebar-amount {
    padding-right: 22px;
    border-right: 1px solid var(--gfs4-line);
}

.give-template-4 .gfs4-widebar-amount strong {
    display: block;
    margin-top: 3px;
    color: var(--gfs4-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.give-template-4.gfs4-variant-g .gfs4-progress-track {
    height: 29px;
    border-radius: 7px;
}

/* Variant H */
.give-template-4 .gfs4-three-stats {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.7fr;
    gap: 22px;
    align-items: end;
}

.give-template-4 .gfs4-three-stats strong {
    display: block;
    margin-top: 3px;
    color: var(--gfs4-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.give-template-4 .gfs4-three-primary strong {
    font-size: 33px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.give-template-4 .gfs4-scale-track {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 6px;
}

.give-template-4 .gfs4-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: #999999;
    font-size: 10px;
}

.give-template-4 .gfs4-scale strong {
    color: var(--gfs4-orange);
    font-weight: 700;
}

@media (max-width: 900px) {
    .give-template-4.gfs4-variant-b .gfs4-split,
    .give-template-4.gfs4-variant-g .gfs4-widebar {
        grid-template-columns: 1fr;
    }

    .give-template-4 .gfs4-identity-span {
        grid-column: auto;
    }

    .give-template-4 .gfs4-widebar-amount {
        padding-right: 0;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--gfs4-line);
    }
}

@media (max-width: 680px) {
    .give-template-4 .gfs4-card {
        padding: 18px;
    }

    .give-template-4 .gfs4-ngo {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 10px;
    }

    .give-template-4 .gfs4-location {
        margin-left: 44px;
        font-size: 12px;
    }

    .give-template-4 .gfs4-ngo-copy strong {
        font-size: 14px;
    }

    .give-template-4 .gfs4-primary-stat > strong,
    .give-template-4 .gfs4-split-amount strong,
    .give-template-4 .gfs4-widebar-amount strong,
    .give-template-4 .gfs4-three-primary strong {
        font-size: 28px;
    }

    .give-template-4 .gfs4-inline-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .give-template-4 .gfs4-inline-row .gfs4-thin-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .give-template-4 .gfs4-footer-meta {
        flex-wrap: wrap;
        gap: 5px 14px;
    }

    .give-template-4 .gfs4-ledger-stats {
        grid-template-columns: 1fr 1fr;
    }

    .give-template-4 .gfs4-ledger-stats > div:first-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid var(--gfs4-line);
    }

    .give-template-4 .gfs4-ledger-stats > div:nth-child(2) {
        border-right: 1px solid var(--gfs4-line);
    }

    .give-template-4 .gfs4-three-meta,
    .give-template-4 .gfs4-three-stats {
        grid-template-columns: 1fr 1fr;
    }

    .give-template-4 .gfs4-three-meta > div:nth-child(2) {
        border-right: 0;
    }

    .give-template-4 .gfs4-three-meta > div:last-child {
        grid-column: 1 / -1;
        padding-top: 9px;
        border-top: 1px solid var(--gfs4-line);
    }

    .give-template-4 .gfs4-three-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .give-template-4 .gfs4-classic-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .give-template-4 .gfs4-goal-stat {
        text-align: left;
    }

    .give-template-4 .gfs4-progress-copy {
        font-size: 11px;
    }
}

/* Template 5 */
.give-template-5 {
    display: flex;
    flex-direction: column;
    max-width: 250px;
    margin: 0 auto;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.give-template-5 .give-progress-container {
    position: relative;
    width: 100%;
}

.give-template-5 .give-progress-wrapper {
    height: 12px;
    border-radius: 6px;
    background: #e0e0e0;
    overflow: hidden;
    position: relative;
    margin-top: 0.5rem;
}

.give-template-5 .give-progress-bar {
    display: block;
    height: 100%;
    background: #28a745;
    transition: width 0.5s ease-in-out;
}

.give-template-5 .give-progress-percent {
    display: block;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.give-template-5 .give-stats-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.give-template-5 .give-stats-box strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.give-template-5 .give-stats-box span {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
    display: block;
}

.give-template-5 .give-stats-box.give-stats-donors {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.give-template-5 .donors-icon {
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Template 6 Final */
.give-template-6 {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #1f1f1f;
}

.give-template-6 .gfs6-inner {
    background: #ffffff;
    border: 1.5px solid #ececf1;
    border-radius: 20px;
    padding: 22px;
}

.give-template-6 .gfs6-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.give-template-6 .gfs6-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f1f1f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 700;
    color: #222;
    flex-shrink: 0;
}

.give-template-6 .gfs6-head-text {
    min-width: 0;
    flex: 1;
}

.give-template-6 .gfs6-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.08;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.5px;
    word-break: normal;
    overflow-wrap: break-word;
}

.give-template-6 .gfs6-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #8f97a2;
}

.give-template-6 .gfs6-location-icon {
    font-size: 13px;
    line-height: 1;
}

.give-template-6 .gfs6-divider {
    height: 1.5px;
    background: #ededf2;
    margin: 20px 0;
}

.give-template-6 .gfs6-stats {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "amount donors"
        "amountlabel donorlabel";
    column-gap: 18px;
    row-gap: 6px;
    align-items: start;
    margin-bottom: 22px;
}

.give-template-6 .gfs6-amount {
    grid-area: amount;
    text-align: left;
}

.give-template-6 .gfs6-donors {
    grid-area: donors;
    text-align: right;
    min-width: 105px;
}

.give-template-6 .gfs6-value {
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1;
    font-weight: 700;
    color: #181818;
    letter-spacing: -1px;
}

.give-template-6 .gfs6-label-left {
    grid-area: amountlabel;
    font-size: clamp(11px, 1.5vw, 17px);
    line-height: 1.15;
    font-weight: 700;
    color: #969ca5;
    text-align: left;
    white-space: nowrap;
}

.give-template-6 .gfs6-label-right {
    grid-area: donorlabel;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: clamp(11px, 1.5vw, 17px);
    line-height: 1.15;
    font-weight: 700;
    color: #F7661C;
    text-align: right;
    white-space: nowrap;
}

.give-template-6 .gfs6-heart {
    font-size: clamp(10px, 1.5vw, 16px);
    color: #F7661C;
    line-height: 1;
}

.give-template-6 .gfs6-progress-section {
    margin-top: 4px;
}

.give-template-6 .gfs6-progress-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: #eaecf1;
    border-radius: 999px;
    overflow: hidden;
}

.give-template-6 .gfs6-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--gfs6-percent);
    height: 100%;
    background: #F7661C;
    border-radius: 999px;
    transition: width 0.5s ease-in-out;
}

.give-template-6 .gfs6-progress-meta {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.give-template-6 .gfs6-caption {
    font-size: 13px;
    line-height: 1.3;
    color: #8f97a2;
    font-weight: 600;
}

.give-template-6 .gfs6-funded-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff4ec;
    border: 1.5px solid #ffd9c1;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    color: #F7661C;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .give-template-6 {
        width: 100%;
        max-width: 100%;
        background: #ffffff;
        padding: 0;
        border: none;
    }

    .give-template-6 .gfs6-inner {
        background: #ffffff;
        border-radius: 15px;
        padding: 14px;
    }

    .give-template-6 .gfs6-header {
        gap: 10px;
        align-items: center;
    }

    .give-template-6 .gfs6-logo {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .give-template-6 .gfs6-title {
        font-size: 16px;
        line-height: 1.08;
        margin-bottom: 5px;
        letter-spacing: -0.25px;
    }

    .give-template-6 .gfs6-location {
        font-size: 11px;
        gap: 4px;
    }

    .give-template-6 .gfs6-location-icon {
        font-size: 10px;
    }

    .give-template-6 .gfs6-divider {
        margin: 16px 0;
    }

    .give-template-6 .gfs6-stats {
        column-gap: 8px;
        row-gap: 5px;
        margin-bottom: 16px;
    }

    .give-template-6 .gfs6-donors {
        min-width: auto;
    }

    .give-template-6 .gfs6-value {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .give-template-6 .gfs6-label-left,
    .give-template-6 .gfs6-label-right {
        font-size: 9.5px;
        letter-spacing: -0.1px;
    }

    .give-template-6 .gfs6-heart {
        font-size: 9.5px;
    }

    .give-template-6 .gfs6-progress-track {
        height: 11px;
    }

    .give-template-6 .gfs6-progress-meta {
        margin-top: 9px;
        gap: 8px;
    }

    .give-template-6 .gfs6-caption {
        font-size: 10px;
        max-width: 170px;
    }

    .give-template-6 .gfs6-funded-pill {
        font-size: 11px;
        padding: 7px 12px;
    }
}
