.donation-body {
    background: #f3f7f1;
    min-height: 100vh;

    hr {
        border-color: #eee;
        opacity: 1;
    }

    .swiper-slide {
        display: flex;
        gap: 30px;
        padding: 0;
        border: none;

        .card-heading {
            font-size: 20px;
        }

        img {
            aspect-ratio: 16/9;
            border-radius: 8px;
        }

        h5 {
            font-weight: 500;
            font-size: 13px;
            margin-top: 37px;

        }


    }

    h2 {
        font-family: Outfit;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.2;
        letter-spacing: 0%;
        margin-block: 44px 20px;
        color: #1a1a1a;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    h2::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 18px;
        border-radius: 4px;
        background: linear-gradient(180deg, #2f7a1d, #4faa29);
    }
}

.donation-nav-wrapper {
    padding: 8px;
    background-color: #fff;


    .nav-donation {
        display: flex;
        align-items: center;
        justify-content: space-between;

        li a {
            text-decoration: none;
            color: black;
            font-size: clamp(0.5625rem, 0.4261rem + 0.6818vw, 0.9375rem);
            font-weight: 400;

            &:last-child {
                color: rgba(52, 131, 31, 1);
            }
        }
    }


}

.pay-now-btn {
    height: 56px;
    border-radius: 50px;
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #2f7a1d 0%, #4faa29 100%);
    border: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-block: 28px;
    box-shadow: 0 10px 24px rgba(54, 132, 32, 0.32);
    transition: filter 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;

    &:hover {
        border: none;
        filter: brightness(1.07);
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(54, 132, 32, 0.4);
    }
}

.donation-page-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 36px 40px 40px;
    background: #fff;
    margin-block: 48px;
    border: 1px solid #efefef;
    border-top: 4px solid #368420;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);

    .help-list {
        display: flex;
        flex-wrap: wrap;
        /* Allow items to wrap to new line */
        justify-content: center;
        gap: 10px;
        /* Add some spacing between items */
    }

    .help-list .form-control {
        width: 100%;
        max-width: 100% !important;
        flex: 1 0 100%;
        /* Grow, don't shrink, full width */
        order: 1;
        /* Move to second row */
        margin-top: 10px;
        /* Add space between rows */
    }

    .help-list .form-group {
        width: 100%;
        max-width: 100% !important;
        flex: 1 0 100%;
        /* Grow, don't shrink, full width */
        order: 1;
        /* Move to second row */
        margin-top: 10px;
    }

    .help-list .btn,
    .help-list .btn-check {
        color: #000;
        background-color: transparent;
        border-color: #000;
        font-size: clamp(1rem, 0.9545rem + 0.2273vw, 1.125rem);
        flex: 0 0 90px;
        /* Don't grow or shrink */
    }

    .help-list .btn-check:checked+.btn,
    .help-list .btn.active,
    .help-list .btn.show,
    .help-list .btn:first-child:active,
    :not(.btn-check)+.btn:active {
        color: #fff;
        background-color: #000;
        border-color: #000;
    }

    /* Hide the radio inputs visually but keep them accessible */
    .help-list .btn-check {
        position: absolute;
        opacity: 0;
    }

    .help-list .form-group {
        position: relative;
        border: 1px solid;
        border-radius: 8px;
        padding: 12px 28px;

        .form-label {
            color: rgba(183, 183, 183, 1);
            margin-bottom: 0;
        }

        .btn {
            position: absolute;
            background: rgba(217, 217, 217, 1);
            color: #000;
            border: none;
            width: 67px;
            height: 29px;
            padding: 0;
            border-radius: 25px;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);


        }

        .form-control {
            color: rgba(183, 183, 183, 1);
            text-align: left;
            padding: 0;
            margin-top: 0;

            &::placeholder {
                color: rgba(183, 183, 183, 1);
            }

            &:focus {
                background: none;
                border: none;
                box-shadow: none;
            }
        }
    }




    .range {
        margin: 64px 0 40px;
        padding: 10px 24px;
        position: relative;


        .seekbar-progress {
            position: relative;
            height: 6px;
            background-color: #eef3ea;
            background: #eef3ea;
            border-radius: 6px;

            [role="progressbar"] {
                height: 100%;
                position: relative;
                background: linear-gradient(90deg, #2f7a1d, #4faa29);
                border-radius: 6px;
                box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);

                &:after {
                    content: " ";
                    display: block;
                    width: 22px;
                    height: 22px;
                    position: absolute;
                    top: -8.5px;
                    right: -12px;
                    background: #fff;
                    border: 4px solid #368420;
                    border-radius: 50%;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
                }
            }
        }

        div[role=tooltip] {
            /* Line up with slider thumb: JS sets left % + translateX(-50%) */
            position: absolute;
            left: 0;
            bottom: calc(100% + 14px);
            top: auto;
            margin-left: 0;
            transform: translateX(-50%);
            z-index: 3;
            pointer-events: none;

            input[type=text] {
                position: relative;
                width: 60px;
                text-align: center;
                padding: 6px 10px;
                box-sizing: border-box;
                border-radius: 10px;
                border: none;
                line-height: 20px;
                color: #fff;
                font-weight: 700;
                background: linear-gradient(135deg, #2f7a1d, #4faa29);
                box-shadow: 0 4px 14px rgba(54, 132, 32, 0.4);
                pointer-events: auto;
            }
        }

        input[type="range"] {
            -webkit-appearance: none;
            width: 100%;
            height: 100%;
            margin: 0;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            background: transparent;
            outline: 0;
            border: 0;

            &::-webkit-slider-thumb {
                -webkit-appearance: none;
                display: block;
                width: 48px;
                height: 48px;
                background-color: transparent;
            }

            &::-moz-range-thumb {
                display: block;
                width: 48px;
                height: 48px;
                background: transparent;
                border: 0;
            }

            &::-moz-range-track {
                background: transparent;
                border: 0;
            }

            &::-moz-focus-outer {
                border: 0;
            }
        }
    }


}

