/* ── Donation block ──────────────────────────────────────────────────────── */

.nyehs-donation {
    background:    #fff;
    border:        1px solid #e8eaf2;
    border-radius: 20px;
    box-shadow:    0 4px 32px rgba(0, 10, 40, 0.07);
    padding:       36px 40px;
    max-width:     680px;
    color:         #111827;
    font-family:   inherit;
}

.nyehs-donation--notice {
    padding:       16px 20px;
    font-size:     14px;
    color:         #92400e;
    background:    #fffbeb;
    border-color:  #fcd34d;
    border-radius: 10px;
}

.nyehs-donation--notice a {
    color: #0d41ff;
}

/* ── Badge ───────────────────────────────────────────────────────────────── */

.nyehs-donation__badge {
    display:        inline-flex;
    align-items:    center;
    gap:            6px;
    background:     rgba(13, 98, 255, 0.08);
    color:          #0d41ff;
    border:         1px solid rgba(13, 98, 255, 0.18);
    border-radius:  50px;
    font-size:      12px;
    font-weight:    600;
    letter-spacing: 0.04em;
    padding:        5px 14px;
    margin-bottom:  20px;
}

/* ── Heading + description ───────────────────────────────────────────────── */

.nyehs-donation__heading {
    font-size:   2rem;
    font-weight: 800;
    line-height: 1.2;
    color:       #0f172a;
    margin:      0 0 10px;
}

.nyehs-donation__desc {
    font-size:     1rem;
    color:         #6b7280;
    line-height:   1.65;
    margin:        0 0 28px;
}

/* ── Form body ───────────────────────────────────────────────────────────── */

.nyehs-donation__body {
    display:        flex;
    flex-direction: column;
    gap:            0;
}

.nyehs-donation__form-area {
    display: flex;
    flex-direction: column;
}

/* ── Amount pills ────────────────────────────────────────────────────────── */

.nyehs-donation__amounts {
    display:       flex;
    flex-wrap:     wrap;
    gap:           8px;
    margin-bottom: 16px;
}

.nyehs-donation__amt-btn {
    padding:       10px 22px;
    border:        1.5px solid #e5e7eb;
    border-radius: 50px;
    background:    #fff;
    color:         #374151;
    font-size:     15px;
    font-weight:   500;
    font-family:   inherit;
    cursor:        pointer;
    transition:    all 0.18s ease;
    white-space:   nowrap;
    line-height:   1;
}

.nyehs-donation__amt-btn:hover {
    border-color: #0d41ff;
    color:        #0d41ff;
}

.nyehs-donation__amt-btn.is-sel {
    background:   #0d41ff;
    border-color: #0d41ff;
    color:        #fff;
}

/* ── Custom amount input ─────────────────────────────────────────────────── */

.nyehs-donation__custom-wrap {
    display:       flex;
    align-items:   center;
    border:        1.5px solid #e5e7eb;
    border-radius: 999px;
    overflow:      hidden;
    margin-bottom: 16px;
    transition:    border-color 0.18s ease, box-shadow 0.18s ease;
}

.nyehs-donation__custom-wrap:focus-within {
    border-color: #0d41ff;
    box-shadow:   0 0 0 3px rgba(13, 98, 255, 0.12);
}

.nyehs-donation__cur-sym {
    padding:     12px 2px 12px 16px;
    color:       #6b7280;
    font-size:   15px;
    font-weight: 500;
    flex-shrink: 0;
}

.nyehs-donation__custom-inp {
    border:     none;
    outline:    none;
    padding:    12px 16px 12px 4px;
    font-size:  15px;
    font-family: inherit;
    color:      #111827;
    width:      100%;
    background: transparent;
    -moz-appearance: textfield;
}

.nyehs-donation__custom-inp::-webkit-inner-spin-button,
.nyehs-donation__custom-inp::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── Name / email row ────────────────────────────────────────────────────── */

.nyehs-donation__field-row {
    display:       grid;
    grid-template-columns: 1fr 1fr;
    gap:           12px;
    margin-bottom: 16px;
}

@media ( max-width: 520px ) {
    .nyehs-donation__field-row {
        grid-template-columns: 1fr;
    }
}

.nyehs-donation__input {
    width:         100%;
    padding:       12px 16px;
    border:        1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size:     15px;
    font-family:   inherit;
    color:         #111827;
    background:    #fff;
    outline:       none;
    box-sizing:    border-box;
    transition:    border-color 0.18s ease, box-shadow 0.18s ease;
}

.nyehs-donation__input:focus {
    border-color: #0d41ff;
    box-shadow:   0 0 0 3px rgba(13, 98, 255, 0.12);
}

.nyehs-donation__input::placeholder {
    color: #9ca3af;
}

/* ── Public toggle ───────────────────────────────────────────────────────── */

.nyehs-donation__toggle {
    display:       flex;
    align-items:   center;
    gap:           10px;
    cursor:        pointer;
    margin-bottom: 24px;
    user-select:   none;
    -webkit-user-select: none;
}

.nyehs-donation__toggle-chk {
    display: none;
}

.nyehs-donation__toggle-track {
    position:      relative;
    width:         40px;
    height:        22px;
    border-radius: 11px;
    background:    #d1d5db;
    flex-shrink:   0;
    transition:    background 0.2s ease;
}

.nyehs-donation__toggle-track::after {
    content:       '';
    position:      absolute;
    top:           3px;
    left:          3px;
    width:         16px;
    height:        16px;
    border-radius: 50%;
    background:    #fff;
    box-shadow:    0 1px 3px rgba(0, 0, 0, 0.2);
    transition:    transform 0.2s ease;
}

.nyehs-donation__toggle-chk:checked + .nyehs-donation__toggle-track {
    background: #0d41ff;
}

