/* ── Trigger styles ── */

/* Default: plain text link */
.lcfdp-open-btn {
    display: inline;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

/* Link style (default) */
.lcfdp-open-btn.lcfdp-style-link {
    color: #106E44;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: inherit;
    background: none;
    border: none;
    padding: 0;
}
.lcfdp-open-btn.lcfdp-style-link:hover { color: #0a5233; }

/* Button style */
.lcfdp-open-btn.lcfdp-style-button {
    display: inline-block;
    background: #106E44;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
}
.lcfdp-open-btn.lcfdp-style-button:hover {
    background: #0a5233;
    color: #fff;
}

/* ── Overlay ── */
.lcfdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.lcfdp-overlay.open { display: flex; }

/* ── Modal ── */
.lcfdp-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px 24px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: lcfdp-slide-up 0.3s ease;
}
@keyframes lcfdp-slide-up {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Close button */
.lcfdp-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 36px; height: 36px;
    background: #1a2e4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}
.lcfdp-close:hover { background: #111; }

/* Amount display */
.lcfdp-amount-display {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 8px;
}
.lcfdp-currency-icon {
    background: #1a2e4a;
    color: #fff;
    font-size: 20px;
    padding: 14px 18px;
    font-weight: 600;
}
.lcfdp-amount-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a2e4a;
    padding: 10px 20px;
    flex: 1;
}

/* Preset buttons */
.lcfdp-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.lcfdp-preset-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1a2e4a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}
.lcfdp-preset-btn:hover { border-color: #106E44; color: #106E44; }
.lcfdp-preset-btn.active { background: #1a2e4a; border-color: #1a2e4a; color: #fff; }

/* Custom amount */
.lcfdp-custom-wrap { margin-bottom: 16px; }
.lcfdp-custom-wrap label {
    display: block;
    font-size: 12px; font-weight: 600; color: #555;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.lcfdp-custom-wrap input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #ddd; border-radius: 6px;
    font-size: 16px; font-family: inherit; color: #1a2e4a;
    box-sizing: border-box; transition: border-color 0.2s;
}
.lcfdp-custom-wrap input:focus { outline:none; border-color:#106E44; }

/* Section title */
.lcfdp-section-title { font-size:16px; font-weight:700; color:#111; margin-bottom:10px; margin-top:8px; }
.lcfdp-divider { height:1px; background:#eee; margin-bottom:18px; }

/* Form */
.lcfdp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.lcfdp-field { display:flex; flex-direction:column; gap:6px; }
.lcfdp-field-full { margin-bottom:14px; }
.lcfdp-field label, .lcfdp-field-full label { font-size:13px; font-weight:500; color:#333; }
.lcfdp-req { color:#c00; }
.lcfdp-field input, .lcfdp-field-full input {
    padding: 12px 14px;
    border: 1.5px solid #ddd; border-radius: 6px;
    font-size: 14px; font-family: inherit; color: #333;
    transition: border-color 0.2s; box-sizing: border-box; width: 100%;
}
.lcfdp-field input:focus, .lcfdp-field-full input:focus { outline:none; border-color:#106E44; }

/* Terms */
.lcfdp-terms-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.lcfdp-checkbox-label {
    display: flex; align-items: center;
    gap: 8px; font-size: 14px; color: #333; cursor: pointer;
}
.lcfdp-checkbox-label input[type="checkbox"] {
    width:16px; height:16px; accent-color:#106E44; cursor:pointer; flex-shrink:0;
}
.lcfdp-show-terms {
    background:none; border:none; color:#1a2e4a;
    font-size:14px; font-weight:500; cursor:pointer;
    text-decoration:underline; padding:0; font-family:inherit;
}
.lcfdp-terms-text {
    background:#f8f8f8; border:1px solid #eee; border-radius:6px;
    padding:12px 14px; font-size:13px; color:#555; line-height:1.7; margin-bottom:14px;
}

/* Total bar */
.lcfdp-total-bar {
    display: flex; align-items: center;
    border: 1.5px solid #ddd; border-radius: 6px;
    overflow: hidden; margin: 20px 0 16px;
}
.lcfdp-total-label {
    background: #1a2e4a; color: #fff;
    font-size: 14px; font-weight: 700;
    padding: 16px 20px; white-space: nowrap;
}
.lcfdp-total-amount { font-size:22px; font-weight:700; color:#1a2e4a; padding:10px 20px; }

/* Donate button */
.lcfdp-donate-btn {
    display: block; width: 100%;
    background: #1a2e4a; color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: 1.5px;
    padding: 18px; border: none; border-radius: 6px;
    cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.lcfdp-donate-btn:hover { background: #111d2e; }
.lcfdp-donate-btn:disabled { background:#aaa; cursor:not-allowed; }

/* Error / Loading */
.lcfdp-error   { color:#c00; font-size:13px; margin-top:10px; text-align:center; }
.lcfdp-loading { color:#106E44; font-size:14px; font-weight:500; margin-top:10px; text-align:center; }

/* Scrollbar */
.lcfdp-modal::-webkit-scrollbar { width:5px; }
.lcfdp-modal::-webkit-scrollbar-track { background:#f0f0f0; }
.lcfdp-modal::-webkit-scrollbar-thumb { background:#ccc; border-radius:3px; }

/* Custom HTML */
.lcfdp-custom-html { font-size:14px; color:#444; line-height:1.75; margin-bottom:12px; }
.lcfdp-custom-html a { color:#106E44; font-weight:500; text-decoration:underline; text-underline-offset:2px; }
.lcfdp-custom-html a:hover { color:#0a5233; }
.lcfdp-custom-html strong { color:#111; }
.lcfdp-custom-html p { margin:0 0 8px; }
.lcfdp-custom-html p:last-child { margin-bottom:0; }

/* Responsive */
@media (max-width:520px) {
    .lcfdp-modal { padding:20px 18px; }
    .lcfdp-row   { grid-template-columns:1fr; }
    .lcfdp-preset-btn { min-width:70px; font-size:13px; padding:10px 6px; }
    .lcfdp-amount-value { font-size:20px; }
    .lcfdp-total-amount { font-size:18px; }
}
