
/* =========================================================
   ASPIC Donations 0.2.3
   Modulo compatto per il box .aspic-donazioni__payment
========================================================= */

.aspic-donation,
.aspic-donation * {
    box-sizing: border-box;
}

.aspic-donation {
    --blue: #143677;
    --orange: #F2A34A;
    --orange-soft: #FFF1DF;
    --green: #78A980;
    --soft: #F7F9FC;
    --border: rgba(20, 54, 119, .12);

    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-family: "Nunito Sans", sans-serif;
}

.aspic-donation__form {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.aspic-donation__fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.aspic-donation__fieldset legend {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;

    color: #182235;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.aspic-donation__amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.aspic-donation__amount {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 50px;

    margin: 0;
    padding: 10px 8px;

    overflow: hidden;

    color: var(--blue);
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 12px;

    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.aspic-donation__amount:hover,
.aspic-donation__amount.is-active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.aspic-donation__amount--other {
    font-size: 10px;
}

.aspic-donation__amount .woocommerce-Price-amount,
.aspic-donation__amount .woocommerce-Price-currencySymbol {
    display: inline;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.aspic-donation__custom {
    width: 100%;
    max-width: 100%;

    margin-top: 14px;
    padding: 15px;

    background: var(--soft);
    border-radius: 12px;
}

.aspic-donation__custom[hidden] {
    display: none !important;
}

.aspic-donation__custom label {
    display: block;

    margin: 0 0 7px;

    color: #182235;

    font-size: 11px;
    font-weight: 800;
}

.aspic-donation__custom-field {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
    min-width: 0;

    padding: 0 13px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.aspic-donation__custom-field > span {
    flex: 0 0 auto;
    color: var(--blue);
    font-weight: 800;
}

.aspic-donation__custom-field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;

    margin: 0 !important;
    padding: 0 !important;

    color: #182235;
    background: transparent !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.aspic-donation__custom small {
    display: block;

    margin-top: 7px;

    color: #7A8391;

    font-size: 9px;
    line-height: 1.4;
}

.aspic-donation__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    max-width: 100%;
    min-height: 50px;

    margin: 16px 0 0;
    padding: 12px 18px;

    color: #fff;
    background: var(--blue);

    border: 0;
    border-radius: 11px;

    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.aspic-donation__submit:hover {
    background: #0D295E;
    transform: translateY(-1px);
}


/* =========================================================
   Integrazione con la pagina ASPIC Dona ora esistente
========================================================= */

.aspic-donazioni__payment-slot:has(.aspic-donation) {
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.aspic-donazioni__payment-slot:has(.aspic-donation) > span,
.aspic-donazioni__payment-slot:has(.aspic-donation) > p {
    display: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .aspic-donation__amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aspic-donation__amount--other {
        grid-column: span 2;
    }

}

@media (max-width: 767px) {

    .aspic-donation__amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aspic-donation__amount--other {
        grid-column: 1 / -1;
    }

}

@media (max-width: 420px) {

    .aspic-donation__amount {
        min-height: 46px;
        font-size: 12px;
    }

}


/* =========================================================
   0.2.4 — SLOT AUTOMATICO NEL BOX DONAZIONE ESISTENTE
========================================================= */

#aspic-donation-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

#aspic-donation-slot > .aspic-donation {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
