/*
 * TAS — Animal sponsorship form.
 * Component-specific presentation only.
 */

#animalDonateform .tas-donation-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

#animalDonateform .tas-donation-preset {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

#animalDonateform .tas-donation-preset:hover,
#animalDonateform .tas-donation-preset:focus-visible,
#animalDonateform .tas-donation-preset.is-active {
    background-color: var(
        --e-global-color-c58dc97,
        #9da275
    );
    color: #fff;
}

#animalDonateform .tas-donation-preset:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#animalDonateform .tas-donation-custom-amount {
    margin: 0 0 20px;
}

#animalDonateform .tas-donation-custom-amount input {
    width: 100%;
}

@media (max-width: 600px) {
    #animalDonateform .tas-donation-presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* TAS-PRESET-LAYOUT-V2-BEGIN
 * Four standard donation amounts on row one.
 * Custom amount spans the full second row.
 */
#animalDonateform .tas-donation-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#animalDonateform .tas-donation-preset {
    min-width: 0;
    white-space: nowrap;
}

#animalDonateform .tas-donation-preset-custom {
    grid-column: 1 / -1;
}

/*
 * Preserve the same four-plus-custom structure
 * on smaller sponsorship layouts.
 */
@media (max-width: 600px) {
    #animalDonateform .tas-donation-presets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #animalDonateform .tas-donation-preset-custom {
        grid-column: 1 / -1;
    }
}
/* TAS-PRESET-LAYOUT-V2-END */

/* TAS-PRESET-STATES-V3-BEGIN
 *
 * Tight preset-row spacing and explicit interactive states.
 * Higher component specificity prevents inherited donation-button
 * spacing from affecting the preset controls.
 */

#animalDonateform .donation_form .tas-donation-presets {
    column-gap: 8px;
    row-gap: 8px;
    margin-top: 0;
    margin-bottom: 20px;
}

#animalDonateform .donation_form .tas-donation-preset,
#animalDonateform .donation_form .tas-donation-preset-custom {
    margin: 0;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

/*
 * Dark-mode states are explicit rather than relying on
 * inherited/global button styling.
 */
@media (prefers-color-scheme: dark) {
    body.elementor-kit-4
    #animalDonateform
    .donation_form
    .tas-donation-preset:hover,

    body.elementor-kit-4
    #animalDonateform
    .donation_form
    .tas-donation-preset:focus-visible,

    body.elementor-kit-4
    #animalDonateform
    .donation_form
    .tas-donation-preset.is-active {
        background-color: #9da275;
        border-color: #9da275;
        color: #ffffff;
    }
}

/* TAS-PRESET-STATES-V3-END */
