/* Community Giving for WC - Donation Widget */

.cgwc-donation-widget {
    margin: 24px 0;
}

.cgwc-heading {
    margin: 0 0 8px;
}

.cgwc-description {
    margin: 0 0 18px;
}

.cgwc-donation-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cgwc-amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cgwc-amount-button {
    min-width: 90px;
    justify-content: center;
    cursor: pointer;
}

.cgwc-amount-button.is-selected {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cgwc-custom-label {
    display: block;
    margin-bottom: 6px;
}

/* Amount input with currency symbol */

.cgwc-amount-input {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 220px;
    max-width: 100%;
    margin-bottom: 18px;
}

.cgwc-amount-input .cgwc-currency-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    line-height: 1;
}

.cgwc-amount-input input.cgwc-donation-amount {
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
}

.cgwc-amount-input input.cgwc-donation-amount:focus {
    outline: none;
}

/* Cover fees */

.cgwc-cover-fees {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.cgwc-cover-fees input[type="checkbox"] {
    margin: 0;
}

/* Submit button */

.cgwc-submit-row {
    display: block;
    width: 100%;
    margin-top: 6px;
}

.cgwc-submit-button {
    display: inline-flex;
    min-width: 180px;
}

/* Small screens */

@media (max-width: 480px) {
    .cgwc-amount-buttons {
        gap: 10px;
    }

    .cgwc-amount-button {
        min-width: 80px;
    }

    .cgwc-amount-input {
        width: 100%;
    }
}