/* Donation form UX and readability */
.hopsa-site .lab-donate-form .hopsa-custom-amount-wrap {
    margin-top: 0.75rem;
}

.hopsa-site .lab-donate-form .hopsa-custom-amount-wrap:not(.is-active) .hopsa-custom-amount {
    background: #f5f0e8;
    border-color: rgba(139, 69, 19, 0.12);
    color: rgba(46, 31, 20, 0.45);
    cursor: not-allowed;
}

.hopsa-site .lab-donate-form .hopsa-custom-amount-wrap.is-active .hopsa-custom-amount {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.15rem rgba(218, 165, 32, 0.18);
}

.hopsa-site .lab-donate-form .hopsa-payment-details .h6,
.hopsa-site .lab-donate-form .hopsa-payment-details .form-label {
    color: #2e1f14;
    font-weight: 700;
}

.hopsa-site .lab-donate-form .lab-payment-note {
    color: #5c3d2e !important;
    font-weight: 500;
}

.hopsa-site .lab-donate-form .lab-payment-info {
    color: #2e1f14;
}

.hopsa-site .lab-donate-form .lab-payment-info p,
.hopsa-site .lab-donate-form .lab-payment-info strong {
    color: #2e1f14;
}

.hopsa-site .lab-donate-form .lab-payment-info .lab-payment-note {
    color: #5c3d2e !important;
}

.hopsa-site .lab-donate-form .lab-donate-summary span {
    color: #2e1f14;
}

.hopsa-site .lab-donate-form .lab-donate-summary strong {
    color: #1f140d;
}

.hopsa-donate-success-modal .modal-content {
    border-radius: 18px;
    overflow: hidden;
}

.hopsa-donate-success-modal .hopsa-donate-success-icon {
    font-size: 3.5rem;
    color: #DAA520;
    line-height: 1;
}

.hopsa-donate-success-modal .modal-title {
    color: #654321;
    font-weight: 700;
}

.hopsa-donate-success-modal .hopsa-donate-success-message,
.hopsa-donate-success-modal .hopsa-donate-success-amount {
    color: #2e1f14;
}

.hopsa-stripe-element-wrap {
    background: #fff;
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 12px;
    padding: 1rem;
    min-height: 120px;
}

/* Zelle Confirmation Modal */
.hopsa-zelle-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(46, 31, 20, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hopsa-zelle-modal.show {
    display: flex;
}
.hopsa-zelle-modal-dialog {
    background: #fffdf8;
    border: 1.5px solid #E8B923;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(92, 61, 46, 0.25);
    overflow: hidden;
    animation: zelleModalSlideIn 0.25s ease-out;
}
@keyframes zelleModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.hopsa-zelle-modal-header {
    background: linear-gradient(135deg, #654321, #8B4513);
    color: #FBF6E8;
    padding: 1.25rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 3px solid #E8B923;
}
.hopsa-zelle-modal-header i {
    font-size: 1.6rem;
    color: #FFD700;
}
.hopsa-zelle-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}
.hopsa-zelle-modal-body {
    padding: 1.5rem;
    color: #2E1F14;
    font-size: 0.95rem;
    line-height: 1.6;
}
.hopsa-zelle-modal-body p {
    margin: 0 0 0.85rem;
}
.hopsa-zelle-modal-body p:last-child {
    margin-bottom: 0;
}
.hopsa-zelle-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #E8DCC8;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: #FBF6E8;
}
.hopsa-zelle-modal-footer .btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
}
.hopsa-zelle-modal-footer .btn-primary {
    background: linear-gradient(135deg, #E8B923, #DAA520);
    border: none;
    color: #2E1F14;
}
.hopsa-zelle-modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}
.hopsa-zelle-modal-footer .btn-outline-secondary {
    border: 1.5px solid #c4b5a8;
    color: #6B4A38;
}
.hopsa-zelle-modal-footer .btn-outline-secondary:hover {
    border-color: #6B4A38;
    color: #2E1F14;
    background: #f5efe0;
}
@media (max-width: 576px) {
    .hopsa-zelle-modal {
        padding: 1rem;
    }
    .hopsa-zelle-modal-header {
        padding: 1rem 1.25rem 0.85rem;
    }
    .hopsa-zelle-modal-body {
        padding: 1.25rem;
    }
    .hopsa-zelle-modal-footer {
        padding: 0.85rem 1.25rem;
        flex-direction: column;
    }
    .hopsa-zelle-modal-footer .btn {
        width: 100%;
    }
}

.hopsa-stripe-element-wrap .StripeElement,
.hopsa-stripe-element-wrap iframe {
    min-height: 44px;
}

.hopsa-stripe-element-wrap.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hopsa-stripe-placeholder {
    color: #5c3d2e;
}

.hopsa-site .lab-donate-form .lab-payment-method-options .form-check-label {
    color: #2e1f14;
    font-weight: 600;
}

.hopsa-payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .hopsa-payment-method-grid {
        grid-template-columns: 1fr;
    }
}

.hopsa-payment-method-grid.is-pay-stripe .hopsa-payment-method-card[for="give-pay-zelle"],
.hopsa-payment-method-grid.is-pay-zelle .hopsa-payment-method-card[for="give-pay-card"] {
    opacity: 0.48;
    filter: saturate(0.75);
}

.hopsa-payment-method-grid.is-pay-stripe .hopsa-payment-method-card[for="give-pay-card"],
.hopsa-payment-method-grid.is-pay-zelle .hopsa-payment-method-card[for="give-pay-zelle"] {
    opacity: 1;
    filter: none;
}

.hopsa-payment-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 148px;
    padding: 1rem 1rem 0.9rem;
    border: 2px solid rgba(139, 69, 19, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f1e7 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hopsa-payment-method-card:hover {
    border-color: rgba(139, 69, 19, 0.35);
    box-shadow: 0 8px 24px rgba(101, 67, 33, 0.08);
}

.hopsa-payment-method-card:has(.hopsa-payment-method-input:checked) {
    border-color: #8B4513;
    box-shadow: 0 0 0 0.18rem rgba(218, 165, 32, 0.22);
    background: linear-gradient(180deg, #fff 0%, #f3e8d8 100%);
}

.hopsa-payment-method-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hopsa-payment-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    font-size: 1.35rem;
}

.hopsa-payment-method-icon-card {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
    color: #fff;
}

.hopsa-payment-method-icon-zelle {
    background: #f4ebff;
    padding: 0.35rem 0.5rem;
    width: auto;
    min-width: 4.5rem;
    height: auto;
}

.hopsa-payment-method-icon-zelle img {
    display: block;
    width: 72px;
    height: auto;
}

.hopsa-payment-method-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hopsa-payment-method-copy strong {
    color: #2e1f14;
    font-size: 1rem;
    line-height: 1.2;
}

.hopsa-payment-method-copy small {
    color: #5c3d2e;
    font-size: 0.82rem;
    font-weight: 500;
}

.hopsa-payment-method-brands {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: #654321;
    font-size: 1.45rem;
}

.hopsa-payment-method-tag {
    margin-top: auto;
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(109, 30, 212, 0.12);
    color: #6D1ED4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
