/* Hide inactive donation amount groups */
.donation-form .donation-amount-group:not(.active) {
    display: none;
}

.donation-form .donation-type-switch {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: 9999px;
    box-shadow: 0 5px 0 0 #dde4ea;
    border: 1px solid #dde4ea;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.donation-form .donation-type-switch button {
    padding: 16px;
    width: 100%;
    background-color: transparent;
    border-radius: 999px;
    text-transform: capitalize;
    font-size: 16px;
    position: static;
    transition: all 0.3s ease;
}

.donation-form .donation-type-switch button.active {
    color: white;
}

.donation-form .donation-type-switch button.one-off:before {
    content: "";
    position: absolute;
    right: 0%;
    top: 0px;
    width: 50%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.donation-form .donation-type-switch button.one-off.active:before {
    right: 50%;
}

/* Donation type buttons */
.donation-form .donation-type-btn {
    border: 2px solid rgba(33, 40, 48, 0.15);
    border-radius: 8px;
    background-color: #fff;
    text-transform: capitalize;
    font-weight: 400;
    font-size: clamp(12px, 5vw, 16px);
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    min-height: 50px;
}

.donation-form .donation-type-btn .heart-icon {
    position: relative;
    display: inline-block;
    width: 16px;
}

.donation-form .donation-type-btn .heart-icon .move-heart {
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

/* Hover and active state */
.donation-form .donation-type-btn.active,
.donation-form .donation-type-btn:hover {
    background-color: var(--accent-light-color);
    border-color: var(--accent-light-color);
    color: var(--accent-color);
}

/* Heart icon container */
.donation-form .donation-type-btn .fa-heart {
    position: relative;
    transform: translate(0, 0) scale(0.8);
    display: inline-block;
    color: #ff447c;
}

/* Animation */
.donation-form .donation-type-btn .move-heart {
    animation: flying-heart-move 2.5s forwards linear;
    opacity: 1;
}

@keyframes flying-heart-move {
    0% {
        translate: 0 0 0;
        rotate: 0deg;
        opacity: 1;
    }

    5% {
        translate: 0 0 0;
        scale: 1.7;
        rotate: 0deg;
    }

    60% {
        translate: 0 -65px 0;
        scale: 1.7;
        rotate: 25deg;
    }

    80% {
        translate: 0 -80px 0;
        scale: 1.7;
        rotate: 0deg;
        opacity: 1;
    }

    100% {
        translate: 0 -95px 0;
        scale: 2;
        rotate: 0deg;
        opacity: 0;
    }
}

.donation-form .donation-type-btn.active {
    border-color: var(--accent-color);
}

.donation-form .donation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 10px;
    margin-bottom: 16px;
}

.donation-form.grid-layout .donation-buttons.buttons-1 .donation-btn {
    flex: 1 1 100%;
}

.donation-form.grid-layout .donation-buttons.buttons-2 .donation-btn {
    flex: 1 1 calc(50% - 5px);
}

.donation-form.grid-layout .donation-buttons.buttons-3 .donation-btn {
    flex: 1 1 calc(33.3333% - 6.66px);
}

.donation-form.grid-layout .donation-buttons.buttons-4 .donation-btn {
    flex: 1 1 calc(25% - 7.5px);
}

.donation-form .donation-box-title {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #020202, var(--accent-color), #020202);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 3s linear infinite;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    margin-top: 16px;
    text-align: center;
}

.donation-form .donation-amount-groups {
    margin-top: 16px;
}


/* Gradient animation */
@keyframes textGradientFlow {
    0% {
        background-position: 150% center;
    }

    100% {
        background-position: 0% center;
    }
}


/* Optional: keep arrow aligned */
.donation-form .donation-box-title .arrow-up {
    width: 24px;
    height: 24px;
    position: relative;
    top: 2px;
    left: 4px;
    color: var(--accent-color);
    display: inline-block;
    animation: arrowTilt 3s linear infinite;
    transform-origin: center center;
}


@keyframes arrowTilt {
    0% {
        transform: rotate(0deg) scale(0.8) translate(-6px, -6px);
    }

    15% {
        transform: rotate(-20deg) scale(1) translate(6px, -9px);
    }

    50% {
        transform: rotate(0deg) scale(0.8) translate(-6px, -6px);
    }

    100% {
        transform: rotate(0deg) scale(0.8) translate(-6px, -6px);
    }
}


.donation-form .donation-buttons .donation-btn {
    background-color: white;
    padding: 10px;
    min-height: 44px;
    gap: 2px;
    box-shadow: 0 6px 0 0 #c7cdd6;
    border: 1px solid #c7cdd6;
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.donation-form .donation-buttons .donation-btn.active,
.donation-form .donation-buttons .donation-btn:hover {
    color: var(--accent-color);
    z-index: 2;
    box-shadow: 0 6px 0 0 var(--accent-color);
}

.donation-form .donation-buttons .donation-btn .btn-label {
    text-align: left;
    font-weight: 400;
    text-transform: capitalize;
}

.donation-form .donation-buttons .donation-btn .daily-label {
    font-size: 0px;
    opacity: 0;
    transition: 0.3s;
    font-weight: 400;
    text-transform: capitalize;
}

.donation-form .donation-buttons .donation-btn:hover > .daily-label {
    opacity: 1;
    font-size: 12px;
}

.donation-form .donation-buttons .donation-btn:after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transition: 0.3s;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--accent-color);
    z-index: -1;
    opacity: 0;
}

