/* WC Flexible Donation v2 — Frontend */

.wcfd-wrap {
    /* All sizing/colors injected via inline <style> per instance */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--wcfd-form-bg, #fff);
    border: solid var(--wcfd-border-c, #e3e3e3);
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcfd-wrap *, .wcfd-wrap *::before, .wcfd-wrap *::after { box-sizing: border-box; }

/* Title */
.wcfd-title {
    font-weight: 800;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.2;
    letter-spacing: -0.01em;
}#wcfd4998 .wcfd-acc-list {
    gap: 0px !important;
}

/* Subtitle */
.wcfd-subtitle {
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.55;
}

/* Error notice */
.wcfd-notice {
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.wcfd-error { background:#fff0f0; color:#c00; border:1px solid #fcc; }

/* Fields list */
.wcfd-acc-list {
    display: flex;
    flex-direction: column;
}

/* Single field */
.wcfd-field { display: flex; flex-direction: column; }

/* Label */
.wcfd-label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.wcfd-req { color: var(--wcfd-accent, #1B9C85); font-size: 13px; line-height: 1; }

/* Input row */
.wcfd-inp-row { display: flex; align-items: center; }

/* Currency symbol */
.wcfd-sym {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    border: 1.5px solid var(--wcfd-inp-border, #ddd);
    color: #555;
    font-size: 14px;
    font-weight: 700;
    padding: 0 12px;
    flex-shrink: 0;
    user-select: none;
    white-space: nowrap;
}
.wcfd-sym-b { border-right: none; border-radius: 7px 0 0 7px; }
.wcfd-sym-a { border-left: none;  border-radius: 0 7px 7px 0; }

/* Input */
.wcfd-input {
    width: 100%;
    border: 1.5px solid var(--wcfd-inp-border, #ddd);
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}
.wcfd-has-sym .wcfd-amt-inp { border-radius: 0 7px 7px 0 !important; }
.wcfd-input:focus {
    border-color: var(--wcfd-accent, #1B9C85);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcfd-accent,#1B9C85) 15%, transparent);
}
.wcfd-input::placeholder { color: #c5c5c5; }

/* Remove number spinners */
.wcfd-amt-inp::-webkit-inner-spin-button,
.wcfd-amt-inp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wcfd-amt-inp { -moz-appearance: textfield; }

/* Textarea */
.wcfd-desc-inp { resize: vertical; line-height: 1.55; height: auto; }

/* Button */
.wcfd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--wcfd-btn-bg, #1B9C85);
    color: var(--wcfd-btn-tc, #fff);
    border: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.wcfd-btn:hover:not(:disabled) {
    background: var(--wcfd-btn-hbg, #147a6a);
    color: var(--wcfd-btn-htc, #fff);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.wcfd-btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.wcfd-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.wcfd-arrow { font-size: 17px; transition: transform 0.18s; }
.wcfd-btn:hover .wcfd-arrow { transform: translateX(3px); }

.wcfd-spin { animation: wcfd-spin 0.8s linear infinite; font-size: 16px; }
@keyframes wcfd-spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 480px) {
    .wcfd-wrap { border-radius: 10px !important; }
}
