/* Phone number field (both form types): +237 prefix joined to the number, like the CamPay shortcode payment window */
.campay-give-phone-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}
.campay-give-required {
    color: #b91c1c;
}
.campay-give-phone {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.campay-give-phone__prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 15px;
    white-space: nowrap;
}
/* !important: donation form templates style every input */
.campay-give-phone input.campay-give-phone__input {
    flex: 1;
    min-width: 0;
    width: 100% !important; /* a percentage lets the field shrink on narrow screens */
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 8px 8px 0 !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 17px !important;
    line-height: normal !important;
    box-shadow: none !important;
}
.campay-give-phone input.campay-give-phone__input::placeholder {
    color: #9ca3af;
}
.campay-give-phone input.campay-give-phone__input:focus {
    outline: none !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgb(29 78 216 / 20%) !important;
}

/* Legacy (option-based) donation forms */
#campay-number-error {
	color: red;
	display: none;
}

/* Payment method choice (both form types) */
.campay-give-fields [hidden] {
    display: none !important;
}
.campay-give-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.campay-give-method {
    display: flex;
    flex: 1 1 12rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgb(0 0 0 / 25%);
    border-radius: 6px;
    cursor: pointer;
}
.campay-give-method.is-selected,
.campay-give-method:has(input:checked) {
    border-color: currentColor;
    box-shadow: inset 0 0 0 1px currentColor;
}

/* Visual form builder donation forms */
.campay-give-fields {
    min-width: 0; /* fieldsets default to min-content, which can widen the page on phones */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: none;
    padding: 0;
    margin: 0;
}
.campay-give-logo {
    max-width: 160px;
    height: auto;
}
.campay-give-error {
    color: #d63638;
}
.campay-give-help {
    margin: 0;
    font-size: 0.875em;
    opacity: 0.8;
}
