/* ========================================
   Free-amount donation field
   Shared component: campaign card (pledges-list) + pledge detail page.
   Enqueued on both screens so it must stand on its own.
   ======================================== */

.cf-donation-field {
    margin: 0.5rem 0 0.75rem;
    text-align: left;
}

.cf-donation-field__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #28393c;
    margin-bottom: 0.4rem;
}

.cf-donation-field__input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #d8dce0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-donation-field__input-wrap:focus-within {
    border-color: #28393c;
    box-shadow: 0 0 0 3px rgba(40, 57, 60, 0.12);
}

.cf-donation-field__currency {
    padding: 0 0.5rem 0 0.85rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #28393c;
    user-select: none;
}

/* Scoped under the wrap so it outranks theme resets like
   `input[type="number"] { border: 1px solid #666 }` (specificity 0,1,1),
   which would otherwise give the input a second, inner border. */
.cf-donation-field__input-wrap .cf-donation-field__input {
    flex: 1;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0.7rem 0.85rem 0.7rem 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #28393c;
    background: transparent;
    box-shadow: none;
    /* Hide the native number spinner (Firefox). */
    -moz-appearance: textfield;
    appearance: textfield;
}

.cf-donation-field__input-wrap .cf-donation-field__input:focus {
    outline: none;
    box-shadow: none;
}

/* Hide the native number spinner (WebKit / Blink). */
.cf-donation-field__input::-webkit-outer-spin-button,
.cf-donation-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cf-donation-field__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.cf-donation-field__preset {
    flex: 1 1 auto;
    min-width: 64px;
    padding: 0.4rem 0.6rem;
    border: 1.5px solid #d1c5b0;
    border-radius: 999px;
    background: #faf8f4;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #28393c;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cf-donation-field__preset:hover,
.cf-donation-field__preset:focus,
.cf-donation-field__preset.is-active {
    background: #d1c5b0;
    border-color: #28393c;
    color: #28393c;
}

.cf-donation-field__min {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: #787c82;
}