/* Basket empty state: sits inside .donation-page-wrapper for same top margin and width as checkout */
.basket-empty-inner {
    text-align: center;
    padding: 48px 16px 56px;
}

.basket-empty-inner h3 {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

.basket-empty-inner p {
    margin: 0;
    font-size: 1rem;
}

.basket-empty-inner p a {
    color: #368420;
    font-weight: 700;
    text-decoration: none;
}

.basket-empty-inner p a:hover {
    text-decoration: underline;
}

.Payment-Method-Wrapper {
    border: 1px solid #000000;
    border-radius: 8px;
    margin-bottom: 32px;

    .Payment-Method {
        padding: clamp(0.875rem, 0.5114rem + 1.8182vw, 1.875rem);
        border-bottom: 1px solid #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;

        p {
            font-size: clamp(0.5625rem, 0.358rem + 1.0227vw, 1.125rem);
        }

        .form-check-label {
            font-size: clamp(0.5625rem, 0.358rem + 1.0227vw, 1.125rem);
        }

        img {
            width: 31.74%;
        }


    }



}

.form-check-input:checked {
    background-color: #0B9A2F;
    border-color: #0B9A2F;
}

/* ── Order summary — card-style breakdown ── */
.Your-donation-table {
    border-collapse: separate;
    border-spacing: 0;

    td,
    th {
        padding: 9px 4px;
        font-size: 14.5px;
        color: #444;
    }

    tr:first-child td {
        padding-top: 2px;
    }

    th {
        font-size: 16px;
        font-weight: 800;
        color: #1a1a1a;
        padding-top: 12px;
    }

    th:last-child {
        color: #368420;
    }

    hr {
        margin: 4px 0;
        opacity: 0.6;
    }
}

.protected-donation {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 12px;
    margin-bottom: 50px;
    padding: 16px 18px;
    background: #f7faf5;
    border: 1px solid #e7f0e1;
    border-radius: 14px;

    h2 {
        margin: 0 0 4px;
    }

    h2::before {
        display: none;
    }

    p {
        color: #666;
        font-size: 13.5px;
        margin: 0;
    }

    .icon-protected {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        opacity: 1;
        background: linear-gradient(135deg, #2f7a1d, #4faa29);
        border-radius: 50%;
    }

    .icon-protected img {
        filter: brightness(0) invert(1);
        width: 18px;
    }
}

@media (max-width: 768px) {
    .nav-donation {
        a:has(img) {
            img {
                max-width: 65px;

            }
        }
    }

    .donation-page-wrapper {
        padding: 22px 18px 26px;
        margin-block: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .donation-body {
        background: #fff;

        .swiper-slide {
            flex-direction: column;
            gap: 10px;

            .card-heading {
                font-size: 20px;
            }

            img {
                aspect-ratio: 16/9;
                border-radius: 8px;
            }

            h5 {
                font-weight: 500;
                font-size: 13px;
                margin-top: 37px;

            }
        }
    }

    .Payment-Method-Wrapper .Payment-Method {
        flex-direction: column;
        align-items: flex-start;
    }

    .Payment-Method-Wrapper .Payment-Method img {
        width: 100%;
        max-width: 200px;
    }
}
