/* KWD Donate — Stylesheet v1.0.0 */

.kwd-donate-wrap {
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

/* Header */
.kwd-header        { text-align: center; margin-bottom: 28px; }
.kwd-heart         { font-size: 48px; margin-bottom: 12px; }
.kwd-title         { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #1a1a2e; }
.kwd-subtitle      { font-size: 15px; color: #666; margin: 0; }

/* Fields */
.kwd-field         { margin-bottom: 20px; }
.kwd-label         { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.kwd-req           { color: #e53935; }
.kwd-opt           { color: #aaa; font-weight: 400; text-transform: none; font-size: 12px; }

/* Inputs */
.kwd-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.kwd-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,.12);
    background: #fff;
}
.kwd-textarea { resize: vertical; min-height: 80px; }

/* Pills — campaigns & amounts */
.kwd-campaign-pills,
.kwd-amount-pills  { display: flex; flex-wrap: wrap; gap: 8px; }

.kwd-pill {
    padding: 8px 18px;
    border: 1.5px solid #dde1e7;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
}
.kwd-pill:hover  { border-color: #4caf50; color: #2e7d32; }
.kwd-pill.active { background: #4caf50; border-color: #4caf50; color: #fff; font-weight: 600; }

/* Donate button (compact) */
.kwd-btn {
    display: block;
    width: 100%;
    padding: 10px 12px; /* reduced padding */
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px; /* smaller text */
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    margin-top: 6px;
}
.kwd-btn:hover    { background: #43a047; }
.kwd-btn:active   { transform: scale(.98); }
.kwd-btn:disabled { background: #a5d6a7; cursor: not-allowed; }
.kwd-btn-ghost    { background: transparent; border: 1.5px solid #dde1e7; color: #666; }
.kwd-btn-ghost:hover { background: #f5f5f5; border-color: #bbb; }

/* Spinner inside button */
.kwd-spin {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kwd-spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes kwd-spin { to { transform: rotate(360deg); } }

/* Error */
.kwd-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #c62828;
    margin-bottom: 16px;
}

/* Status states */
.kwd-status-state  { text-align: center; padding: 20px 0; }
.kwd-status-state h2 { font-size: 22px; margin: 16px 0 10px; }
.kwd-status-state p  { color: #555; font-size: 15px; line-height: 1.6; margin: 0 0 20px; }

.kwd-status-icon { font-size: 56px; display: block; margin: 0 auto 4px; }

/* Pulse animation for phone icon */
@keyframes kwd-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}
.kwd-pulse { animation: kwd-pulse 1.4s ease-in-out infinite; display: inline-block; }

/* Bounce on success */
@keyframes kwd-bounce {
    0%  { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100%{ transform: scale(1);   opacity: 1; }
}
.kwd-bounce { animation: kwd-bounce .5s ease forwards; display: inline-block; }

/* Spinner ring */
.kwd-spinner-ring {
    width: 48px; height: 48px;
    border: 4px solid #e8f5e9;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: kwd-spin 1s linear infinite;
    margin: 0 auto 16px;
}

.kwd-timer-txt { font-size: 13px; color: #999; }

/* Receipt box */
.kwd-receipt {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px 24px;
    margin-top: 12px;
}
.kwd-receipt-label { font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: .5px; }
.kwd-receipt strong { font-size: 18px; color: #2e7d32; letter-spacing: 1px; }

/* Powered by */
.kwd-powered { text-align: center; font-size: 12px; color: #ccc; margin-top: 24px; }
.kwd-powered a { color: #aaa; text-decoration: none; }
.kwd-powered a:hover { color: #666; }

/* Responsive */
@media (max-width: 480px) {
    .kwd-pill { font-size: 13px; padding: 7px 14px; }
    .kwd-title { font-size: 20px; }
}