.nyehs-donation__toggle-chk:checked + .nyehs-donation__toggle-track::after {
    transform: translateX( 18px );
}

.nyehs-donation__toggle-lbl {
    font-size: 14px;
    color:     #374151;
}

/* ── Error ───────────────────────────────────────────────────────────────── */

.nyehs-donation__error {
    color:         #dc2626;
    font-size:     14px;
    margin-bottom: 14px;
    padding:       10px 14px;
    background:    rgba(220, 38, 38, 0.06);
    border-radius: 8px;
    border-left:   3px solid #dc2626;
}

/* ── CTA button — label pill + icon disc, mirrors .nyehs-btn ─────────────── */

.nyehs-donation__cta {
    display:         inline-flex;
    align-items:     center;
    width:           100%;
    border:          none;
    padding:         0;
    background:      none;
    cursor:          pointer;
    font-family:     inherit;
    margin-bottom:   4px;
    -webkit-appearance: none;
    appearance:      none;
}

.nyehs-donation__cta:disabled {
    cursor: not-allowed;
}

.nyehs-donation__cta-label {
    flex:            1;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         0 28px;
    height:          52px;
    color:           #fff;
    font-size:       16px;
    font-weight:     600;
    font-family:     inherit;
    letter-spacing:  0.01em;
    white-space:     nowrap;
    background:      linear-gradient( 90deg, #0017c7 -25%, #0d41ff 125% );
    border-radius:   999px;
    transition:      border-radius 0.3s ease, opacity 0.2s ease;
}

.nyehs-donation__cta-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           52px;
    height:          52px;
    flex-shrink:     0;
    border-radius:   999px;
    background:      linear-gradient( -90deg, #0017c7 -25%, #0d41ff 125% );
    transition:      border-radius 0.3s ease, opacity 0.2s ease;
}

.nyehs-donation__cta-svg {
    width:      1em;
    height:     1em;
    color:      #fff;
    transform:  rotate( 0deg );
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.nyehs-donation__cta:not(:disabled):hover .nyehs-donation__cta-label {
    border-top-right-radius:    0;
    border-bottom-right-radius: 0;
}

.nyehs-donation__cta:not(:disabled):hover .nyehs-donation__cta-icon {
    border-top-left-radius:    0;
    border-bottom-left-radius: 0;
}

.nyehs-donation__cta:not(:disabled):hover .nyehs-donation__cta-svg {
    transform: rotate( 45deg );
}

.nyehs-donation__cta:disabled .nyehs-donation__cta-label,
.nyehs-donation__cta:disabled .nyehs-donation__cta-icon {
    opacity: 0.6;
}

/* ── Payment step header ─────────────────────────────────────────────────── */

.nyehs-donation__pay-hd {
    display:       flex;
    align-items:   center;
    gap:           14px;
    margin-bottom: 20px;
}

.nyehs-donation__back {
    background:  none;
    border:      none;
    cursor:      pointer;
    font-size:   14px;
    color:       #9ca3af;
    font-family: inherit;
    padding:     6px 0;
    transition:  color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nyehs-donation__back:hover {
    color: #0d41ff;
}

.nyehs-donation__pay-info {
    display:     flex;
    align-items: baseline;
    gap:         10px;
}

.nyehs-donation__pay-info strong {
    font-size:   1.6rem;
    font-weight: 800;
    color:       #0f172a;
    line-height: 1;
}

.nyehs-donation__pay-info span {
    font-size: 14px;
    color:     #6b7280;
}

/* ── Stripe Payment Element container ────────────────────────────────────── */

.nyehs-donation__stripe-mount {
    margin-bottom: 20px;
    min-height:    100px;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.nyehs-donation__success {
    text-align:    center;
    padding:       8px 0 20px;
}

.nyehs-donation__success-icon {
    width:           56px;
    height:          56px;
    border-radius:   50%;
    background:      linear-gradient( 135deg, #0017c7, #0d41ff );
    color:           #fff;
    display:         flex;
    align-items:     center;
    justify-content: center;
    margin:          0 auto 18px;
}

.nyehs-donation__success-title {
    font-size:   1.6rem;
    font-weight: 800;
    color:       #0f172a;
    margin:      0 0 10px;
}

.nyehs-donation__success-msg {
    font-size:   1rem;
    color:       #6b7280;
    line-height: 1.6;
    margin:      0;
}

/* ── Recent donations ────────────────────────────────────────────────────── */

.nyehs-donation__recent-wrap {
    margin-top:  24px;
    border-top:  1px solid #f3f4f6;
    padding-top: 20px;
}

.nyehs-donation__recent-hd {
    font-size:      11px;
    font-weight:    700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color:          #9ca3af;
    margin-bottom:  14px;
}

.nyehs-donation__recent-list {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    flex;
    flex-direction: column;
    gap:        10px;
}

.nyehs-donation__recent-item {
    display:     flex;
    align-items: center;
    gap:         8px;
    font-size:   14px;
}

.nyehs-donation__recent-dot {
    width:         7px;
    height:        7px;
    border-radius: 50%;
    background:    rgba(13, 98, 255, 0.35);
    flex-shrink:   0;
}

.nyehs-donation__recent-name {
    flex:        1;
    font-weight: 500;
    color:       #374151;
}

.nyehs-donation__recent-amt {
    font-weight: 700;
    color:       #0d41ff;
    white-space: nowrap;
}

.nyehs-donation__recent-time {
    font-size:   12px;
    color:       #9ca3af;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 500px ) {
    .nyehs-donation {
        padding: 24px 20px;
    }
    .nyehs-donation__heading {
        font-size: 1.6rem;
    }
}