.donation-form .donation-buttons .donation-btn.active:after,
.donation-form .donation-buttons .donation-btn:hover:after {
    opacity: 1;
}

.donation-form .donation-buttons .donation-btn.active {
    color: var(--accent-color);
    z-index: 3;
}

.donation-form.grid-layout .donation-buttons .donation-btn {
    align-items: center;
    padding: 0px 10px;
}

.donation-form .single_add_to_cart_button {
    width: 100%;
}

.donation-amount-groups .donation-custom {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #c7cdd6;
    display: flex;
    align-items: flex-start;
    background-color: white;
    overflow: hidden;
}

.donation-amount-groups .donation-custom .custom-placeholder {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 4;
}

.donation-amount-groups .donation-custom .skyweb-currency-wrapper {
    position: relative;
    overflow: hidden;
    height: 50px;
    z-index: 2;
}

.donation-amount-groups .donation-custom .skyweb-currency-wrapper .currency-symbol {
    font-size: 18px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0px;
    min-width: 50px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    border-radius: 6px 0 0 6px;
    line-height: 1em;
    background: white var(--sky-select-arrow) no-repeat scroll right -2px center / 20px 20px;
}

.donation-amount-groups .donation-custom .skyweb-currency-select {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    border: none;
    background: none;
    font-size: 16px;
    padding: 0px;
    z-index: -1;
    color: var(--accent-color);
}

.donation-amount-groups .donation-custom .custom-amount-input {
    border: none;
    text-align: left;
    height: 52px;
    line-height: 0em;
    padding: 0 8px 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-color);
    width: calc(100% - 50px);
}

.donation-amount-groups .donation-custom .custom-amount-input::placeholder {
    color: #ededed;
}

.donation-daily-dates-group .donation-dates {
    display: flex;
    gap: 16px;
}

.donation-daily-dates-group .donation-dates .donation-date-field {
    width: 100%;
    position: relative;
}

.donation-daily-dates-group .donation-dates .donation-date-field input {
    width: 100%;
    border-radius: 8px;
    padding: 13px 10px 13px 10px;
    min-height: 50px;
    background: no-repeat url("../../img/calend-d.svg") right 15px top 50% / auto 14px;
}

.donation-daily-dates-group .donation-dates .donation-date-field input::placeholder {
    color: #d1d1d1;
}

.donation-daily-dates-group .donation-dates .donation-date-field label {
    margin: 0px;
    position: absolute;
    left: 10px;
    top: -9px;
    z-index: 2;
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    background: white;
    padding: 0px 3px;
    border-radius: 3px;
}

.donation-daily-dates-group .date-title {
    color: var(--accent-color);
    margin-bottom: 8px;
}

.donation-daily-dates-group {
    margin-top: 16px;
    display: none;
}

.donation-form .period-select-options {
    border: 1px solid #c7cdd6;
    border-radius: 8px;
    position: relative;
    margin-top: 30px;
}

.donation-form .period-select-options label {
    position: absolute;
    top: -11px;
    left: 10px;
    background-color: white;
    padding: 0 6px 0 6px;
}

.donation-form .period-select-options select.select-option {
    border: none;
    padding: 16px;
    height: auto;
    color: black;
}