/* Invoice Pay Without Login — client-area styles
   Scoped under .ipwl-* to avoid colliding with the active client theme. */

.ipwl-client-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; border: 1px solid #d7dae2;
    background: #fff; color: #1f2430; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
}
.ipwl-client-btn:hover { background: #f4f5f7; }

/* Floating action icon: circular by default, label expands on hover/focus */
.ipwl-client-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 99998;
    display: inline-flex; align-items: center; gap: 0;
    height: 52px; min-width: 52px; padding: 0 15px;
    border: none; border-radius: 999px; cursor: pointer;
    background: #3d4ed8; color: #fff;
    box-shadow: 0 6px 18px rgba(20,24,40,0.28);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px; font-weight: 600; line-height: 1;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ipwl-client-fab:hover, .ipwl-client-fab:focus { background: #2f3ec2; box-shadow: 0 8px 22px rgba(20,24,40,0.34); outline: none; }
.ipwl-client-fab svg { flex-shrink: 0; }
.ipwl-client-fab .ipwl-fab-label {
    max-width: 0; overflow: hidden; white-space: nowrap;
    transition: max-width 0.2s ease, margin-left 0.2s ease; margin-left: 0;
}
.ipwl-client-fab:hover .ipwl-fab-label, .ipwl-client-fab:focus .ipwl-fab-label { max-width: 180px; margin-left: 9px; }

.ipwl-modal-overlay {
    position: fixed; inset: 0; background: rgba(20,24,40,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; padding: 20px;
}
.ipwl-modal {
    background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(20,24,40,0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2430; font-size: 14px;
}
.ipwl-modal * { box-sizing: border-box; }
.ipwl-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #eceef3; }
.ipwl-modal-header h3 { margin: 0; font-size: 16px; }
.ipwl-modal-close { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: #8a90a2; padding: 4px; }
.ipwl-modal-body { padding: 20px 22px; }
.ipwl-modal-footer { padding: 16px 22px; border-top: 1px solid #eceef3; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.ipwl-url-row { display: flex; gap: 8px; margin-bottom: 14px; }
.ipwl-url-row input { flex: 1; padding: 9px 12px; border: 1px solid #d7dae2; border-radius: 8px; font-size: 12.5px; background: #f8f9fb; color: #374057; }
.ipwl-icon-btn { border: 1px solid #d7dae2; background: #fff; border-radius: 8px; width: 46px; flex-shrink: 0; cursor: pointer; font-size: 14px; }
.ipwl-icon-btn:hover { background: #f4f5f7; }

.ipwl-qr-wrap { text-align: center; padding: 6px 0 16px; }
.ipwl-qr-wrap img, .ipwl-qr-wrap svg { width: 120px; height: 120px; }

.ipwl-btn { padding: 9px 16px; border-radius: 8px; border: 1px solid #d7dae2; background: #fff; color: #374057; font-size: 13px; font-weight: 600; cursor: pointer; }
.ipwl-btn:hover { background: #f4f5f7; }
.ipwl-btn-primary { background: #3d4ed8; color: #fff; border-color: #3d4ed8; }
.ipwl-btn-primary:hover { background: #2f3ec2; }
.ipwl-btn-danger { color: #c0392b; border-color: #f3c9c4; }
.ipwl-btn-danger:hover { background: #fdeceb; }

.ipwl-toast { font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.ipwl-toast.ok { background: #e7f8ef; color: #1a8a4c; }
.ipwl-toast.err { background: #fdeceb; color: #c0392b; }

.ipwl-pw-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ipwl-pw-row input { flex: 1; padding: 9px 12px; border: 1px solid #d7dae2; border-radius: 8px; font-size: 13px; }
